Blame SPECS/pysendfile.spec

2ad0b5
%global srcname pysendfile
2ad0b5
%global sum Python interface to the sendfile(2) system call
2ad0b5
2ad0b5
Name:           %{srcname}
2ad0b5
Version:        2.0.1
2ad0b5
Release:        19%{?dist}
2ad0b5
Summary:        %{sum}
2ad0b5
2ad0b5
License:        MIT
2ad0b5
URL:            https://github.com/giampaolo/pysendfile
2ad0b5
Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
2ad0b5
2ad0b5
BuildRequires:  gcc
2ad0b5
2ad0b5
BuildRequires:  python3-devel
2ad0b5
BuildRequires:  python3-setuptools
2ad0b5
2ad0b5
%{?filter_setup:
2ad0b5
%filter_provides_in %{python3_sitearch}
2ad0b5
%filter_setup
2ad0b5
}
2ad0b5
2ad0b5
%description
2ad0b5
sendfile(2) is a system call which provides a "zero-copy" way of copying data
2ad0b5
from one file descriptor to another (a socket). The phrase "zero-copy" refers
2ad0b5
to the fact that all of the copying of data between the two descriptors is done
2ad0b5
entirely by the kernel, with no copying of data into user-space buffers. This is
2ad0b5
particularly useful when sending a file over a socket (e.g. FTP). 
2ad0b5
2ad0b5
2ad0b5
%package -n python3-%{srcname}
2ad0b5
Summary:  %{sum}
2ad0b5
%{?python_provide:%python_provide python3-%{srcname}}
2ad0b5
2ad0b5
%description -n python3-%{srcname}
2ad0b5
sendfile(2) is a system call which provides a "zero-copy" way of copying data
2ad0b5
from one file descriptor to another (a socket). The phrase "zero-copy" refers
2ad0b5
to the fact that all of the copying of data between the two descriptors is done
2ad0b5
entirely by the kernel, with no copying of data into user-space buffers. This is
2ad0b5
particularly useful when sending a file over a socket (e.g. FTP). 
2ad0b5
This is Python 3 version.
2ad0b5
2ad0b5
2ad0b5
%prep
2ad0b5
%setup -q
2ad0b5
2ad0b5
2ad0b5
%build
2ad0b5
%py3_build
2ad0b5
2ad0b5
2ad0b5
%install
2ad0b5
%py3_install
2ad0b5
2ad0b5
2ad0b5
%check
2ad0b5
PYTHONPATH="$RPM_BUILD_ROOT%{python3_sitearch}" %{__python3} test/test_sendfile.py
2ad0b5
2ad0b5
2ad0b5
%files -n python3-%{srcname}
2ad0b5
%doc README.rst
2ad0b5
%license LICENSE
2ad0b5
%attr(755, root, root) %{python3_sitearch}/sendfile.*.so
2ad0b5
%{python3_sitearch}/pysendfile-%{version}-*.egg-info
2ad0b5
2ad0b5
2ad0b5
%changelog
2ad0b5
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-19
2ad0b5
- Second attempt - Rebuilt for
2ad0b5
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2ad0b5
2ad0b5
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-18
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2ad0b5
2ad0b5
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-17
2ad0b5
- Rebuilt for Python 3.9
2ad0b5
2ad0b5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-16
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2ad0b5
2ad0b5
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-15
2ad0b5
- Rebuilt for Python 3.8
2ad0b5
2ad0b5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-14
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2ad0b5
2ad0b5
* Thu Apr 11 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-13
2ad0b5
- Subpackage python2-pysendfile has been removed
2ad0b5
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
2ad0b5
2ad0b5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-12
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2ad0b5
2ad0b5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-11
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2ad0b5
2ad0b5
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-10
2ad0b5
- Rebuilt for Python 3.7
2ad0b5
2ad0b5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2ad0b5
2ad0b5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2ad0b5
2ad0b5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2ad0b5
2ad0b5
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.0.1-6
2ad0b5
- Rebuild due to bug in RPM (RHBZ #1468476)
2ad0b5
2ad0b5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2ad0b5
2ad0b5
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-4
2ad0b5
- Rebuild for Python 3.6
2ad0b5
2ad0b5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
2ad0b5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2ad0b5
2ad0b5
* Tue Jul  5 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 2.0.1-2
2ad0b5
- Provides/Obsoletes old name
2ad0b5
2ad0b5
* Wed Jun 08 2016 Dominika Krejci <dkrejci@redhat.com> - 2.0.1 - 1
2ad0b5
- Add Python 3
2ad0b5
- Upgrade version to 2.0.1
2ad0b5
- Update source and URL (project moved to GitHub)
2ad0b5
2ad0b5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-10
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2ad0b5
2ad0b5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-9
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2ad0b5
2ad0b5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2ad0b5
2ad0b5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-7
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2ad0b5
2ad0b5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2ad0b5
2ad0b5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-5
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2ad0b5
2ad0b5
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4
2ad0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2ad0b5
2ad0b5
* Wed Feb 8 2012 Russell Bryant <russellb@fedoraproject.org> - 2.0.0-3
2ad0b5
- Update %%check section to a more sane method of setting PYTHONPATH
2ad0b5
2ad0b5
* Wed Feb 8 2012 Russell Bryant <russellb@fedoraproject.org> - 2.0.0-2
2ad0b5
- Remove unnecessary cleaning of the buildroot in %%install section
2ad0b5
- Add %%check section to run the unit tests
2ad0b5
- Rename package from python-sendfile to pysendfile
2ad0b5
2ad0b5
* Tue Feb 7 2012 Russell Bryant <russellb@fedoraproject.org> - 2.0.0-1
2ad0b5
- Initial package