]> git.pld-linux.org Git - packages/python-ruamel.yaml.clib.git/blame - python-ruamel.yaml.clib.spec
- cleanup, pl
[packages/python-ruamel.yaml.clib.git] / python-ruamel.yaml.clib.spec
CommitLineData
1f6eff4f 1#
c8db3568 2# Conditional build:
c8db3568
JP
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
5
6%define module ruamel.yaml.clib
1f6eff4f
JB
7Summary: C version of reader, parser and emitter for ruamel.yaml
8Summary(pl.UTF-8): Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a dla ruamel.yaml
c8db3568
JP
9Name: python-%{module}
10Version: 0.2.0
1f6eff4f 11Release: 3
c8db3568
JP
12License: MIT
13Group: Libraries/Python
14#Source0Download: https://pypi.org/simple/ruamel.yaml.clib/
15Source0: https://files.pythonhosted.org/packages/source/r/ruamel.yaml.clib/%{module}-%{version}.tar.gz
16# Source0-md5: d188d050399426dd3ce4dd91a5f06518
17URL: https://pypi.org/project/ruamel.yaml.clib/
18BuildRequires: rpm-pythonprov
19BuildRequires: rpmbuild(macros) >= 1.714
20%if %{with python2}
1f6eff4f
JB
21BuildRequires: python-modules >= 1:2.7
22BuildRequires: python-setuptools >= 28.7.0
c8db3568
JP
23%endif
24%if %{with python3}
1f6eff4f
JB
25BuildRequires: python3-modules >= 1:3.5
26BuildRequires: python3-setuptools >= 28.7.0
c8db3568 27%endif
1f6eff4f
JB
28Requires: python-modules >= 1:2.7
29# for dir
30Requires: python-ruamel.base
c8db3568
JP
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34C version of reader, parser and emitter for ruamel.yaml derived from
35libyaml.
36
1f6eff4f
JB
37%description -l pl.UTF-8
38Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a dla
39ruamel.yaml, wywodząca się z libyaml.
40
c8db3568 41%package -n python3-%{module}
1f6eff4f
JB
42Summary: C version of reader, parser and emitter for ruamel.yaml
43Summary(pl.UTF-8): Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a ruamel.yaml
c8db3568 44Group: Libraries/Python
1f6eff4f
JB
45Requires: python3-modules >= 1:3.5
46# for dir
47Requires: python3-ruamel.base
c8db3568
JP
48
49%description -n python3-%{module}
50C version of reader, parser and emitter for ruamel.yaml derived from
51libyaml.
52
1f6eff4f
JB
53%description -n python3-%{module} -l pl.UTF-8
54Wersja C biblioteki do odczytu, analizy i tworzenia YAML-a dla
55ruamel.yaml, wywodząca się z libyaml.
56
c8db3568
JP
57%prep
58%setup -q -n %{module}-%{version}
59
60%build
61%if %{with python2}
1f6eff4f 62%py_build
c8db3568
JP
63%endif
64
65%if %{with python3}
1f6eff4f 66%py3_build
c8db3568
JP
67%endif
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72%if %{with python2}
73%py_install
74
75%py_postclean
76%endif
77
78%if %{with python3}
79%py3_install
80%endif
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%if %{with python2}
86%files
87%defattr(644,root,root,755)
1f6eff4f 88%doc LICENSE README.rst
c8db3568 89%attr(755,root,root) %{py_sitedir}/_ruamel_yaml.so
1f6eff4f 90%dir %{py_sitedir}/ruamel/yaml
c8db3568 91%{py_sitedir}/ruamel/yaml/clib
1f6eff4f 92%{py_sitedir}/ruamel.yaml.clib-%{version}-py*.egg-info
c8db3568
JP
93%endif
94
95%if %{with python3}
96%files -n python3-%{module}
97%defattr(644,root,root,755)
1f6eff4f 98%doc LICENSE README.rst
c8db3568 99%attr(755,root,root) %{py3_sitedir}/_ruamel_yaml.cpython-*.so
1f6eff4f 100%dir %{py3_sitedir}/ruamel/yaml
c8db3568 101%{py3_sitedir}/ruamel/yaml/clib
1f6eff4f 102%{py3_sitedir}/ruamel.yaml.clib-%{version}-py*.egg-info
c8db3568 103%endif
This page took 0.237205 seconds and 4 git commands to generate.