]> git.pld-linux.org Git - packages/python-ecdsa.git/commitdiff
- initial auto/th/python-ecdsa-0.10-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Feb 2014 23:15:27 +0000 (00:15 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Feb 2014 23:15:27 +0000 (00:15 +0100)
python-ecdsa.spec [new file with mode: 0644]

diff --git a/python-ecdsa.spec b/python-ecdsa.spec
new file mode 100644 (file)
index 0000000..65654b3
--- /dev/null
@@ -0,0 +1,104 @@
+#
+# Conditional build:
+%bcond_without python2         # Python 2.x module
+%bcond_without python3         # Python 3.x module
+#
+%define        module  ecdsa
+#
+Summary:       ECDSA cryptographic signature library
+Name:          python-ecdsa
+Version:       0.10
+Release:       1
+License:       GPL
+Group:         Development/Languages/Python
+Source0:       http://pypi.python.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz
+# Source0-md5: e95941b3bcbf1726472bb724d7478551
+URL:           https://pypi.python.org/pypi/ecdsa
+%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
+This is an easy-to-use implementation of ECDSA cryptography (Elliptic
+Curve Digital Signature Algorithm), implemented purely in Python,
+released under the MIT license. With this library, you can quickly
+create keypairs (signing key and verifying key), sign messages, and
+verify the signatures. The keys and signatures are very short, making
+them easy to handle and incorporate into other protocols.
+
+%package -n    python3-%{module}
+Summary:       ECDSA cryptographic signature library
+Version:       0.10
+Release:       1
+Group:         Libraries/Python
+Requires:      python3
+
+%description -n python3-%{module}
+This is an easy-to-use implementation of ECDSA cryptography (Elliptic
+Curve Digital Signature Algorithm), implemented purely in Python,
+released under the MIT license. With this library, you can quickly
+create keypairs (signing key and verifying key), sign messages, and
+verify the signatures. The keys and signatures are very short, making
+them easy to handle and incorporate into other protocols.
+
+%prep
+%setup  -q -n ecdsa-%{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 LICENSE NEWS 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 LICENSE NEWS README.md
+%{_examplesdir}/python3-%{module}-%{version}
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*egg-info
+%endif
This page took 0.137349 seconds and 4 git commands to generate.