[packages/python-defusedxml] initial 0.4.1

arekm arekm at pld-linux.org
Wed Sep 24 15:03:07 CEST 2014


commit 78a30241d40a08cd2ed0d1d805afb1f66713bf0b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Sep 24 15:02:45 2014 +0200

    initial 0.4.1

 python-defusedxml.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)
---
diff --git a/python-defusedxml.spec b/python-defusedxml.spec
new file mode 100644
index 0000000..efd9f76
--- /dev/null
+++ b/python-defusedxml.spec
@@ -0,0 +1,91 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define 	module	defusedxml
+Summary:	XML bomb protection for Python stdlib modules
+Name:		python-%{module}
+Version:	0.4.1
+Release:	1
+License:	PSF
+Group:		Libraries/Python
+Source0:	https://pypi.python.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz#md5=230a5eff64f878b392478e30376d673a
+# Source0-md5:	230a5eff64f878b392478e30376d673a
+URL:		https://pypi.python.org/pypi/defusedxml
+%if %{with python2}
+BuildRequires:	python-distribute
+%endif
+%if %{with python3}
+BuildRequires:	python3-distribute
+BuildRequires:	python3-modules
+%endif
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+XML bomb protection for Python stdlib modules.
+
+%package -n python3-%{module}
+Summary:	XML bomb protection for Python stdlib modules
+Group:		Libraries/Python
+
+%description -n python3-%{module}
+XML bomb protection for Python stdlib modules.
+
+%prep
+%setup -q -n %{module}-%{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 README.txt CHANGES.txt
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.txt CHANGES.txt
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-defusedxml.git/commitdiff/78a30241d40a08cd2ed0d1d805afb1f66713bf0b



More information about the pld-cvs-commit mailing list