commit
0d7f287d9a
@ -1,32 +1,19 @@
|
|||||||
Name: python-slip
|
Name: python-slip
|
||||||
Version: 0.6.5
|
Version: 0.6.5
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Library for Python 2.x with Convenience, extension and workaround
|
Summary: Library for Python 2.x with Convenience, extension and workaround
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/nphilipp/%{name}
|
URL: https://github.com/nphilipp/%{name}
|
||||||
Source0: https://github.com/nphilipp/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
Source0: https://github.com/nphilipp/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2 python2-devel python3 python3-devel
|
BuildRequires: python3 python3-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Simple Library for Python 2.x and Python 3.x packages contain
|
The Simple Library for Python 2.x and Python 3.x packages contain
|
||||||
miscellaneous code for convenience, extension and workaround purposes.
|
miscellaneous code for convenience, extension and workaround purposes.
|
||||||
This package provides the "slip" and the "slip.util" modules.
|
This package provides the "slip" and the "slip.util" modules.
|
||||||
|
|
||||||
%package -n python2-slip
|
|
||||||
Summary: Convenience, extension and workaround code for Python 2.x
|
|
||||||
Requires: python2-libselinux python2-six python2-decorator
|
|
||||||
Requires: python2-slip = %{version}-%{release}
|
|
||||||
Requires: python2-dbus >= 0.80
|
|
||||||
%{?python_provide:%python_provide python2-slip}
|
|
||||||
%{?python_provide:%python_provide python2-slip-dbus}
|
|
||||||
Provides: python2-slip-dbus
|
|
||||||
Obsoletes: python2-slip-dbus
|
|
||||||
|
|
||||||
%description -n python2-slip
|
|
||||||
Slip for Python 2.x packages
|
|
||||||
|
|
||||||
%package -n python3-slip
|
%package -n python3-slip
|
||||||
Summary: Convenience, extension and workaround code for Python 3.x
|
Summary: Convenience, extension and workaround code for Python 3.x
|
||||||
Requires: python3-libselinux python3-decorator python3-six
|
Requires: python3-libselinux python3-decorator python3-six
|
||||||
@ -39,46 +26,16 @@ Obsoletes: python3-slip-dbus
|
|||||||
%description -n python3-slip
|
%description -n python3-slip
|
||||||
Slip for Python 3.x packages
|
Slip for Python 3.x packages
|
||||||
|
|
||||||
%package -n python2-slip-gtk
|
|
||||||
Summary: Code to make auto-wrapping gtk labels
|
|
||||||
Requires: python2-slip = %{version}-%{release}
|
|
||||||
Requires: pygtk2
|
|
||||||
%{?python_provide:%python_provide python2-slip-gtk}
|
|
||||||
|
|
||||||
%description -n python2-slip-gtk
|
|
||||||
Auto-wrapping function for Python 2.x packages
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup
|
||||||
|
|
||||||
rm -rf %{py3dir}
|
find . -name '*.py' -o -name '*.py.in' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||||
cp -a . %{py3dir}
|
|
||||||
find %{py3dir} -name '*.py' -o -name '*.py.in' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build PYTHON=%{__python2}
|
|
||||||
|
|
||||||
cd %{py3dir}
|
|
||||||
%make_build PYTHON=%{__python3}
|
%make_build PYTHON=%{__python3}
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install PYTHON=%{__python2}
|
|
||||||
|
|
||||||
cd %{py3dir}
|
|
||||||
%make_install PYTHON=%{__python3}
|
%make_install PYTHON=%{__python3}
|
||||||
cd ..
|
|
||||||
|
|
||||||
%files -n python2-slip
|
|
||||||
%doc doc/dbus
|
|
||||||
%license COPYING
|
|
||||||
%dir %{python2_sitelib}/slip/
|
|
||||||
%{python2_sitelib}/slip/__init__.py*
|
|
||||||
%{python2_sitelib}/slip/util
|
|
||||||
%{python2_sitelib}/slip/_wrappers
|
|
||||||
%{python2_sitelib}/slip/dbus
|
|
||||||
%{python2_sitelib}/slip*-%{version}-py%{python2_version}.egg-info
|
|
||||||
%exclude %{python2_sitelib}/slip.gtk-%{version}-py%{python2_version}.egg-info
|
|
||||||
|
|
||||||
%files -n python3-slip
|
%files -n python3-slip
|
||||||
%doc doc/dbus
|
%doc doc/dbus
|
||||||
@ -91,11 +48,13 @@ cd ..
|
|||||||
%{python3_sitelib}/slip/dbus
|
%{python3_sitelib}/slip/dbus
|
||||||
%{python3_sitelib}/slip*-%{version}-py%{python3_version}.egg-info
|
%{python3_sitelib}/slip*-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%files -n python2-slip-gtk
|
|
||||||
%{python2_sitelib}/slip/gtk
|
|
||||||
%{python2_sitelib}/slip.gtk-%{version}-py%{python2_version}.egg-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 4 2020 wangjie<wangjie294@huawei.com> -0.6.5-5
|
||||||
|
- Type:NA
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:remove python2
|
||||||
|
|
||||||
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.5-4
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.5-4
|
||||||
- provides python2-slip-dbus
|
- provides python2-slip-dbus
|
||||||
|
|
||||||
|
|||||||
4
python-slip.yaml
Normal file
4
python-slip.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: nphilipp/python-slip
|
||||||
|
tag_prefix: ^python-slip-
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user