[packages/python-coinkit] - initial
arekm
arekm at pld-linux.org
Sun Feb 2 12:06:02 CET 2014
commit 25655a92162a5ee0c58cc7b3edc3e235f670f9de
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Feb 2 12:05:47 2014 +0100
- initial
python-coinkit.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
---
diff --git a/python-coinkit.spec b/python-coinkit.spec
new file mode 100644
index 0000000..04c55be
--- /dev/null
+++ b/python-coinkit.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_without python2 # Python 2.x module
+%bcond_without python3 # Python 3.x module
+#
+%define module coinkit
+#
+Summary: Tools for Bitcoin and other cryptocurrencies
+Name: python-coinkit
+Version: 0.3
+Release: 1
+License: MIT
+Group: Development/Languages/Python
+Source0: https://github.com/halfmoonlabs/coinkit/archive/v%{version}.tar.gz
+# Source0-md5: 2e5bd02391fa38766a5644e7abfa9750
+URL: https://github.com/halfmoonlabs/coinkit
+%if %{with python2}
+BuildRequires: python-devel
+BuildRequires: python-modules
+Requires: python
+%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
+Tools for Bitcoin and other cryptocurrencies.
+
+%package -n python3-%{module}
+Summary: Tools for Bitcoin and other cryptocurrencies
+Group: Libraries/Python
+Requires: python3
+
+%description -n python3-%{module}
+Tools for Bitcoin and other cryptocurrencies.
+
+%prep
+%setup -q -n coinkit-%{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 AUTHORS 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 AUTHORS README.md
+%{_examplesdir}/python3-%{module}-%{version}
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-coinkit.git/commitdiff/25655a92162a5ee0c58cc7b3edc3e235f670f9de
More information about the pld-cvs-commit
mailing list