Accepting request 79548 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/79548 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gobject2?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
08a45d1ccb
commit
c7d1ec308c
@@ -40,7 +40,6 @@ Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/%{_name}-%
|
||||
Patch0: python-gobject-python3.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: libffi-devel
|
||||
%if %{build_for_python3}
|
||||
BuildRequires: python3-cairo-devel
|
||||
@@ -96,12 +95,14 @@ autoreconf -fi
|
||||
%if %{build_for_python3}
|
||||
export PYTHON=python3
|
||||
%endif
|
||||
%configure --disable-static
|
||||
%configure --disable-static --disable-introspection
|
||||
make %{?jobs:-j%jobs} V=1
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
find %{buildroot} -name '*.la' -delete -print
|
||||
# Move /usr/share/gtk-doc/html/pygobject to /usr/share/gtk-doc/html/pygobject2
|
||||
mv %{buildroot}%{_datadir}/gtk-doc/html/pygobject %{buildroot}%{_datadir}/gtk-doc/html/pygobject2
|
||||
rm examples/Makefile*
|
||||
%fdupes $RPM_BUILD_ROOT
|
||||
|
||||
@@ -116,19 +117,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS NEWS README ChangeLog examples
|
||||
%dir %{local_py_sitedir}/gtk-2.0
|
||||
%{local_py_sitedir}/gi/
|
||||
%{local_py_sitedir}/gtk-2.0/gio/
|
||||
%{local_py_sitedir}/glib/
|
||||
%{local_py_sitedir}/gobject/
|
||||
%{local_py_sitedir}/gtk-2.0/dsextras.py*
|
||||
%{local_py_sitedir}/pygtk.*
|
||||
%{_libdir}/*.so.*
|
||||
# Live in cairo subpackage
|
||||
%exclude %{local_py_sitedir}/gi/_gi_cairo.so
|
||||
|
||||
%files cairo
|
||||
%defattr(-,root,root)
|
||||
%{local_py_sitedir}/gi/_gi_cairo.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
@@ -149,6 +143,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
# Own these repositories to not depend on gtk-doc while building:
|
||||
%dir %{_datadir}/gtk-doc
|
||||
%dir %{_datadir}/gtk-doc/html
|
||||
%{_datadir}/gtk-doc/html/pygobject/
|
||||
%{_datadir}/gtk-doc/html/pygobject2/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user