[packages/python-pycoinnet] simplify, unify
glen
glen at pld-linux.org
Sun Feb 2 13:43:21 CET 2014
commit 0c9f4fb27ca99509550ca4a15c24491afbb33177
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Feb 2 14:43:19 2014 +0200
simplify, unify
python-pycoinnet.spec | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/python-pycoinnet.spec b/python-pycoinnet.spec
index 21103d3..8a32981 100644
--- a/python-pycoinnet.spec
+++ b/python-pycoinnet.spec
@@ -2,9 +2,8 @@
# Conditional build:
%bcond_with python2 # Python 2.x module
%bcond_without python3 # Python 3.x module
-#
-%define module pycoinnet
-#
+
+%define module pycoinnet
Summary: Speaking the Bitcoin Protocol
Name: python-pycoinnet
Version: 0.01
@@ -14,17 +13,17 @@ Group: Development/Languages/Python
Source0: https://github.com/richardkiss/pycoinnet/archive/%{version}.tar.gz
# Source0-md5: 512f17827323eb1ba2bfe7952829575d
URL: https://github.com/richardkiss/pycoinnet
+BuildRequires: rpm-pythonprov
%if %{with python2}
BuildRequires: python-devel
BuildRequires: python-modules
-Requires: python
%endif
%if %{with python3}
BuildRequires: python3-2to3
BuildRequires: python3-devel >= 3.3
BuildRequires: python3-modules >= 3.3
%endif
-BuildRequires: rpm-pythonprov
+Requires: python
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -48,17 +47,17 @@ that speak the bitcoin protocol on the bitcoin network.
%build
%if %{with python2}
-%{__python} ./setup.py build --build-base py2
+%{__python} setup.py build --build-base py2
%endif
%if %{with python3}
-%{__python3} ./setup.py build --build-base py3
+%{__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 \
+%{__python} setup.py build \
--build-base py2 \
install \
--optimize 2 \
@@ -67,7 +66,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
%if %{with python3}
install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
-%{__python3} ./setup.py build \
+%{__python3} setup.py build \
--build-base py3 \
install \
--optimize 2 \
@@ -81,16 +80,16 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGES CREDITS README.md
-%{_examplesdir}/python-%{module}-%{version}
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/*egg-info
+%{_examplesdir}/python-%{module}-%{version}
%endif
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
%doc CHANGES CREDITS README.md
-%{_examplesdir}/python3-%{module}-%{version}
%{py3_sitescriptdir}/%{module}
%{py3_sitescriptdir}/*egg-info
+%{_examplesdir}/python3-%{module}-%{version}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pycoinnet.git/commitdiff/0c9f4fb27ca99509550ca4a15c24491afbb33177
More information about the pld-cvs-commit
mailing list