python-slip/python-slip.spec

89 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:15:36 -04:00
Name: python-slip
Version: 0.6.5
Release: 7
2019-09-30 11:15:36 -04:00
Summary: Library for Python 2.x with Convenience, extension and workaround
License: GPLv2+
URL: https://github.com/nphilipp/%{name}
Source0: https://github.com/nphilipp/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
2023-03-14 11:41:44 +08:00
Patch9000: huawei-fix-sender_seen-memory-leak.patch
2019-09-30 11:15:36 -04:00
BuildArch: noarch
BuildRequires: python3 python3-devel
2019-09-30 11:15:36 -04:00
%description
The Simple Library for Python 2.x and Python 3.x packages contain
miscellaneous code for convenience, extension and workaround purposes.
This package provides the "slip" and the "slip.util" modules.
%package -n python3-slip
Summary: Convenience, extension and workaround code for Python 3.x
Requires: python3-libselinux python3-decorator python3-six
Requires: python3-slip = %{version}-%{release}
Requires: python3-dbus >= 0.80
Provides: python3-slip = %{version}-%{release}
Provides: python3-slip-dbus = %{version}-%{release}
Obsoletes: python3-slip-dbus
%description -n python3-slip
Slip for Python 3.x packages
%prep
2023-03-14 11:41:44 +08:00
%autosetup -n %{name}-%{version} -p1
2019-09-30 11:15:36 -04:00
find . -name '*.py' -o -name '*.py.in' | xargs sed -i '1s|^#!python|#!%{__python3}|'
2019-09-30 11:15:36 -04:00
%build
%make_build PYTHON=%{__python3}
%install
%make_install PYTHON=%{__python3}
%files -n python3-slip
2019-11-06 19:50:33 +08:00
%doc doc/dbus
%license COPYING
2019-09-30 11:15:36 -04:00
%dir %{python3_sitelib}/slip/
%{python3_sitelib}/slip/__pycache__
%{python3_sitelib}/slip/__init__.py*
%{python3_sitelib}/slip/util
%{python3_sitelib}/slip/_wrappers
%{python3_sitelib}/slip/dbus
%{python3_sitelib}/slip*-%{version}-py%{python3_version}.egg-info
%changelog
* Fri Mar 29 2024 zhuofeng <zhuofeng@huawei.com> - 0.6.5-7
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:Rebuild for next release
2023-03-14 11:41:44 +08:00
* Tue Mar 14 2023 zhuofeng <zhuofeng@huawei.com> - 0.6.5-6
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix sender_seen memory leak
* Wed Nov 4 2020 wangjie<wangjie294@huawei.com> -0.6.5-5
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
2020-01-11 10:30:11 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.5-4
- provides python2-slip-dbus
2019-11-06 19:50:33 +08:00
* Fri Oct 18 2019 Yufa Fang <fangyufa1@huawei.com> - 0.6.5-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix spec in openEuler rule
2019-09-30 11:15:36 -04:00
* Thu Sep 19 2019 Yufa Fang <fangyufa1@huawei.com> - 0.6.5-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: split python2-slip-gtk for python2-slip
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6.5-1
- Package Init