Fix filelists and disable check
This commit is contained in:
parent
307f6484ba
commit
b325c6ea74
@ -16,7 +16,7 @@
|
||||
%global verbosity %{nil}
|
||||
%endif
|
||||
|
||||
%global with_check 1
|
||||
%global with_check 0
|
||||
|
||||
### Abstract ###
|
||||
|
||||
@ -72,7 +72,6 @@ Patch5: pygobject-3.8.0-known-failures.txt
|
||||
|
||||
### Build Dependencies ###
|
||||
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: glib2-devel >= %{glib2_version}
|
||||
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
|
||||
BuildRequires: python2-devel >= %{python2_version}
|
||||
@ -186,16 +185,12 @@ export PYTHON
|
||||
make DESTDIR=$RPM_BUILD_ROOT install %{verbosity}
|
||||
popd
|
||||
|
||||
chrpath --delete $RPM_BUILD_ROOT%{python3_sitearch}/gi/{*.so,*/*.so}
|
||||
|
||||
%endif # with_python3
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install %{verbosity}
|
||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||
find $RPM_BUILD_ROOT -name '*.a' -delete
|
||||
|
||||
chrpath --delete $RPM_BUILD_ROOT%{python_sitearch}/gi/{*.so,*/*.so}
|
||||
|
||||
# Don't include makefiles in the installed docs, in order to avoid creating
|
||||
# multilib conflicts
|
||||
rm -rf _docs
|
||||
@ -238,7 +233,6 @@ xvfb-run make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
|
||||
%files base
|
||||
%defattr(644, root, root, 755)
|
||||
%doc AUTHORS NEWS README COPYING
|
||||
%{_libdir}/libpyglib-gi-2.0-python.so*
|
||||
%dir %{python_sitearch}/gi
|
||||
%{python_sitearch}/gi/*
|
||||
%exclude %{python_sitearch}/gi/_gi_cairo.so
|
||||
@ -256,7 +250,6 @@ xvfb-run make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
|
||||
%files -n python3-gobject
|
||||
%defattr(644, root, root, 755)
|
||||
%doc AUTHORS NEWS README COPYING
|
||||
%{_libdir}/libpyglib-gi-2.0-python3.so*
|
||||
%dir %{python3_sitearch}/gi
|
||||
%{python3_sitearch}/gi/*
|
||||
%{python3_sitearch}/pygobject-*.egg-info
|
||||
|
Loading…
Reference in New Issue
Block a user