From 3de0d82c7b4dd24ffbf4c508ce6549b900238e73 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 12 Apr 2020 10:50:48 +0200 Subject: [PATCH] - moved from python-pyrsistent.spec, updated to 0.16.0; python2 support withdrawn, but six not removed yet --- python3-pyrsistent.spec | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 python3-pyrsistent.spec diff --git a/python3-pyrsistent.spec b/python3-pyrsistent.spec new file mode 100644 index 0000000..c2bc123 --- /dev/null +++ b/python3-pyrsistent.spec @@ -0,0 +1,67 @@ +# +# Conditional build: +%bcond_without tests # unit tests + +%define module pyrsistent +Summary: Persistent/Functional/Immutable data structures +Summary(pl.UTF-8): Trwałe/funkcyjne/niezmienne struktury danych +Name: python3-pyrsistent +Version: 0.16.0 +Release: 1 +License: MIT +Group: Libraries/Python +#Source0Download: https://pypi.org/simple/pyrsistent/ +Source0: https://files.pythonhosted.org/packages/source/p/pyrsistent/%{module}-%{version}.tar.gz +# Source0-md5: 4ba30da6f0a63554e70ac6c4c1904929 +URL: http://github.com/tobgu/pyrsistent/ +BuildRequires: python3-devel >= 1:3.5 +BuildRequires: python3-setuptools +%if %{with tests} +BuildRequires: python3-hypothesis +# < 5? works also with 5.4.1 +BuildRequires: python3-pytest < 5 +BuildRequires: python3-six +%endif +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +Requires: python3-modules >= 1:3.5 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Pyrsistent is a number of persistent collections (by some referred to +as functional data structures). Persistent in the sense that they are +immutable. + +%description -l pl.UTF-8 +Pyrsistent to zbiór trwałych kolekcji (nazywanych także funkcyjnymi +strukturami danych). Są trwałe w tym sensie, że są niezmienne. + +%prep +%setup -q -n %{module}-%{version} + +# Remove bundled egg-info +%{__rm} -r %{module}.egg-info + +%build +%py3_build + +%if %{with tests} +%{__python3} -m pytest tests +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +%py3_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES.txt LICENCE.mit README.rst +%attr(755,root,root) %{py3_sitedir}/pvectorc.cpython-*.so +%{py3_sitedir}/_pyrsistent_version.py +%{py3_sitedir}/__pycache__/_pyrsistent_version.cpython-*.py[co] +%{py3_sitedir}/pyrsistent +%{py3_sitedir}/pyrsistent-%{version}-py*.egg-info -- 2.43.0