remove python2 subpackages
This commit is contained in:
parent
050617f0be
commit
d2544e7638
@ -1,18 +1,14 @@
|
|||||||
%global with_python3 1
|
|
||||||
|
|
||||||
Name: pygobject3
|
Name: pygobject3
|
||||||
Version: 3.36.1
|
Version: 3.36.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Provides bindings for GObject based libraries
|
Summary: Provides bindings for GObject based libraries
|
||||||
License: LGPLv2+ and MIT
|
License: LGPLv2+ and MIT
|
||||||
URL: https://wiki.gnome.org/Projects/PyGObject
|
URL: https://wiki.gnome.org/Projects/PyGObject
|
||||||
Source0: https://download.gnome.org/sources/pygobject/3.36/pygobject-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/pygobject/3.36/pygobject-%{version}.tar.xz
|
||||||
|
|
||||||
BuildRequires: glib2-devel >= 2.48.0 gobject-introspection-devel >= 1.46.0
|
BuildRequires: glib2-devel >= 2.48.0 gobject-introspection-devel >= 1.46.0
|
||||||
BuildRequires: meson cairo-gobject-devel python2-devel >= 2.7 python2-cairo-devel >= 1.11.1
|
BuildRequires: meson cairo-gobject-devel
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-devel >= 3.4 python3-cairo-devel >= 1.11.1
|
BuildRequires: python3-devel >= 3.4 python3-cairo-devel >= 1.11.1
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PyGObject is a Python package which provides bindings for GObject based libraries such as
|
PyGObject is a Python package which provides bindings for GObject based libraries such as
|
||||||
@ -21,32 +17,6 @@ PyGObject uses glib, gobject, girepository, libffi and other libraries to access
|
|||||||
library (libgtk-3.so) in combination with the additional metadata from the accompanying
|
library (libgtk-3.so) in combination with the additional metadata from the accompanying
|
||||||
typelib file (Gtk-3.0.typelib) and dynamically provides a Python interface based on that information.
|
typelib file (Gtk-3.0.typelib) and dynamically provides a Python interface based on that information.
|
||||||
|
|
||||||
%package -n python2-gobject
|
|
||||||
%{?python_provide:%python_provide python2-gobject}
|
|
||||||
Summary: GObject library wrapper for python 2
|
|
||||||
Requires: python2-gobject-base%{?_isa} = %{version}-%{release}
|
|
||||||
Requires: python2-cairo%{?_isa} >= 1.11.1
|
|
||||||
|
|
||||||
Provides: %{name} = %{version}-%{release}
|
|
||||||
Provides: %{name}%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-gobject
|
|
||||||
The python-gobject package provides a convenient wrapper for the GObject
|
|
||||||
library and and other libraries that are compatible with GObject Introspection,
|
|
||||||
for use in Python 2 programs.
|
|
||||||
|
|
||||||
%package -n python2-gobject-base
|
|
||||||
%{?python_provide:%python_provide python2-gobject-base}
|
|
||||||
Summary: base package for python2-gobject package
|
|
||||||
Requires: gobject-introspection%{?_isa}
|
|
||||||
|
|
||||||
Provides: %{name}-base = %{version}-%{release}
|
|
||||||
Provides: %{name}-base%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-gobject-base
|
|
||||||
This package provides the non-cairo specific bits of the GObject Introspection
|
|
||||||
library.
|
|
||||||
|
|
||||||
%package -n python3-gobject
|
%package -n python3-gobject
|
||||||
Summary: GObject library wrapper for python 3
|
Summary: GObject library wrapper for python 3
|
||||||
Requires: python3-gobject-base%{?_isa} = %{version}-%{release}
|
Requires: python3-gobject-base%{?_isa} = %{version}-%{release}
|
||||||
@ -67,10 +37,7 @@ library.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: python2-gobject%{?_isa} = %{version}-%{release}
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
Requires: python3-gobject%{?_isa} = %{version}-%{release}
|
Requires: python3-gobject%{?_isa} = %{version}-%{release}
|
||||||
%endif
|
|
||||||
Requires: gobject-introspection-devel%{?_isa}
|
Requires: gobject-introspection-devel%{?_isa}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -79,26 +46,13 @@ This package contains files required to embed PyGObject
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -n pygobject-%{version} -p1
|
%autosetup -n pygobject-%{version} -p1
|
||||||
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson -Dpython=%{__python2}
|
|
||||||
%meson_build
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%meson -Dpython=%{__python3}
|
%meson -Dpython=%{__python3}
|
||||||
%meson_build
|
%meson_build
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%meson_install
|
|
||||||
popd
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -107,18 +61,6 @@ popd
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
|
||||||
%files -n python2-gobject
|
|
||||||
%{python2_sitearch}/gi/_gi_cairo.so
|
|
||||||
|
|
||||||
%files -n python2-gobject-base
|
|
||||||
%license COPYING
|
|
||||||
%doc NEWS
|
|
||||||
%dir %{python2_sitearch}/gi
|
|
||||||
%{python2_sitearch}/gi/*
|
|
||||||
%{python2_sitearch}/pygtkcompat/
|
|
||||||
%{python2_sitearch}/PyGObject-*.egg-info
|
|
||||||
%exclude %{python2_sitearch}/gi/_gi_cairo.so
|
|
||||||
|
|
||||||
%files -n python3-gobject
|
%files -n python3-gobject
|
||||||
%{python3_sitearch}/gi/_gi_cairo*.so
|
%{python3_sitearch}/gi/_gi_cairo*.so
|
||||||
|
|
||||||
@ -138,6 +80,9 @@ popd
|
|||||||
%{_libdir}/pkgconfig/pygobject-3.0.pc
|
%{_libdir}/pkgconfig/pygobject-3.0.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 29 2020 panxiaohe <panxiaohe@huawei.com> - 3.36.1-2
|
||||||
|
- remove python2 subpackages
|
||||||
|
|
||||||
* Mon Jul 27 2020 zhangxingliang <zhangxingliang3@huawei.com> - 3.36.1-1
|
* Mon Jul 27 2020 zhangxingliang <zhangxingliang3@huawei.com> - 3.36.1-1
|
||||||
- Type:update
|
- Type:update
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user