# Python2 only module. Python3 has os.posix_fadvise() natively %global srcname fadvise %global sum Python interface to posix_fadvise(2) Name: python-%{srcname} Version: 4.0.1 Release: 1%{?dist} Summary: %{sum} License: BSD URL: https://chris-lamb.co.uk/projects/python-fadvise Source0: https://github.com/lamby/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: python2-devel BuildRequires: python-setuptools %description python-fadvise is a Python interface to posix_fadvise(2) which is used to predeclare an access pattern for file data in order that the kernel may make informed decisions regarding (but not limited to) scheduling I/O and caching. It uses a private C extension module to invoke the underlying syscall. In addition, it provides a simple client so that advice may be given via the command-line. %package -n python2-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} python-fadvise is a Python interface to posix_fadvise(2) which is used to predeclare an access pattern for file data in order that the kernel may make informed decisions regarding (but not limited to) scheduling I/O and caching. %prep %autosetup -n %{name}-%{version} %build %py2_build %install %py2_install %files -n python2-%{srcname} %{python2_sitearch}/_fadvise.so %{python2_sitearch}/%{srcname}/ %{python2_sitearch}/%{srcname}-*.egg-info %license COPYING %changelog * Sat Aug 13 2016 Piotr Popieluch - - 4.0.1-1 - Update to 4.0.1 - Use github as source - Make files section more specific * Tue Jul 26 2016 Piotr Popieluch - - 4.0.0-1 - Initial version