forked from pool/python-pysendfile
Accepting request 516198 from home:tbechtold:branches:devel:languages:python
- convert to singlespec OBS-URL: https://build.opensuse.org/request/show/516198 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysendfile?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 11 16:33:20 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
- convert to singlespec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 2 18:40:28 UTC 2014 - p.drouand@gmail.com
|
Thu Oct 2 18:40:28 UTC 2014 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pysendfile
|
# spec file for package python-pysendfile
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define mod_name pysendfile
|
%define mod_name pysendfile
|
||||||
|
|
||||||
Name: python-pysendfile
|
Name: python-pysendfile
|
||||||
@@ -25,13 +26,12 @@ Summary: A Python interface to sendfile(2)
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://code.google.com/p/pysendfile/
|
Url: http://code.google.com/p/pysendfile/
|
||||||
Source: https://pypi.python.org/packages/source/p/pysendfile/pysendfile-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pysendfile/pysendfile-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-nose
|
BuildRequires: python-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%python_subpackages
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A python interface to sendfile(2) system call.
|
A python interface to sendfile(2) system call.
|
||||||
@@ -40,16 +40,13 @@ A python interface to sendfile(2) system call.
|
|||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
export CFLAGS="%{optflags}"
|
||||||
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
%check
|
%files %{python_files}
|
||||||
#TODO: Absolute import, fix later
|
|
||||||
#nosetests
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
Reference in New Issue
Block a user