]> git.pld-linux.org Git - packages/python3-rencode.git/commitdiff
- new master auto/th/python3-rencode-1.0.6-1
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 15 Aug 2023 20:58:53 +0000 (22:58 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 15 Aug 2023 20:58:53 +0000 (22:58 +0200)
python3-rencode.spec [new file with mode: 0644]

diff --git a/python3-rencode.spec b/python3-rencode.spec
new file mode 100644 (file)
index 0000000..69b21c0
--- /dev/null
@@ -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
This page took 0.067086 seconds and 4 git commands to generate.