Blame python-orderedset.spec

3db75c2
%global srcname orderedset
c627af9
%global user simonpercivall
3db75c2
3db75c2
Name:           python-%{srcname}
18feb72
Version:        2.0.3
d35f9b0
Release:        2%{?dist}
3db75c2
Summary:        Ordered set implementation in Cython
3db75c2
3db75c2
License:        BSD
3db75c2
URL:            https://github.com/%{user}/%{srcname}
9aa23da
Source0:        %pypi_source
5730c10
# https://github.com/simonpercivall/orderedset/pull/22
5730c10
Patch0:         %{name}-comparison.patch
3db75c2
3db75c2
BuildRequires:  gcc
3db75c2
BuildRequires:  python3-devel
5730c10
BuildRequires:  python3dist(coverage)
5730c10
BuildRequires:  python3dist(cython)
5730c10
BuildRequires:  python3dist(docutils)
5730c10
BuildRequires:  python3dist(pygments)
5730c10
BuildRequires:  python3dist(setuptools)
3db75c2
3db75c2
%global common_desc \
3db75c2
This package contains an ordered set implementation in Cython.  Features:\
3db75c2
- Works like a regular set, but remembers insertion order;\
3db75c2
- Is approximately 5 times faster than the pure Python implementation\
3db75c2
  overall (and 5 times slower than set);\
15b7c6e
- Compatible with Python 2.6 through 3.6.;\
3db75c2
- Supports the full set interface;\
3db75c2
- Supports some list methods, like index and __getitem__.\
3db75c2
- Supports set methods against iterables.
3db75c2
3db75c2
%description
3db75c2
%common_desc
3db75c2
3db75c2
%package -n python3-%{srcname}
3db75c2
Summary:        Ordered set implementation in Cython
3db75c2
3db75c2
Provides:       bundled(jquery)
3db75c2
Provides:       bundled(js-underscore)
3db75c2
3db75c2
%description -n python3-%{srcname}
3db75c2
%common_desc
3db75c2
3db75c2
%prep
5730c10
%autosetup -n %{srcname}-%{version} -p1
5730c10
5730c10
# Set the language level
5730c10
sed -i "s/pyx'])/&, compiler_directives={'language_level': 3}/" setup.py
3db75c2
3db75c2
%build
3db75c2
%py3_build
5730c10
rst2html --no-datestamp AUTHORS.rst AUTHORS.html
5730c10
rst2html --no-datestamp HISTORY.rst HISTORY.html
5730c10
rst2html --no-datestamp README.rst README.html
3db75c2
3db75c2
%install
3db75c2
%py3_install
3db75c2
chmod 0755 %{buildroot}%{python3_sitearch}/%{srcname}/*.so
3db75c2
3db75c2
%check
3db75c2
PYTHONPATH=$PWD %{__python3} setup.py test
3db75c2
3db75c2
%files -n python3-%{srcname}
5730c10
%doc AUTHORS.html HISTORY.html README.html
9aa23da
%license LICENSE
3db75c2
%{python3_sitearch}/%{srcname}*
3db75c2
3db75c2
%changelog
d35f9b0
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-2
d35f9b0
- Rebuilt for Python 3.9
d35f9b0
18feb72
* Wed Feb 26 2020 Jerry James <loganjerry@gmail.com> - 2.0.3-1
18feb72
- Version 2.0.3
18feb72
ad55dd1
* Tue Feb 25 2020 Jerry James <loganjerry@gmail.com> - 2.0.2-1
ad55dd1
- Version 2.0.2
ad55dd1
- Drop upstreamed -python38 patch
ad55dd1
8cb191b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
8cb191b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8cb191b
5730c10
* Fri Jan 10 2020 Jerry James <loganjerry@gmail.com> - 2.0.1-9
5730c10
- Add -comparison and -python38 patches to fix FTBFS in Rawhide
5730c10
- Set the Cython language level to 3
5730c10
2576c86
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-8
2576c86
- Rebuilt for Python 3.8.0rc1 (#1748018)
2576c86
d36bc7f
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-7
d36bc7f
- Rebuilt for Python 3.8
d36bc7f
bca2b44
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
bca2b44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bca2b44
8d955a0
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
8d955a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8d955a0
9aa23da
* Thu Nov 22 2018 Jerry James <loganjerry@gmail.com> - 2.0.1-4
9aa23da
- Drop python2 subpackage (bz 1645073)
9aa23da
e1a6bba
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
e1a6bba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e1a6bba
b0a79e7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
b0a79e7
- Rebuilt for Python 3.7
b0a79e7
15b7c6e
* Mon Apr 30 2018 Jerry James <loganjerry@gmail.com> - 2.0.1-1
15b7c6e
- New upstream version
15b7c6e
1bb99cf
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-7
1bb99cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1bb99cf
c840f23
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-6
c840f23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c840f23
601f1ae
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-5
601f1ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
601f1ae
b2e5e62
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-4
b2e5e62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b2e5e62
5716eee
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0-3
5716eee
- Rebuild for Python 3.6
5716eee
708b7bd
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
708b7bd
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
708b7bd
3db75c2
* Thu Feb 25 2016 Jerry James <loganjerry@gmail.com> - 2.0-1
3db75c2
- Initial RPM