[packages/python-ruamel.base] new (version 1.0.0)
atler
atler at pld-linux.org
Sat Feb 1 18:29:07 CET 2020
commit c4d7b6c84acd1498a595709236916d6c1dbf8982
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Feb 1 18:28:34 2020 +0100
new (version 1.0.0)
python-ruamel.base.spec | 94 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
---
diff --git a/python-ruamel.base.spec b/python-ruamel.base.spec
new file mode 100644
index 0000000..f481274
--- /dev/null
+++ b/python-ruamel.base.spec
@@ -0,0 +1,94 @@
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module ruamel.base
+Summary: Common routines for ruamel packages
+Name: python-%{module}
+Version: 1.0.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/ruamel.base/
+Source0: https://files.pythonhosted.org/packages/source/r/ruamel.base/%{module}-%{version}.tar.gz
+# Source0-md5: 5b2fb0e7df10672eb2a48dc329f770ee
+URL: https://pypi.org/project/ruamel.base/
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%endif
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Common routines for ruamel packages.
+
+%package -n python3-%{module}
+Summary: Common routines for ruamel packages
+Group: Libraries/Python
+Requires: python3-modules
+
+%description -n python3-%{module}
+Common routines for ruamel packages.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+
+%if %{with python2}
+install -d $RPM_BUILD_ROOT%{py_sitedir}/ruamel
+
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+install -d $RPM_BUILD_ROOT%{py3_sitedir}/ruamel
+
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%dir %{py_sitescriptdir}/ruamel
+%{py_sitescriptdir}/ruamel/base
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%{py_sitescriptdir}/%{module}-%{version}-py*-nspkg.pth
+%dir %{py_sitedir}/ruamel
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.rst
+%dir %{py3_sitescriptdir}/ruamel
+%{py3_sitescriptdir}/ruamel/base
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%{py3_sitescriptdir}/%{module}-%{version}-py*-nspkg.pth
+%dir %{py3_sitedir}/ruamel
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ruamel.base.git/commitdiff/c4d7b6c84acd1498a595709236916d6c1dbf8982
More information about the pld-cvs-commit
mailing list