Bump to python-gobject 3.30.1 03/192503/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.013123 accepted/tizen/5.5/unified/mobile/hotfix/20201027.072115 accepted/tizen/5.5/unified/wearable/hotfix/20201027.104652 accepted/tizen/unified/20181107.082123 accepted/tizen/unified/20181107.082234 submit/tizen/20181106.062940 submit/tizen/20181107.002150 submit/tizen_5.5/20191031.000008 submit/tizen_5.5_mobile_hotfix/20201026.185108 submit/tizen_5.5_wearable_hotfix/20201026.184308 tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 6 Nov 2018 05:39:55 +0000 (14:39 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 6 Nov 2018 05:43:25 +0000 (14:43 +0900)
[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 <dh0128.kwak@samsung.com>
packaging/python-gobject.spec
setup.py

index 2d8a734..49593ec 100644 (file)
@@ -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
index 4640979..b3a697a 100755 (executable)
--- 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}",