[packages/python-pycoinnet] - initial (but useless; project didn't release any tarballs yet)
arekm
arekm at pld-linux.org
Sun Feb 2 00:49:15 CET 2014
commit e299101d8f451286852db6135ea9161b1aa88be5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Feb 2 00:49:03 2014 +0100
- initial (but useless; project didn't release any tarballs yet)
python-pycoinnet.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)
---
diff --git a/python-pycoinnet.spec b/python-pycoinnet.spec
new file mode 100644
index 0000000..21103d3
--- /dev/null
+++ b/python-pycoinnet.spec
@@ -0,0 +1,96 @@
+#
+# Conditional build:
+%bcond_with python2 # Python 2.x module
+%bcond_without python3 # Python 3.x module
+#
+%define module pycoinnet
+#
+Summary: Speaking the Bitcoin Protocol
+Name: python-pycoinnet
+Version: 0.01
+Release: 0.1
+License: MIT
+Group: Development/Languages/Python
+Source0: https://github.com/richardkiss/pycoinnet/archive/%{version}.tar.gz
+# Source0-md5: 512f17827323eb1ba2bfe7952829575d
+URL: https://github.com/richardkiss/pycoinnet
+%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
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+It provides utilities and examples for writing tools in pure Python
+that speak the bitcoin protocol on the bitcoin network.
+
+%package -n python3-%{module}
+Summary: Speaking the Bitcoin Protocol
+Version: 0.01
+Release: 1
+Group: Libraries/Python
+Requires: python3 >= 3.3
+
+%description -n python3-%{module}
+It provides utilities and examples for writing tools in pure Python
+that speak the bitcoin protocol on the bitcoin network.
+
+%prep
+%setup -q -n pycoinnet-%{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 CREDITS README.md
+%{_examplesdir}/python-%{module}-%{version}
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/*egg-info
+%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
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pycoinnet.git/commitdiff/e299101d8f451286852db6135ea9161b1aa88be5
More information about the pld-cvs-commit
mailing list