|
@@ -1,10 +1,10 @@
|
|
|
-%bcond_without python2
|
|
|
+%bcond_with python2
|
|
|
%bcond_without python3
|
|
|
|
|
|
Name: pygobject3
|
|
|
Summary: Python bindings for GObject Introspection
|
|
|
Summary(ja): GObject Introspection の Python バインディング
|
|
|
-Version: 3.36.1
|
|
|
+Version: 3.40.1
|
|
|
Release: 1%{?_dist_release}
|
|
|
Group: programming
|
|
|
Vendor: Project Vine
|
|
@@ -12,7 +12,7 @@ Distribution: Vine Linux
|
|
|
|
|
|
License: LGPL
|
|
|
URL: https://pypi.org/project/PyGObject/
|
|
|
-%global shortver %(echo "%{version}" | sed -e 's/\.[0-9]*$//')
|
|
|
+%global shortver %(echo "%{version}" | cut -d . -f 1-2)
|
|
|
Source: https://ftp.gnome.org/pub/GNOME/sources/pygobject/%{shortver}/pygobject-%{version}.tar.xz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
@@ -36,20 +36,6 @@ pygobject provides a convenient wrapper for the GObject library
|
|
|
for use in Python programs.
|
|
|
|
|
|
|
|
|
-%package devel
|
|
|
-Summary: Development files for building add-on libraries
|
|
|
-Group: programming
|
|
|
-Provides: python3-pygobject-devel = %{version}-%{release}
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
-Requires: glib2-devel
|
|
|
-Requires: libffi-devel
|
|
|
-Requires: pkgconfig
|
|
|
-
|
|
|
-%description devel
|
|
|
-This package contains files required to build wrappers for
|
|
|
-pygobject-based libraries such as pygtk2.
|
|
|
-
|
|
|
-
|
|
|
%if %{with python3}
|
|
|
%package -n python3-pygobject
|
|
|
Summary: Python3 bindings for GObject Introspection
|
|
@@ -64,17 +50,32 @@ Obsoletes: python3-pygobject < 3.16.1
|
|
|
%description -n python3-pygobject
|
|
|
python3-pygobject provides a convenient wrapper for the GObject library
|
|
|
for use in Python3 programs.
|
|
|
+
|
|
|
+
|
|
|
+%package -n python3-pygobject-devel
|
|
|
+Summary: Development files for building add-on libraries
|
|
|
+Group: programming
|
|
|
+Obsoletes: pygobject-devel < 3.40.0
|
|
|
+Provides: pygobject-devel = %{version}-%{release}
|
|
|
+Requires: python3-pygobject = %{version}-%{release}
|
|
|
+Requires: glib2-devel
|
|
|
+Requires: libffi-devel
|
|
|
+Requires: pkgconfig
|
|
|
+
|
|
|
+%description -n python3-pygobject-devel
|
|
|
+This package contains files required to build wrappers for
|
|
|
+pygobject-based libraries such as pygtk3.
|
|
|
%endif
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n pygobject-%{version}
|
|
|
|
|
|
|
|
|
%build
|
|
|
-%if %{with python2}
|
|
|
-%py_build
|
|
|
-%endif
|
|
|
%if %{with python3}
|
|
|
%py3_build
|
|
|
%endif
|
|
@@ -82,9 +83,6 @@ for use in Python3 programs.
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-%if %{with python2}
|
|
|
-%py_install
|
|
|
-%endif
|
|
|
%if %{with python3}
|
|
|
%py3_install
|
|
|
%endif
|
|
@@ -93,21 +91,6 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%clean
|
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
|
-%if %{with python2}
|
|
|
-%files
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%license COPYING
|
|
|
-%doc NEWS README*
|
|
|
-%doc examples
|
|
|
-%{_libdir}/python2.7/site-packages/pygtkcompat
|
|
|
-%{python_sitearch}/*.egg-info
|
|
|
-%{python_sitearch}/gi
|
|
|
-%endif
|
|
|
-
|
|
|
-%files devel
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%{_includedir}/pygobject-3.0/pygobject.h
|
|
|
-%{_libdir}/pkgconfig/pygobject-3.0.pc
|
|
|
|
|
|
%if %{with python3}
|
|
|
%files -n python3-pygobject
|
|
@@ -117,10 +100,19 @@ rm -fr $RPM_BUILD_ROOT
|
|
|
%{python3_sitearch}/pygtkcompat
|
|
|
%{python3_sitearch}/*.egg-info
|
|
|
%{python3_sitearch}/gi
|
|
|
+
|
|
|
+%files -n python3-pygobject-devel
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_includedir}/pygobject-3.0/pygobject.h
|
|
|
+%{_libdir}/pkgconfig/pygobject-3.0.pc
|
|
|
%endif
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Apr 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.40.0-1
|
|
|
+- new upstream release.
|
|
|
+- python2 is no longer supported.
|
|
|
+
|
|
|
* Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.36.1-1
|
|
|
- new upstream release.
|
|
|
|