[packages/python-repoguard] - unfinished

arekm arekm at pld-linux.org
Tue Feb 18 18:35:46 CET 2014


commit 12f09edff628773ce090a3d0b089729155f95297
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Feb 18 18:35:35 2014 +0100

    - unfinished

 python-repoguard.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 96 insertions(+)
---
diff --git a/python-repoguard.spec b/python-repoguard.spec
new file mode 100644
index 0000000..e83c156
--- /dev/null
+++ b/python-repoguard.spec
@@ -0,0 +1,96 @@
+#
+# Conditional build:
+%bcond_without	python2		# Python 2.x module
+%bcond_with	python3		# Python 3.x module
+#
+%define	module	repoguard
+#
+Summary:	A framework for Subversion commit hooks
+Name:		python-repoguard
+Version:	0.2.0
+Release:	0.1
+License:	APL
+Group:		Development/Version Control
+Source0:	http://repoguard.tigris.org/files/documents/6497/48735/repoguard-%{version}.tar
+# Source0-md5:	b7036d436e819576917daa3bca0f2482
+URL:		http://repoguard.tigris.org/
+%if %{with python2}
+BuildRequires:	python-devel
+BuildRequires:	python-modules
+Requires:	python
+Requires:	python-configobj
+%endif
+%if %{with python3}
+BuildRequires:	python3-2to3
+BuildRequires:	python3-devel
+BuildRequires:	python3-modules
+%endif
+BuildRequires:	rpm-pythonprov
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+RepoGuard is an advanced validation framework with built-in
+integrations for several common version control systems. It is the
+successor of the SVNChecker framework.
+
+%package -n	python3-%{module}
+Summary:	A framework for Subversion commit hooks
+Group:		Libraries/Python
+Requires:	python3
+Requires:	python3-configobj
+
+%description -n python3-%{module}
+RepoGuard is an advanced validation framework with built-in
+integrations for several common version control systems. It is the
+successor of the SVNChecker framework.
+
+%prep
+%setup  -q -n repoguard-%{version}
+
+%build
+%if %{with python2}
+%{__python} ./setup.py build --build-base py2
+%endif
+%if %{with python3}
+%{__python3} ./setup.py build --build-base py3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
+%{__python} ./setup.py build \
+	--build-base py2 \
+	install \
+	--optimize 2 \
+	--root=$RPM_BUILD_ROOT
+%endif
+
+%if %{with python3}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+%{__python3} ./setup.py build \
+	--build-base py3 \
+	install \
+	--optimize 2 \
+	--root=$RPM_BUILD_ROOT
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{_examplesdir}/python-%{module}-%{version}
+%attr(755,root,root) %{_bindir}/repoguard
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/*egg-info
+%{py_sitescriptdir}/*nspkg.pth
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-repoguard.git/commitdiff/12f09edff628773ce090a3d0b089729155f95297



More information about the pld-cvs-commit mailing list