|
|
19770ea |
%global srcname rebulk
|
|
|
19770ea |
|
|
|
19770ea |
Name: python-%{srcname}
|
|
|
066226a |
Version: 1.0.1
|
|
|
066226a |
Release: 1%{?dist}
|
|
|
19770ea |
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)
|
|
|
19770ea |
License: MIT and ASL 2.0
|
|
|
19770ea |
URL: https://github.com/Toilal/rebulk
|
|
|
19770ea |
Source: https://github.com/Toilal/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
19770ea |
BuildArch: noarch
|
|
|
b561e14 |
BuildRequires: python3-devel
|
|
|
19770ea |
BuildRequires: python3-pytest-runner
|
|
|
19770ea |
BuildRequires: python3-six
|
|
|
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}
|
|
|
19770ea |
Summary: %summary
|
|
|
19770ea |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
19770ea |
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
|
|
|
066226a |
%{__python3} setup.py test
|
|
|
19770ea |
|
|
|
19770ea |
%files -n python3-%{srcname}
|
|
|
19770ea |
%doc README.rst
|
|
|
19770ea |
%license LICENSE
|
|
|
19770ea |
%{python3_sitelib}/%{srcname}
|
|
|
19770ea |
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
|
|
|
19770ea |
|
|
|
19770ea |
%changelog
|
|
|
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
|