[packages/python-ruamel.yaml.clib] - cleanup, pl - own arch-specific ruamel/yaml dir (ruamel.yaml requires this package, not the opposi

qboosh qboosh at pld-linux.org
Sat Jun 27 19:29:08 CEST 2020


commit 1f6eff4fc525a77988837c6ee9b678a537bee06f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 27 19:30:09 2020 +0200

    - cleanup, pl
    - own arch-specific ruamel/yaml dir (ruamel.yaml requires this package, not the opposite)
    - release 3

 python-ruamel.yaml.clib.spec | 48 +++++++++++++++++++++++++++++---------------
 1 file changed, 32 insertions(+), 16 deletions(-)
---
diff --git a/python-ruamel.yaml.clib.spec b/python-ruamel.yaml.clib.spec
index 6233e7a..aa5dcef 100644
--- a/python-ruamel.yaml.clib.spec
+++ b/python-ruamel.yaml.clib.spec
@@ -1,13 +1,14 @@
+#
 # 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
+Summary:	C version of reader, parser and emitter for ruamel.yaml
+Summary(pl.UTF-8):	Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a dla ruamel.yaml
 Name:		python-%{module}
 Version:	0.2.0
-Release:	2
+Release:	3
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/ruamel.yaml.clib/
@@ -17,39 +18,52 @@ 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
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools >= 28.7.0
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules
-BuildRequires:	python3-setuptools
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools >= 28.7.0
 %endif
-Requires:	python-modules
+Requires:	python-modules >= 1:2.7
+# for dir
+Requires:	python-ruamel.base
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 C version of reader, parser and emitter for ruamel.yaml derived from
 libyaml.
 
+%description -l pl.UTF-8
+Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a dla
+ruamel.yaml, wywodząca się z libyaml.
+
 %package -n python3-%{module}
-Summary:	C version of reader, parser and emitter for ruamel.yaml derived from libyaml
+Summary:	C version of reader, parser and emitter for ruamel.yaml
+Summary(pl.UTF-8):	Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a ruamel.yaml
 Group:		Libraries/Python
-Requires:	python3-modules
+Requires:	python3-modules >= 1:3.5
+# for dir
+Requires:	python3-ruamel.base
 
 %description -n python3-%{module}
 C version of reader, parser and emitter for ruamel.yaml derived from
 libyaml.
 
+%description -n python3-%{module} -l pl.UTF-8
+Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a dla
+ruamel.yaml, wywodząca się z libyaml.
+
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
 %endif
 
 %install
@@ -71,17 +85,19 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
 %attr(755,root,root) %{py_sitedir}/_ruamel_yaml.so
+%dir %{py_sitedir}/ruamel/yaml
 %{py_sitedir}/ruamel/yaml/clib
-%{py_sitedir}/%{module}-%{version}-py*.egg-info
+%{py_sitedir}/ruamel.yaml.clib-%{version}-py*.egg-info
 %endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
 %attr(755,root,root) %{py3_sitedir}/_ruamel_yaml.cpython-*.so
+%dir %{py3_sitedir}/ruamel/yaml
 %{py3_sitedir}/ruamel/yaml/clib
-%{py3_sitedir}/%{module}-%{version}-py*.egg-info
+%{py3_sitedir}/ruamel.yaml.clib-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ruamel.yaml.clib.git/commitdiff/1f6eff4fc525a77988837c6ee9b678a537bee06f



More information about the pld-cvs-commit mailing list