3 %bcond_without tests # do not perform "make test"
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Python 2 package to manager versions by scm tags
8 Summary(pl.UTF-8): Pakiet Pythona 2 do zarządzania wersjami poprzez etykiety systemu kontroli wersji
9 Name: python-setuptools_scm
13 Group: Libraries/Python
14 #Source0Download: https://pypi.python.org/pypi/setuptools_scm
15 Source0: https://pypi.python.org/packages/source/s/setuptools_scm/setuptools-scm-%{version}.tar.gz
16 # Source0-md5: 251730e2ca3ff05e6e1fcd4ba368e6a8
17 URL: https://bitbucket.org/pypa/setuptools_scm/
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.612
21 BuildRequires: python-modules >= 1:2.6
22 BuildRequires: python-setuptools
25 BuildRequires: python3-setuptools
26 BuildRequires: python3-modules >= 1:3.2
28 Requires: python-setuptools
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 setuptools_scm is a simple utility for the setup_requires feature of
34 setuptools for use in Mercurial and Git based projects.
36 %description -l pl.UTF-8
37 setuptools_scm to proste narzędzie dla funkcji setup_requires modułu
38 setuptools przeznaczone do stosowania w projektach opatych na
39 systemach kontroli wersji Mercurial i Git.
41 %package -n python3-setuptools_scm
42 Summary: Python 3 package to manager versions by scm tags
43 Summary(pl.UTF-8): Pakiet Pythona 3 do zarządzania wersjami poprzez etykiety systemu kontroli wersji
44 Group: Libraries/Python
45 Requires: python3-setuptools
47 %description -n python3-setuptools_scm
48 setuptools_scm is a simple utility for the setup_requires feature of
49 setuptools for use in Mercurial and Git based projects.
51 %description -n python3-setuptools_scm -l pl.UTF-8
52 setuptools_scm to proste narzędzie dla funkcji setup_requires modułu
53 setuptools przeznaczone do stosowania w projektach opatych na
54 systemach kontroli wersji Mercurial i Git.
57 %setup -q -n setuptools-scm-%{version}
61 %{__python} setup.py \
62 build --build-base build-2 %{?with_tests:test}
66 %{__python3} setup.py \
67 build --build-base build-3 %{?with_tests:test}
71 rm -rf $RPM_BUILD_ROOT
74 %{__python} setup.py \
75 build --build-base build-2 \
76 install --skip-build \
78 --root=$RPM_BUILD_ROOT
84 %{__python3} setup.py \
85 build --build-base build-3 \
86 install --skip-build \
88 --root=$RPM_BUILD_ROOT
92 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc CHANGELOG.rst LICENSE README.rst
98 %{py_sitescriptdir}/setuptools_scm
99 %{py_sitescriptdir}/setuptools_scm-%{version}-py*.egg-info
103 %files -n python3-setuptools_scm
104 %defattr(644,root,root,755)
105 %doc CHANGELOG.rst LICENSE README.rst
106 %{py3_sitescriptdir}/setuptools_scm
107 %{py3_sitescriptdir}/setuptools_scm-%{version}-py*.egg-info