[packages/python-setuptools_scm] - new

qboosh qboosh at pld-linux.org
Wed Mar 11 21:15:32 CET 2015


commit a7eeda1041b0442881661069b7470037b178ce7e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 11 21:16:35 2015 +0100

    - new

 python-setuptools_scm.spec | 108 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)
---
diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec
new file mode 100644
index 0000000..96d407b
--- /dev/null
+++ b/python-setuptools_scm.spec
@@ -0,0 +1,108 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Python 2 package to manager versions by scm tags
+Summary(pl.UTF-8):	Pakiet Pythona 2 do zarządzania wersjami poprzez etykiety systemu kontroli wersji
+Name:		python-setuptools_scm
+Version:	1.2.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.python.org/pypi/setuptools_scm
+Source0:	https://pypi.python.org/packages/source/s/setuptools_scm/setuptools-scm-%{version}.tar.gz
+# Source0-md5:	251730e2ca3ff05e6e1fcd4ba368e6a8
+URL:		https://bitbucket.org/pypa/setuptools_scm/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.612
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-setuptools
+BuildRequires:	python3-modules >= 1:3.2
+%endif
+Requires:	python-setuptools
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+setuptools_scm is a simple utility for the setup_requires feature of
+setuptools for use in Mercurial and Git based projects.
+
+%description -l pl.UTF-8
+setuptools_scm to proste narzędzie dla funkcji setup_requires modułu
+setuptools przeznaczone do stosowania w projektach opatych na
+systemach kontroli wersji Mercurial i Git.
+
+%package -n python3-setuptools_scm
+Summary:	Python 3 package to manager versions by scm tags
+Summary(pl.UTF-8):	Pakiet Pythona 3 do zarządzania wersjami poprzez etykiety systemu kontroli wersji
+Group:		Libraries/Python
+Requires:	python3-setuptools
+
+%description -n python3-setuptools_scm
+setuptools_scm is a simple utility for the setup_requires feature of
+setuptools for use in Mercurial and Git based projects.
+
+%description -n python3-setuptools_scm -l pl.UTF-8
+setuptools_scm to proste narzędzie dla funkcji setup_requires modułu
+setuptools przeznaczone do stosowania w projektach opatych na
+systemach kontroli wersji Mercurial i Git.
+
+%prep
+%setup -q -n setuptools-scm-%{version}
+
+%build
+%if %{with python2}
+%{__python} setup.py \
+	build --build-base build-2 %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+	build --build-base build-3 %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%{__python} setup.py \
+	build --build-base build-2 \
+	install --skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+	build --build-base build-3 \
+	install --skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py_sitescriptdir}/setuptools_scm
+%{py_sitescriptdir}/setuptools_scm-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-setuptools_scm
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/setuptools_scm
+%{py3_sitescriptdir}/setuptools_scm-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-setuptools_scm.git/commitdiff/a7eeda1041b0442881661069b7470037b178ce7e



More information about the pld-cvs-commit mailing list