|
 |
0954328 |
%global srcname fastcache
|
|
Jerry James |
0e745c5 |
|
|
 |
0954328 |
Name: python-%{srcname}
|
|
 |
fd1e447 |
Version: 1.1.0
|
|
 |
dba3a4f |
Release: 12%{?dist}
|
|
Jerry James |
0e745c5 |
Summary: C implementation of python3 lru_cache
|
|
Jerry James |
0e745c5 |
|
|
Jerry James |
0e745c5 |
License: MIT
|
|
 |
0954328 |
URL: https://github.com/pbrady/%{srcname}
|
|
 |
fd1e447 |
Source0: https://github.com/pbrady/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
Jerry James |
0e745c5 |
|
|
 |
85fd2d5 |
BuildRequires: gcc
|
|
 |
fd1e447 |
BuildRequires: python3-devel
|
|
 |
a4cd513 |
BuildRequires: %{py3_dist pip}
|
|
 |
c6e4cad |
BuildRequires: %{py3_dist pycmd}
|
|
 |
c6e4cad |
BuildRequires: %{py3_dist pytest}
|
|
 |
c6e4cad |
BuildRequires: %{py3_dist setuptools}
|
|
 |
a4cd513 |
BuildRequires: %{py3_dist wheel}
|
|
Jerry James |
0e745c5 |
|
|
 |
1d692c3 |
%description
|
|
 |
1d692c3 |
This package contains a C implementation of the python 3 lru_cache. It
|
|
 |
1d692c3 |
passes all tests in the standard library for functools.lru_cache.
|
|
 |
1d692c3 |
|
|
Orion Poplawski |
c4b6a96 |
%package -n python%{python3_pkgversion}-%{srcname}
|
|
Jerry James |
0e745c5 |
Summary: C implementation of python3 lru_cache
|
|
Jerry James |
0e745c5 |
|
|
Orion Poplawski |
c4b6a96 |
%description -n python%{python3_pkgversion}-%{srcname}
|
|
Jerry James |
0e745c5 |
This package contains a C implementation of the python 3 lru_cache. It
|
|
Jerry James |
0e745c5 |
passes all tests in the standard library for functools.lru_cache.
|
|
Jerry James |
0e745c5 |
|
|
Jerry James |
0e745c5 |
%prep
|
|
 |
e339301 |
%autosetup -n %{srcname}-%{version}
|
|
Jerry James |
0e745c5 |
|
|
Jerry James |
0e745c5 |
%build
|
|
 |
a4cd513 |
export CFLAGS="%{build_cflags} -DWITH_THREAD"
|
|
 |
a4cd513 |
%pyproject_wheel
|
|
Jerry James |
0e745c5 |
|
|
Jerry James |
0e745c5 |
%install
|
|
 |
a4cd513 |
%pyproject_install
|
|
 |
0954328 |
chmod 0755 %{buildroot}%{python3_sitearch}/%{srcname}/*.so
|
|
Jerry James |
0e745c5 |
|
|
Jerry James |
0e745c5 |
%check
|
|
Orion Poplawski |
c4b6a96 |
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
|
Orion Poplawski |
c4b6a96 |
mkdir -p empty
|
|
Orion Poplawski |
c4b6a96 |
cd empty
|
|
 |
c6e4cad |
%{python3} << EOF
|
|
Orion Poplawski |
c4b6a96 |
import fastcache
|
|
Orion Poplawski |
c4b6a96 |
if not fastcache.test():
|
|
Orion Poplawski |
c4b6a96 |
raise Exception('Tests failed')
|
|
Orion Poplawski |
c4b6a96 |
EOF
|
|
Orion Poplawski |
c4b6a96 |
cd -
|
|
Jerry James |
0e745c5 |
|
|
Orion Poplawski |
c4b6a96 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
Orion Poplawski |
c4b6a96 |
%doc CHANGELOG README.md
|
|
Orion Poplawski |
c4b6a96 |
%license LICENSE
|
|
 |
0954328 |
%{python3_sitearch}/%{srcname}/
|
|
 |
a4cd513 |
%{python3_sitearch}/%{srcname}*.dist-info/
|
|
 |
0954328 |
%exclude %{python3_sitearch}/%{srcname}/tests
|
|
Jerry James |
0e745c5 |
|
|
Jerry James |
0e745c5 |
%changelog
|
|
 |
dba3a4f |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-12
|
|
 |
dba3a4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
dba3a4f |
|
|
 |
d3cfa4f |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11
|
|
 |
d3cfa4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
d3cfa4f |
|
|
 |
f706ef0 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-10
|
|
 |
f706ef0 |
- Rebuilt for Python 3.10
|
|
 |
f706ef0 |
|
|
 |
58b0e63 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
|
|
 |
58b0e63 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
58b0e63 |
|
|
 |
c95fcad |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
|
|
 |
c95fcad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
c95fcad |
|
|
 |
2706a3d |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-7
|
|
 |
2706a3d |
- Rebuilt for Python 3.9
|
|
 |
2706a3d |
|
|
 |
e191cd4 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
|
|
 |
e191cd4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
e191cd4 |
|
|
 |
aeef6f6 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-5
|
|
 |
aeef6f6 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
aeef6f6 |
|
|
 |
5eefe54 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
|
|
 |
5eefe54 |
- Rebuilt for Python 3.8
|
|
 |
5eefe54 |
|
|
 |
7c9c0ac |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
 |
7c9c0ac |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
7c9c0ac |
|
|
 |
0c3e961 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
 |
0c3e961 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
0c3e961 |
|
|
 |
fd1e447 |
* Sat Oct 6 2018 Jerry James <loganjerry@gmail.com> - 1.1.0-1
|
|
 |
fd1e447 |
- New upstream version
|
|
 |
fd1e447 |
- Drop python 2 subpackage
|
|
 |
fd1e447 |
|
|
 |
00aa6da |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-14
|
|
 |
00aa6da |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
00aa6da |
|
|
 |
7282c31 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-13
|
|
 |
7282c31 |
- Rebuilt for Python 3.7
|
|
 |
7282c31 |
|
|
 |
c3016da |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-12
|
|
 |
c3016da |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
 |
c3016da |
|
|
 |
9a9fa43 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-11
|
|
 |
9a9fa43 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
 |
9a9fa43 |
|
|
 |
3803470 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-10
|
|
 |
3803470 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
3803470 |
|
|
 |
180d7e7 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
|
|
 |
180d7e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
 |
180d7e7 |
|
|
Orion Poplawski |
c4b6a96 |
* Thu Dec 22 2016 Orion Poplawski <orion@cora.nwra.com> - 1.0.2-8
|
|
Orion Poplawski |
c4b6a96 |
- Build python3 for EPEL
|
|
Orion Poplawski |
c4b6a96 |
- Use single build directory
|
|
Orion Poplawski |
c4b6a96 |
- Run tests as upstream does
|
|
Orion Poplawski |
c4b6a96 |
|
|
 |
8415c6e |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-7
|
|
 |
8415c6e |
- Rebuild for Python 3.6
|
|
 |
8415c6e |
|
|
 |
5bdf853 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-6
|
|
 |
5bdf853 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
 |
5bdf853 |
|
|
 |
d603feb |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
|
|
 |
d603feb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
 |
d603feb |
|
|
 |
1d692c3 |
* Mon Feb 1 2016 Jerry James <loganjerry@gmail.com> - 1.0.2-4
|
|
 |
1d692c3 |
- Comply with latest python packaging guidelines
|
|
 |
1d692c3 |
|
|
Orion Poplawski |
bdb7878 |
* Tue Nov 10 2015 Orion Poplawski <orion@cora.nwra.com> - 1.0.2-4
|
|
Orion Poplawski |
92be65c |
- Use python2/3_version macros
|
|
Orion Poplawski |
92be65c |
|
|
 |
c397de3 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-4
|
|
 |
c397de3 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
 |
c397de3 |
|
|
 |
ebfe6b4 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
|
|
 |
ebfe6b4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
 |
ebfe6b4 |
|
|
Jerry James |
0e745c5 |
* Mon Dec 1 2014 Jerry James <loganjerry@gmail.com> - 1.0.2-2
|
|
Jerry James |
0e745c5 |
- Be more verbose in the file listing
|
|
Jerry James |
0e745c5 |
- Run the tests verbosely
|
|
Jerry James |
0e745c5 |
|
|
Jerry James |
0e745c5 |
* Fri Nov 21 2014 Jerry James <loganjerry@gmail.com> - 1.0.2-1
|
|
Jerry James |
0e745c5 |
- Initial RPM
|