Blame SPECS/python-yaql.spec

15aead
%global pypi_name yaql
15aead
15aead
15aead
# Disable docs building as it doesn't support recent sphinx
15aead
%global with_docs 0
15aead
15aead
Name:           python-%{pypi_name}
rdobuilder 25e72c
Version:        2.0.0
rdobuilder 25e72c
Release:        2%{?dist}
15aead
Summary:        Yet Another Query Language
15aead
15aead
License:        ASL 2.0
15aead
URL:            https://pypi.python.org/pypi/%{pypi_name}
15aead
Source0:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
rdobuilder 25e72c
Patch0001:      0001-Replace-assertItemsEqual-with-assertCountEqual.patch
15aead
15aead
BuildArch:      noarch
15aead
15aead
%description
15aead
YAQL library has a out of the box large set of commonly used functions.
15aead
15aead
%package -n     python3-%{pypi_name}
15aead
Summary:        YAQL library has a out of the box large set of commonly used functions.
15aead
%{?python_provide:%python_provide python3-%{pypi_name}}
15aead
15aead
BuildRequires:  python3-devel
15aead
BuildRequires:  python3-setuptools
15aead
BuildRequires:  python3-tools
15aead
BuildRequires:  python3-pbr
15aead
BuildRequires:  python3-sphinx
15aead
BuildRequires:  python3-oslo-sphinx
rdobuilder 25e72c
BuildRequires:  python3-testtools
rdobuilder 25e72c
BuildRequires:  python3-ply
rdobuilder 25e72c
BuildRequires:  python3-dateutil
15aead
15aead
Requires:       python3-six
15aead
Requires:       python3-pbr
15aead
Requires:       python3-babel
15aead
Requires:       python3-ply
15aead
Requires:       python3-dateutil
15aead
15aead
%description -n python3-%{pypi_name}
15aead
YAQL library has a out of the box large set of commonly used functions.
15aead
15aead
%if 0%{?with_docs}
15aead
# Documentation package
15aead
%package -n python-%{pypi_name}-doc
15aead
Summary:        Documentation for YAQL library
15aead
15aead
%description -n python-%{pypi_name}-doc
15aead
Documentation for YAQL library
15aead
%endif
15aead
15aead
15aead
%prep
rdobuilder 25e72c
%autosetup -n %{pypi_name}-%{version} -p1
15aead
# Remove bundled egg-info
15aead
rm -rf %{pypi_name}.egg-info
15aead
# Let RPM handle the dependencies
15aead
rm -f test-requirements.txt requirements.txt
15aead
15aead
rm -rf %{py3dir}
15aead
cp -a . %{py3dir}
rdobuilder 25e72c
2to3 -p --write --nobackups %{py3dir}
15aead
15aead
%build
15aead
pushd %{py3dir}
15aead
%py3_build
15aead
popd
15aead
15aead
%if 0%{?with_docs}
rdobuilder 25e72c
# generate html docs
15aead
sphinx-build-3 doc/source html
15aead
# remove the sphinx-build leftovers
15aead
rm -rf html/.{doctrees,buildinfo}
15aead
%endif
15aead
15aead
%install
15aead
pushd %{py3dir}
15aead
%py3_install
15aead
mv %{buildroot}/%{_bindir}/%{pypi_name} %{buildroot}/%{_bindir}/python3-%{pypi_name}
15aead
popd
15aead
15aead
pushd %{buildroot}%{_bindir}
15aead
for i in %{pypi_name}-{3,%{?python3_version}}; do
15aead
    ln -sf  python3-%{pypi_name} $i
15aead
    ln -sf  python3-%{pypi_name} %{pypi_name}
15aead
done
15aead
popd
15aead
rdobuilder 25e72c
%check
rdobuilder 25e72c
%{python3} -W ignore::ResourceWarning setup.py test
15aead
# Delete tests
15aead
rm -fr %{buildroot}%{python3_sitelib}/yaql/tests
15aead
rdobuilder 25e72c
rdobuilder 25e72c
%files -n python3-%{pypi_name}
15aead
%license LICENSE
15aead
%doc doc/source/readme.rst README.rst
15aead
%{_bindir}/python3-%{pypi_name}
15aead
%{_bindir}/%{pypi_name}-3*
15aead
%{_bindir}/%{pypi_name}
15aead
%{python3_sitelib}/%{pypi_name}
15aead
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
15aead
15aead
%if 0%{?with_docs}
15aead
%files -n python-%{pypi_name}-doc
15aead
%doc html
15aead
%license LICENSE
15aead
%endif
15aead
15aead
%changelog
rdobuilder 25e72c
* Tue Oct 12 2021 Joel Capitao <jcapitao@redhat.com> - 2.0.0-2
rdobuilder 25e72c
- Replace remaining asserItemsEqual with asserCountEqual
rdobuilder 25e72c
rdobuilder 25e72c
* Mon Jul 26 2021 Joel Capitao <jcapitao@redhat.com> - 2.0.0-1
rdobuilder 25e72c
- Update to latest release (#1981310)
rdobuilder 25e72c
rdobuilder 25e72c
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-19
rdobuilder 25e72c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 25e72c
rdobuilder 25e72c
* Wed Jun 16 2021 Joel Capitao <jcapitao@redhat.com> - 1.1.3-18
rdobuilder 25e72c
- Switch to collections.abc
rdobuilder 25e72c
- Replace asserItemsEqual with asserCountEqual
rdobuilder 25e72c
- Enable tests
rdobuilder 25e72c
rdobuilder 25e72c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.3-17
rdobuilder 25e72c
- Rebuilt for Python 3.10
rdobuilder 25e72c
15aead
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-16
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
15aead
15aead
* Fri Aug 28 2020 Alfredo Moralejo <amoralej@redhat.com> - 1.1.3-15
15aead
- Remove references to python2 subpackage.
15aead
15aead
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-14
15aead
- Second attempt - Rebuilt for
15aead
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
15aead
15aead
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-13
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
15aead
15aead
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-12
15aead
- Rebuilt for Python 3.9
15aead
15aead
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-11
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
15aead
15aead
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-10
15aead
- Rebuilt for Python 3.8.0rc1 (#1748018)
15aead
15aead
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-9
15aead
- Rebuilt for Python 3.8
15aead
15aead
* Mon Jul 29 2019 Alfredo Moralejo <amoralej@redhat.com> - 1.1.3-8
15aead
- Remove python2 subpackage from fedora and rhel < 8
15aead
- Remove docs subpackage as it doesn't support recent versions of sphinx
15aead
15aead
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-7
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
15aead
15aead
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-6
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
15aead
15aead
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.3-5
15aead
- Drop explicit locale setting
15aead
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
15aead
15aead
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-4
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
15aead
15aead
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-3
15aead
- Rebuilt for Python 3.7
15aead
15aead
* Wed Feb 14 2018 Yatin Karel <ykarel@redhat.com> - 1.1.3-2
15aead
- Fix python-ply Requires for rhel
15aead
15aead
* Fri Feb 09 2018 Alfredo Moralejo <amoralej@redhat.com> - 1.1.3-1
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
15aead
15aead
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
15aead
15aead
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
15aead
15aead
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
15aead
15aead
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
15aead
- Rebuild for Python 3.6
15aead
15aead
* Mon Aug 22 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.1.0-3
15aead
- Fix Requires in python2-yaql
15aead
15aead
* Fri Apr  8 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.1.0-2
15aead
- Fix RHBZ#1282081
15aead
15aead
* Fri Apr  8 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.1.0-1
15aead
- Upstream 1.1.0
15aead
15aead
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
15aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
15aead
15aead
* Wed Nov 18 2015 Marcos Fermin Lobo <marcos.fermin.lobo@cern.ch> 1.0.2-1.el7
15aead
- Update to 1.0.2
15aead
15aead
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 0.2.7-2
15aead
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
15aead
15aead
* Wed Aug 26 2015 Marcos Fermin Lobo <marcos.fermin.lobo@cern.ch> 0.2.7-1
15aead
- First RPM for FC23