17
0

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:
Berthold Gunreben
2011-08-23 11:52:10 +00:00
committed by Git OBS Bridge
parent 08a45d1ccb
commit c7d1ec308c
4 changed files with 38 additions and 20 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Aug 22 13:01:34 UTC 2011 - dimstar@opensuse.org
- Remove gobject-introspection-devel BuildRequires: We no longer
build the gi bindings, as they were moved to python-gobject 3.
- Move the doc from /usr/share/gtk-doc/html/pygobject to pygobject2
in order to not conflicy with python-gobject 3 on file level.
-------------------------------------------------------------------
Sat Aug 20 21:15:39 UTC 2011 - dimstar@opensuse.org
- Pass --disable-introspection to configure. The introspection
based bindings are provided by python-gobject, the newer version
of this code.
-------------------------------------------------------------------
Mon Aug 15 08:46:22 UTC 2011 - dimstar@opensuse.org

View File

@@ -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

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Aug 22 13:01:34 UTC 2011 - dimstar@opensuse.org
- Remove gobject-introspection-devel BuildRequires: We no longer
build the gi bindings, as they were moved to python-gobject 3.
- Move the doc from /usr/share/gtk-doc/html/pygobject to pygobject2
in order to not conflicy with python-gobject 3 on file level.
-------------------------------------------------------------------
Sat Aug 20 21:15:39 UTC 2011 - dimstar@opensuse.org
- Pass --disable-introspection to configure. The introspection
based bindings are provided by python-gobject, the newer version
of this code.
-------------------------------------------------------------------
Mon Aug 15 08:46:22 UTC 2011 - dimstar@opensuse.org

View File

@@ -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