[packages/python-spec] - new
qboosh
qboosh at pld-linux.org
Mon Dec 1 20:09:39 CET 2025
commit cc7ce38b9d4761b3cb1c9b45f721db3288cf90f9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Dec 1 20:09:40 2025 +0100
- new
python-spec.spec | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 95 insertions(+)
---
diff --git a/python-spec.spec b/python-spec.spec
new file mode 100644
index 0000000..b7e0459
--- /dev/null
+++ b/python-spec.spec
@@ -0,0 +1,95 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Specification-style output for nose
+Summary(pl.UTF-8): Wyjście nose w stylu specyfikacji
+Name: python-spec
+Version: 1.4.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/spec/
+Source0: https://files.pythonhosted.org/packages/source/s/spec/spec-%{version}.tar.gz
+# Source0-md5: f2208821a656660de7d5d68740de7795
+URL: https://pypi.org/project/spec/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.6
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Specification-style output for nose.
+
+%description -l pl.UTF-8
+Wyjście nose w stylu specyfikacji.
+
+%package -n python3-spec
+Summary: Specification-style output for nose
+Summary(pl.UTF-8): Wyjście nose w stylu specyfikacji
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.3
+
+%description -n python3-spec
+Specification-style output for nose.
+
+%description -n python3-spec -l pl.UTF-8
+Wyjście nose w stylu specyfikacji.
+
+%prep
+%setup -q -n spec-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/spec{,-2}
+%endif
+
+%if %{with python3}
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/spec{,-3}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/spec-2
+%{py_sitescriptdir}/spec
+%{py_sitescriptdir}/spec-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-spec
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/spec-3
+%{py3_sitescriptdir}/spec
+%{py3_sitescriptdir}/spec-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-spec.git/commitdiff/cc7ce38b9d4761b3cb1c9b45f721db3288cf90f9
More information about the pld-cvs-commit
mailing list