forked from pool/python-ecdsa
Accepting request 491843 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/491843 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ecdsa?expand=0&rev=7
This commit is contained in:
7
_service
Normal file
7
_service
Normal file
@@ -0,0 +1,7 @@
|
||||
<services>
|
||||
<service name="download_files" mode="localonly">
|
||||
<param name="enforceupstream">yes</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="set_version" mode="localonly"/>
|
||||
</services>
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 28 11:52:09 UTC 2017 - pousaduarte@gmail.com
|
||||
|
||||
- Convert to singlespec
|
||||
- Use "download_files" in _service file to automate source fetching
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 21 01:31:36 UTC 2015 - prusnak@opensuse.org
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ecdsa
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-ecdsa
|
||||
Version: 0.13
|
||||
Release: 0
|
||||
@@ -24,13 +25,13 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://github.com/warner/python-ecdsa
|
||||
Source: https://pypi.python.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
|
||||
@@ -44,12 +45,17 @@ into other protocols.
|
||||
%setup -q -n ecdsa-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
#remove shebang from all non executable files
|
||||
find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#! /usr/bin/env python@d}' {} \;
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
%files
|
||||
#hardlink duplicated files
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%files %python_files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE NEWS README.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user