Blame SPECS/python-fastcache.spec

3fec63
%global srcname fastcache
3fec63
3fec63
Name:           python-%{srcname}
3fec63
Version:        1.1.0
3fec63
Release:        9%{?dist}
3fec63
Summary:        C implementation of python3 lru_cache
3fec63
3fec63
License:        MIT
3fec63
URL:            https://github.com/pbrady/%{srcname}
3fec63
Source0:        https://github.com/pbrady/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
3fec63
3fec63
BuildRequires:  gcc
3fec63
BuildRequires:  python3-devel
3fec63
BuildRequires:  %{py3_dist pycmd}
3fec63
BuildRequires:  %{py3_dist pytest}
3fec63
BuildRequires:  %{py3_dist setuptools}
3fec63
3fec63
%description
3fec63
This package contains a C implementation of the python 3 lru_cache.  It
3fec63
passes all tests in the standard library for functools.lru_cache.
3fec63
3fec63
%package -n     python%{python3_pkgversion}-%{srcname}
3fec63
Summary:        C implementation of python3 lru_cache
3fec63
3fec63
%description -n python%{python3_pkgversion}-%{srcname}
3fec63
This package contains a C implementation of the python 3 lru_cache.  It
3fec63
passes all tests in the standard library for functools.lru_cache.
3fec63
3fec63
%prep
3fec63
%autosetup -n %{srcname}-%{version}
3fec63
3fec63
%build
3fec63
%py3_build "--define=WITH_THREAD"
3fec63
3fec63
%install
3fec63
%py3_install
3fec63
chmod 0755 %{buildroot}%{python3_sitearch}/%{srcname}/*.so
3fec63
3fec63
%check
3fec63
export PYTHONPATH=%{buildroot}%{python3_sitearch}
3fec63
mkdir -p empty
3fec63
cd empty
3fec63
%{python3} << EOF
3fec63
import fastcache
3fec63
if not fastcache.test():
3fec63
    raise Exception('Tests failed')
3fec63
EOF
3fec63
cd -
3fec63
3fec63
%files -n python%{python3_pkgversion}-%{srcname}
3fec63
%doc CHANGELOG README.md
3fec63
%license LICENSE
3fec63
%{python3_sitearch}/%{srcname}/
3fec63
%{python3_sitearch}/%{srcname}*.egg-info/
3fec63
%exclude %{python3_sitearch}/%{srcname}/tests
3fec63
3fec63
%changelog
3fec63
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3fec63
3fec63
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3fec63
3fec63
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-7
3fec63
- Rebuilt for Python 3.9
3fec63
3fec63
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3fec63
3fec63
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-5
3fec63
- Rebuilt for Python 3.8.0rc1 (#1748018)
3fec63
3fec63
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
3fec63
- Rebuilt for Python 3.8
3fec63
3fec63
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3fec63
3fec63
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3fec63
3fec63
* Sat Oct  6 2018 Jerry James <loganjerry@gmail.com> - 1.1.0-1
3fec63
- New upstream version
3fec63
- Drop python 2 subpackage
3fec63
3fec63
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-14
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3fec63
3fec63
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-13
3fec63
- Rebuilt for Python 3.7
3fec63
3fec63
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-12
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3fec63
3fec63
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-11
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3fec63
3fec63
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-10
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3fec63
3fec63
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3fec63
3fec63
* Thu Dec 22 2016 Orion Poplawski <orion@cora.nwra.com> - 1.0.2-8
3fec63
- Build python3 for EPEL
3fec63
- Use single build directory
3fec63
- Run tests as upstream does
3fec63
3fec63
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-7
3fec63
- Rebuild for Python 3.6
3fec63
3fec63
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-6
3fec63
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
3fec63
3fec63
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3fec63
3fec63
* Mon Feb  1 2016 Jerry James <loganjerry@gmail.com> - 1.0.2-4
3fec63
- Comply with latest python packaging guidelines
3fec63
3fec63
* Tue Nov 10 2015 Orion Poplawski <orion@cora.nwra.com> - 1.0.2-4
3fec63
- Use python2/3_version macros
3fec63
3fec63
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-4
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
3fec63
3fec63
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
3fec63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3fec63
3fec63
* Mon Dec  1 2014 Jerry James <loganjerry@gmail.com> - 1.0.2-2
3fec63
- Be more verbose in the file listing
3fec63
- Run the tests verbosely
3fec63
3fec63
* Fri Nov 21 2014 Jerry James <loganjerry@gmail.com> - 1.0.2-1
3fec63
- Initial RPM