[packages/python-ruamel.yaml.clib] new (version 0.2.0)
atler
atler at pld-linux.org
Sat Feb 1 18:30:50 CET 2020
commit c8db35684ae369071dd22cdacec7120fde57994c
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Feb 1 18:30:19 2020 +0100
new (version 0.2.0)
python-ruamel.yaml.clib.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 88 insertions(+)
---
diff --git a/python-ruamel.yaml.clib.spec b/python-ruamel.yaml.clib.spec
new file mode 100644
index 0000000..2e4f64b
--- /dev/null
+++ b/python-ruamel.yaml.clib.spec
@@ -0,0 +1,88 @@
+# Conditional build:
+%bcond_with tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module ruamel.yaml.clib
+Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml
+Name: python-%{module}
+Version: 0.2.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/ruamel.yaml.clib/
+Source0: https://files.pythonhosted.org/packages/source/r/ruamel.yaml.clib/%{module}-%{version}.tar.gz
+# Source0-md5: d188d050399426dd3ce4dd91a5f06518
+URL: https://pypi.org/project/ruamel.yaml.clib/
+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
+C version of reader, parser and emitter for ruamel.yaml derived from
+libyaml.
+
+%package -n python3-%{module}
+Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml
+Group: Libraries/Python
+Requires: python3-modules
+
+%description -n python3-%{module}
+C version of reader, parser and emitter for ruamel.yaml derived from
+libyaml.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{py_sitedir}/_ruamel_yaml.so
+%{py_sitedir}/ruamel/yaml/clib
+%{py_sitedir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{py3_sitedir}/_ruamel_yaml.cpython-*.so
+%{py3_sitedir}/ruamel/yaml/clib
+%{py3_sitedir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ruamel.yaml.clib.git/commitdiff/c8db35684ae369071dd22cdacec7120fde57994c
More information about the pld-cvs-commit
mailing list