Bump to python3-gobject 3.42.1 28/277828/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified sandbox/backup/python3-gobject_3.42.1_20231226 sandbox/dh0128.kwak/python3-gobject-3.42.1-20220714 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.063341 accepted/tizen/7.0/unified/hotfix/20221116.111356 accepted/tizen/8.0/unified/20231005.095454 accepted/tizen/unified/20220715.141307 submit/tizen/20220714.062539 tizen_7.0_m2_release tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 14 Jul 2022 02:27:46 +0000 (11:27 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 14 Jul 2022 02:28:05 +0000 (11:28 +0900)
Change-Id: Ib5083df5a3108e00b21240c05be6649e8d6ad8b6

packaging/python3-gobject.manifest [new file with mode: 0644]
packaging/python3-gobject.spec [new file with mode: 0644]

diff --git a/packaging/python3-gobject.manifest b/packaging/python3-gobject.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python3-gobject.spec b/packaging/python3-gobject.spec
new file mode 100644 (file)
index 0000000..e8a4cf3
--- /dev/null
@@ -0,0 +1,88 @@
+Name:           python3-gobject
+Summary:        Python3 bindings for GObject
+License:        LGPL-2.1+
+Group:          Development/Libraries
+Version:        3.42.1
+Release:        0
+Url:            http://ftp.gnome.org/pub/GNOME/sources/pygobject/
+Source:         %{name}-%{version}.tar.xz
+Source1001:    python3-gobject.manifest
+
+BuildRequires:  glib2-devel >= 2.48.0
+BuildRequires:  gobject-introspection-devel >= 1.46.0
+BuildRequires:  libffi-devel
+BuildRequires:  pkgconfig(python3)
+BuildRequires:  pkgconfig(cairo)
+BuildRequires:  pkgconfig(cairo-gobject)
+BuildRequires:  python3-cairo-devel
+BuildRequires:  python3-setuptools
+Provides:       pygobject3
+
+%description
+Pygobjects is an extension module for python3 that gives you access to
+GLib's GObjects.
+
+%package cairo
+Summary:        Python3 bindings for GObject -- Cairo bindings
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo)
+Supplements:    packageand(%{name}:%{cairo_real_package})
+
+%description cairo
+Pygobjects is an extension module for python3 that gives you access to
+GLib's GObjects.
+
+This package contains the Python3 Cairo bindings for GObject.
+
+%package pygtkcompat
+Summary:        Python3 bindings for GObject -- PyGTK Backwards Compatibility
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+
+%description pygtkcompat
+Pygobjects is an extension module for python3 that gives you access to
+GLib's GObjects.
+
+This package contains a module providing backwards compatibility to
+pygtk.
+
+%package devel
+Summary:        Python3 bindings for GObject
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+
+%description devel
+This package contains files required to build wrappers for gobject
+addon libraries such as pygtk.
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
+
+%build
+%{_bindir}/python3 setup.py build
+
+%install
+%{_bindir}/python3 setup.py install --skip-build --root %{buildroot}
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%{python3_sitearch}/gi/
+%{python3_sitearch}/PyGObject-*.egg-info
+%exclude %{python3_sitearch}/gi/_gi_cairo*.so
+%exclude %{python3_sitearch}/gi/pygtkcompat.py
+
+%files cairo
+%manifest %{name}.manifest
+%{python3_sitearch}/gi/_gi_cairo*.so
+
+%files pygtkcompat
+%manifest %{name}.manifest
+%{python3_sitearch}/pygtkcompat
+
+%files devel
+%manifest %{name}.manifest
+%{_includedir}/pygobject-3.0/
+%{_libdir}/pkgconfig/pygobject-3.0.pc