[packages/python3-asyncio] simplify, unify
glen
glen at pld-linux.org
Sun Feb 2 13:29:37 CET 2014
commit d288386597a6a5958543696f129b9bc8dd1282a5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Feb 2 14:29:08 2014 +0200
simplify, unify
python3-asyncio.spec | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/python3-asyncio.spec b/python3-asyncio.spec
index fafba22..8c02142 100644
--- a/python3-asyncio.spec
+++ b/python3-asyncio.spec
@@ -1,15 +1,15 @@
#
-%bcond_without tests
-#
-%define module asyncio
-#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define module asyncio
Summary: Asynchronous IO Support
-Name: python3-asyncio
+Name: python3-%{module}
Version: 0.2.1
Release: 1
License: GPL
Group: Development/Languages/Python
-Source0: http://pypi.python.org/packages/source/a/asyncio/asyncio-%{version}.tar.gz
+Source0: http://pypi.python.org/packages/source/a/asyncio/%{module}-%{version}.tar.gz
# Source0-md5: 55dd3fa7aaa243526315d7b6e5ed1ade
URL: https://pypi.python.org/pypi/asyncio
BuildRequires: python3-2to3
@@ -28,19 +28,17 @@ higher-level scheduler based on yield from (PEP 380)
%setup -q -n asyncio-%{version}
%build
-%{__python3} ./setup.py build --build-base py3
-
+%{__python3} setup.py build
%{?with_tests:%{__make} test PYTHON=%{__python3}}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
-%{__python3} ./setup.py build \
- --build-base py3 \
- install \
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%{__python3} setup.py install \
--optimize 2 \
--root=$RPM_BUILD_ROOT
-cp examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+
+cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -48,6 +46,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README
-%{_examplesdir}/python3-%{module}-%{version}
%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/*egg-info
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-asyncio.git/commitdiff/d288386597a6a5958543696f129b9bc8dd1282a5
More information about the pld-cvs-commit
mailing list