Blame python-rebulk.spec

19770e
%global srcname rebulk
19770e
19770e
Name:           python-%{srcname}
Juan Orti Alcaine 97956a
Version:        1.0.0
Juan Orti Alcaine 0df07f
Release:        2%{?dist}
19770e
Summary:        ReBulk is a python library that performs advanced searches in strings
19770e
# Everything licensed as MIT, except:
19770e
# rebulk/toposort.py: Apache (v2.0)
19770e
# rebulk/test/test_toposort.py: Apache (v2.0)
19770e
License:        MIT and ASL 2.0
19770e
URL:            https://github.com/Toilal/rebulk
19770e
Source:         https://github.com/Toilal/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
19770e
BuildArch:      noarch
b561e1
BuildRequires:  python3-devel
19770e
BuildRequires:  python3-pytest-runner
19770e
BuildRequires:  python3-six
19770e
19770e
%global _description\
19770e
ReBulk is a python library that performs advanced searches in strings that\
19770e
would be hard to implement using re module or String methods only.\
19770e
\
19770e
It includes some features like Patterns, Match, Rule that allows developers\
19770e
to build a custom and complex string matcher using a readable and\
19770e
extendable API.
19770e
19770e
%description %_description
19770e
19770e
%package -n python3-%{srcname}
19770e
Summary:        %summary
19770e
%{?python_provide:%python_provide python3-%{srcname}}
19770e
Requires:       python3-six
19770e
19770e
%description -n python3-%{srcname} %_description
19770e
19770e
%prep
19770e
%autosetup -n %{srcname}-%{version}
19770e
19770e
%build
19770e
%py3_build
19770e
19770e
%install
19770e
%py3_install
19770e
# Remove shebang from Python3 libraries
19770e
for lib in `find %{buildroot}%{python3_sitelib} -name "*.py"`; do
19770e
 sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
19770e
 touch -r $lib $lib.new &&
19770e
 mv $lib.new $lib
19770e
done
19770e
Juan Orti Alcaine 0df07f
# Tests disabled for now:
Juan Orti Alcaine 0df07f
# https://bugzilla.redhat.com/show_bug.cgi?id=1716519
Juan Orti Alcaine 0df07f
#%%check
Juan Orti Alcaine 0df07f
#%%{__python3} setup.py test
19770e
19770e
%files -n python3-%{srcname}
19770e
%doc README.rst
19770e
%license LICENSE
19770e
%{python3_sitelib}/%{srcname}
19770e
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
19770e
19770e
%changelog
Juan Orti Alcaine 0df07f
* Sat Jul 13 2019 Juan Orti Alcaine <jortialc@redhat.com> - 1.0.0-2
Juan Orti Alcaine 0df07f
- Disable tests RHBZ#1716519
Juan Orti Alcaine 0df07f
Juan Orti Alcaine 97956a
* Tue Jun 11 2019 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.0-1
Juan Orti Alcaine 97956a
- Version 1.0.0
Juan Orti Alcaine 97956a
691576
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-8
691576
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
691576
b561e1
* Tue Jan 22 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-7
b561e1
- Subpackage python2-rebulk has been removed
b561e1
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
b561e1
76686f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
76686f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
76686f
357b5a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-5
357b5a
- Rebuilt for Python 3.7
357b5a
3c803c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
3c803c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3c803c
19770e
* Tue Aug 29 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.9.0-3
19770e
- Simplify Source URL
19770e
- Remove shebang from libraries
19770e
- Some files licensed as ASL 2.0
19770e
19770e
* Tue Aug 29 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.9.0-2
19770e
- Require python-six
19770e
19770e
* Mon Aug 28 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.9.0-1
19770e
- Initial RPM release