19770ea
%global srcname rebulk
19770ea
c4bd535
Name: python-%{srcname}
b1cb702
Version: 3.3.0
03554d0
Release: 3%{?dist}
c4bd535
Summary: ReBulk is a python library that performs advanced searches in strings
19770ea
# Everything licensed as MIT, except:
19770ea
# rebulk/toposort.py: Apache (v2.0)
19770ea
# rebulk/test/test_toposort.py: Apache (v2.0)
c4bd535
License: MIT and ASL 2.0
c4bd535
URL: https://github.com/Toilal/rebulk
c4bd535
Source: https://github.com/Toilal/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
c4bd535
BuildArch: noarch
c4bd535
BuildRequires: python3-devel
c4bd535
BuildRequires: python3-setuptools
c4bd535
BuildRequires: python3-pytest-runner
c4bd535
BuildRequires: python3-six
c4bd535
BuildRequires: pylint
19770ea
19770ea
%global _description\
19770ea
ReBulk is a python library that performs advanced searches in strings that\
19770ea
would be hard to implement using re module or String methods only.\
19770ea
\
19770ea
It includes some features like Patterns, Match, Rule that allows developers\
19770ea
to build a custom and complex string matcher using a readable and\
19770ea
extendable API.
19770ea
19770ea
%description %_description
19770ea
19770ea
%package -n python3-%{srcname}
c4bd535
Summary: %summary
c4bd535
%py_provides python3-%{srcname}
c4bd535
Requires: python3-six
19770ea
19770ea
%description -n python3-%{srcname} %_description
19770ea
19770ea
%prep
19770ea
%autosetup -n %{srcname}-%{version}
19770ea
19770ea
%build
19770ea
%py3_build
19770ea
19770ea
%install
19770ea
%py3_install
19770ea
# Remove shebang from Python3 libraries
19770ea
for lib in `find %{buildroot}%{python3_sitelib} -name "*.py"`; do
19770ea
 sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
19770ea
 touch -r $lib $lib.new &&
19770ea
 mv $lib.new $lib
19770ea
done
19770ea
066226a
%check
c4bd535
%pytest
19770ea
19770ea
%files -n python3-%{srcname}
d6a0208
%doc README.md CHANGELOG.md
19770ea
%license LICENSE
19770ea
%{python3_sitelib}/%{srcname}
19770ea
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
19770ea
19770ea
%changelog
03554d0
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
03554d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
03554d0
fb30ad8
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
fb30ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
fb30ad8
b1cb702
* Sat Jan 13 2024 Juan Orti Alcaine <jortialc@redhat.com> - 3.3.0-1
b1cb702
- Version 3.3.0 (rhbz#2254798)
b1cb702
0576441
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
0576441
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
0576441
b11c240
* Sun Jul 02 2023 Python Maint <python-maint@redhat.com> - 3.2.0-2
b11c240
- Rebuilt for Python 3.12
b11c240
0e3224d
* Sat Feb 25 2023 Juan Orti Alcaine <jortialc@redhat.com> - 3.2.0-1
0e3224d
- Version 3.2.0
0e3224d
5f00532
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-5
5f00532
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
5f00532
1f3acc9
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
1f3acc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1f3acc9
0c36dba
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.1.0-3
0c36dba
- Rebuilt for Python 3.11
0c36dba
87f3b10
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
87f3b10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
87f3b10
9f597dd
* Tue Jan 04 2022 Juan Orti Alcaine <jortialc@redhat.com> - 3.1.0-1
9f597dd
- Version 3.1.0 (#2020752)
9f597dd
e61ce0c
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-5
e61ce0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e61ce0c
d9f128e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0.1-4
d9f128e
- Rebuilt for Python 3.10
d9f128e
c4bd535
* Wed Jun 02 2021 Juan Orti Alcaine <jortialc@redhat.com> - 3.0.1-3
c4bd535
- Use pytest and py_provides macros
c4bd535
605c30e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
605c30e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
605c30e
d6a0208
* Fri Jan 01 2021 Juan Orti Alcaine <jortialc@redhat.com> - 3.0.1-1
d6a0208
- Version 3.0.1
d6a0208
7ed5396
* Thu Oct 08 2020 Juan Orti Alcaine <jortialc@redhat.com> - 2.0.1-4
7ed5396
- BR: python3-setuptools
7ed5396
b790f91
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
b790f91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b790f91
caad4d4
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
caad4d4
- Rebuilt for Python 3.9
caad4d4
769606e
* Sun May 17 2020 Juan Orti Alcaine <jortialc@redhat.com> - 2.0.1-1
769606e
- Version 2.0.1
769606e
69fd327
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
69fd327
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
69fd327
b65631c
* Sun Sep 01 2019 Juan Orti Alcaine <jortialc@redhat.com> - 2.0.0-1
b65631c
- Version 2.0.0
b65631c
066226a
* Mon Aug 26 2019 Juan Orti Alcaine <jortialc@redhat.com> - 1.0.1-1
066226a
- Version 1.0.1
066226a
- Tests now pass on Python 3.8, enable them again
066226a
35a6596
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-4
35a6596
- Rebuilt for Python 3.8
35a6596
ff5f69e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
ff5f69e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ff5f69e
0df07fa
* Sat Jul 13 2019 Juan Orti Alcaine <jortialc@redhat.com> - 1.0.0-2
0df07fa
- Disable tests RHBZ#1716519
0df07fa
97956ac
* Tue Jun 11 2019 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.0-1
97956ac
- Version 1.0.0
97956ac
691576a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-8
691576a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
691576a
b561e14
* Tue Jan 22 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-7
b561e14
- Subpackage python2-rebulk has been removed
b561e14
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
b561e14
76686f5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
76686f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
76686f5
357b5a0
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-5
357b5a0
- Rebuilt for Python 3.7
357b5a0
3c803c6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
3c803c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3c803c6
19770ea
* Tue Aug 29 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.9.0-3
19770ea
- Simplify Source URL
19770ea
- Remove shebang from libraries
19770ea
- Some files licensed as ASL 2.0
19770ea
19770ea
* Tue Aug 29 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.9.0-2
19770ea
- Require python-six
19770ea
19770ea
* Mon Aug 28 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.9.0-1
19770ea
- Initial RPM release