Bump to python-gobject-3.36.1 99/248299/1
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 25 Nov 2020 06:33:50 +0000 (15:33 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 25 Nov 2020 07:02:25 +0000 (16:02 +0900)
Change-Id: If2a4a7cdb350b558a47f58c0b3446c9fe2b145e9
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
.gitignore [deleted file]
packaging/python-gobject.manifest [new file with mode: 0644]
packaging/python-gobject.spec [new file with mode: 0644]
subprojects/.gitignore [deleted file]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index ea4475d..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-*.bak
-*.lo
-*.o
-*.orig
-*.pyc
-*.rej
-*.so
-*.la
-*.tab.c
-*~
-.*.sw[nop]
-*.gir
-*.typelib
-*.dll
-*.dylib
-.DS_STORE
-.deps
-.libs
-.idea
-.cache
-.pytest_cache
-gschemas.compiled
-pygobject-*.tar.xz
-Makefile
-Makefile.in
-/.dirstamp
-/ChangeLog
-/GPATH
-/GRTAGS
-/GSYMS
-/GTAGS
-/ID
-/INSTALL
-/PKG-INFO
-/TAGS
-/_libs
-/aclocal.m4
-/autom4te.cache
-/autoscan.log
-/compile
-/config.cache
-/config.guess
-/config.h
-/config.h.in
-/config.log
-/config.lt
-/config.status
-/config.status.lineno
-/config.sub
-/configure
-/configure.lineno
-/configure.scan
-/depcomp
-/gtk-doc.make
-/install-sh
-/libtool
-/ltmain.sh
-/m4/libtool.m4
-/m4/ltoptions.m4
-/m4/ltsugar.m4
-/m4/ltversion.m4
-/m4/lt~obsolete.m4
-/m4/glib-2.0.m4
-/m4/pkg.m4
-/m4/ax_*.m4
-/missing
-/mkinstalldirs
-/omf.make
-/py-compile
-/pygobject-3.0-uninstalled.pc
-/pygobject-3.0.pc
-/pygobject-*-coverage*
-/so_locations
-/stamp-h1
-/tags
-/xmldocs.make
-/tmp/*
-/build/
-/dist/
-/pygobject.egg-info/
-/MANIFEST
-/docs/_build
-/PyGObject.egg-info/
-*.pyd
-*.dll.a
-.coverage
diff --git a/packaging/python-gobject.manifest b/packaging/python-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/python-gobject.spec b/packaging/python-gobject.spec
new file mode 100644 (file)
index 0000000..81c1fba
--- /dev/null
@@ -0,0 +1,108 @@
+%define local_py_requires %{py_requires}
+%define local_py_sitedir  %{py_sitedir}
+%define local_py_suffix   2
+%define local_lib_ver     0
+
+Name:           python-gobject
+%define _name   pygobject
+Summary:        Python bindings for GObject
+License:        LGPL-2.1+
+Group:          Development/Libraries
+Version:        3.36.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
+Source1001:    python-gobject.manifest
+BuildRequires:  fdupes
+BuildRequires:  glib2-devel >= 2.48.0
+BuildRequires:  gobject-introspection-devel >=  1.46.0
+BuildRequires:  libffi-devel
+BuildRequires:  python-cairo-devel
+BuildRequires:  python-devel
+BuildRequires:  pkgconfig(cairo)
+BuildRequires:  pkgconfig(cairo-gobject)
+BuildRequires:  python
+Provides:       pygobject3
+
+%description
+Pygobjects is an extension module for python that gives you access to
+GLib's GObjects.
+
+%package cairo
+Summary:        Python bindings for GObject -- Cairo bindings
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+
+%description cairo
+Pygobjects is an extension module for python that gives you access to
+GLib's GObjects.
+
+This package contains the Python Cairo bindings for GObject.
+
+%package pygtkcompat
+Summary:        Python bindings for GObject -- PyGTK Backwards Compatibility
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+
+%description pygtkcompat
+Pygobjects is an extension module for python that gives you access to
+GLib's GObjects.
+
+This package contains a module providing backwards compatibility to
+pygtk.
+
+%package devel
+Summary:        Python 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
+%{__python} setup.py build
+
+%install
+%{__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-*.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 cairo
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{local_py_sitedir}/gi/_gi_cairo.so
+
+%files pygtkcompat
+%manifest %{name}.manifest
+%defattr(-,root,root)
+#%{local_py_sitedir}/gi/pygtkcompat.py
+%{local_py_sitedir}/pygtkcompat
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_includedir}/pygobject-3.0/
+%{_libdir}/pkgconfig/pygobject-3.0.pc
diff --git a/subprojects/.gitignore b/subprojects/.gitignore
deleted file mode 100644 (file)
index e3ab765..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-glib
-libffi
-gobject-introspection
-pycairo