commit python-pysendfile for openSUSE:Factory
Hello community, here is the log from the commit of package python-pysendfile for openSUSE:Factory checked in at 2017-08-24 18:52:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pysendfile (Old) and /work/SRC/openSUSE:Factory/.python-pysendfile.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-pysendfile" Thu Aug 24 18:52:12 2017 rev:9 rq:516765 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pysendfile/python-pysendfile.changes 2014-10-05 20:32:12.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pysendfile.new/python-pysendfile.changes 2017-08-24 18:52:13.338912467 +0200 @@ -1,0 +2,5 @@ +Fri Aug 11 16:33:20 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pysendfile.spec ++++++ --- /var/tmp/diff_new_pack.OYMZDh/_old 2017-08-24 18:52:15.034673696 +0200 +++ /var/tmp/diff_new_pack.OYMZDh/_new 2017-08-24 18:52:15.034673696 +0200 @@ -1,7 +1,7 @@ # # 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 # 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 Name: python-pysendfile @@ -25,13 +26,12 @@ License: MIT Group: Development/Languages/Python Url: http://code.google.com/p/pysendfile/ -Source: https://pypi.python.org/packages/source/p/pysendfile/pysendfile-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-nose +Source: https://files.pythonhosted.org/packages/source/p/pysendfile/pysendfile-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros 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)")} -%endif + +%python_subpackages %description A python interface to sendfile(2) system call. @@ -40,16 +40,13 @@ %setup -q -n %{mod_name}-%{version} %build -python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%check -#TODO: Absolute import, fix later -#nosetests +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitearch}/*
participants (1)
-
root@hilbert.suse.de