From e0a58467da01bcc9af5dede04abb1bd64a66e2c3 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Tue, 6 Nov 2018 14:39:55 +0900 Subject: [PATCH] Bump to python-gobject 3.30.1 [Model] All [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] version upgrade [Cause & Measure] [Checking Method] [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: I84f17f92a47bf3394eef8144c66c78439d2f8f00 Signed-off-by: DongHun Kwak --- packaging/python-gobject.spec | 41 +++++++++++++---------------------------- setup.py | 4 ++-- 2 files changed, 15 insertions(+), 30 deletions(-) diff --git a/packaging/python-gobject.spec b/packaging/python-gobject.spec index 2d8a734..49593ec 100644 --- a/packaging/python-gobject.spec +++ b/packaging/python-gobject.spec @@ -8,7 +8,7 @@ Name: python-gobject Summary: Python bindings for GObject License: LGPL-2.1+ Group: Development/Libraries -Version: 3.8.0 +Version: 3.30.1 Release: 0 Url: http://ftp.gnome.org/pub/GNOME/sources/pygobject/ Source: http://download.gnome.org/sources/pygobject/3.8/%{_name}-%{version}.tar.xz @@ -51,21 +51,10 @@ GLib's GObjects. This package contains a module providing backwards compatibility to pygtk. -%package -n libpyglib-gi-python -Summary: Python Gobject Introspeciton binding -Group: System/Libraries - -%description -n libpyglib-gi-python -Pygobjects is an extension module for python that gives you access to -GLib's GObjects. - -The bindings are handled by gobject-introspection libraries. - %package devel Summary: Python bindings for GObject Group: Development/Libraries Requires: %{name} = %{version} -Requires: libpyglib-gi-python = %{version} %description devel This package contains files required to build wrappers for gobject @@ -76,34 +65,31 @@ addon libraries such as pygtk. cp %{SOURCE1001} . %build -%configure -make %{?jobs:-j%jobs} V=1 +%{__python} setup.py build %install -%make_install -rm examples/Makefile* -%fdupes $RPM_BUILD_ROOT - -%post -n libpyglib-gi-python -p /sbin/ldconfig - -%postun -n libpyglib-gi-python -p /sbin/ldconfig +%{__python} setup.py install --skip-build \ + --install-base=%{buildroot} \ + --install-lib=%{buildroot}%{python_sitearch} \ + --install-purelib=%{buildroot}%{_libdir} \ + --install-scripts=%{buildroot}%{_bindir} \ + --install-headers=%{buildroot}%{_includedir} \ + --install-data=%{buildroot}%{_usr} +%py_compile %{buildroot}/%{python_sitearch} +%py_compile -O %{buildroot}/%{python_sitearch} +%fdupes %{buildroot}/%{python_sitearch} %files %manifest %{name}.manifest %defattr(-,root,root) %license COPYING %{local_py_sitedir}/gi/ -%{local_py_sitedir}/pygobject-* +%{local_py_sitedir}/PyGObject-*.egg-info # Lives in cairo subpackage %exclude %{local_py_sitedir}/gi/_gi_cairo.so # Lives in pygtkcompat subpackage %exclude %{local_py_sitedir}/gi/pygtkcompat.py -%files -n libpyglib-gi-python -%manifest %{name}.manifest -%defattr(-, root, root) -%{_libdir}/libpyglib-gi-2.0-python%{local_py_suffix}.so.0* - %files cairo %manifest %{name}.manifest %defattr(-,root,root) @@ -119,5 +105,4 @@ rm examples/Makefile* %manifest %{name}.manifest %defattr(-,root,root) %{_includedir}/pygobject-3.0/ -%{_libdir}/*.so %{_libdir}/pkgconfig/pygobject-3.0.pc diff --git a/setup.py b/setup.py index 4640979..b3a697a 100755 --- a/setup.py +++ b/setup.py @@ -1073,8 +1073,8 @@ class install_pkgconfig(Command): content = h.read() config = { - "prefix": self.install_base, - "exec_prefix": self.install_platbase, + "prefix": "/usr", + "exec_prefix": "", "includedir": "${prefix}/include", "datarootdir": "${prefix}/share", "datadir": "${datarootdir}", -- 2.7.4