From: Jan Rękorajski Date: Tue, 15 Aug 2023 20:58:53 +0000 (+0200) Subject: - new X-Git-Tag: auto/th/python3-rencode-1.0.6-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=b26e186b0c3e1be42c265994e96708fb1eee29c8;p=packages%2Fpython3-rencode.git - new --- b26e186b0c3e1be42c265994e96708fb1eee29c8 diff --git a/python3-rencode.spec b/python3-rencode.spec new file mode 100644 index 0000000..69b21c0 --- /dev/null +++ b/python3-rencode.spec @@ -0,0 +1,48 @@ +# +# Conditional build: +%bcond_without tests # unit tests + +%define module rencode +Summary: Web safe object pickling/unpickling +Name: python3-%{module} +Version: 1.0.6 +Release: 1 +License: GPL v3//BSD +Group: Libraries/Python +Source0: https://github.com/aresch/rencode/archive/v%{version}/%{module}-%{version}.tar.gz +# Source0-md5: 5ad85007483c35d0d04c1e027a680f1c +URL: https://github.com/aresch/rencode/ +BuildRequires: python3-devel >= 1:3.2 +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +Requires: python3-modules >= 1:3.2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +The rencode module is a modified version of bencode from the +BitTorrent project. For complex, heterogeneous data structures with +many small elements, r-encodings take up significantly less space than +b-encodings. + +%prep +%setup -q -n %{module}-%{version} + +%build +%py3_build %{?with_tests:test} + +%install +rm -rf $RPM_BUILD_ROOT + +%py3_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.md +%dir %{py3_sitedir}/%{module} +%{py3_sitedir}/%{module}/*.py +%attr(755,root,root) %{py3_sitedir}/%{module}/*.so +%{py3_sitedir}/%{module}/__pycache__ +%{py3_sitedir}/%{module}-%{version}-py*.egg-info