7ba5b9
%global modname SQLAlchemy-Utils
7ba5b9
7ba5b9
Name:               python-sqlalchemy-utils
48651b
Version:            0.34.2
48651b
Release:            1%{?dist}
7ba5b9
Summary:            Various utility functions for SQLAlchemy
7ba5b9
7ba5b9
License:            BSD
7ba5b9
URL:                http://pypi.python.org/pypi/SQLAlchemy-Utils
48651b
Source0:            %pypi_source SQLAlchemy-Utils
7ba5b9
7ba5b9
BuildArch:          noarch
7ba5b9
7ba5b9
BuildRequires:      python3-devel
7ba5b9
BuildRequires:      python3-setuptools
7ba5b9
BuildRequires:      python3-six
7ba5b9
BuildRequires:      python3-sqlalchemy >= 0.9.3
3594c4
BuildRequires:      python3-pytest
3594c4
BuildRequires:      python3-pytz
3594c4
BuildRequires:      python3-flexmock
3594c4
BuildRequires:      python3-dateutil
3594c4
BuildRequires:      python3-mock
7ba5b9
510ddb
%global _description\
510ddb
Various utility functions and custom data types for SQLAlchemy.\
7ba5b9
7ba5b9
510ddb
%description %_description
510ddb
7ba5b9
%package -n         python3-sqlalchemy-utils
7ba5b9
Summary:            Various utility functions for SQLAlchemy
68dbde
%{?python_provide:%python_provide python3-sqlalchemy-utils}
7cf961
Requires:           python3-sqlalchemy >= 0.9.3
7cf961
Requires:           python3-six
7ba5b9
7ba5b9
%description -n python3-sqlalchemy-utils
7ba5b9
Various utility functions and custom data types for SQLAlchemy.
7ba5b9
7ba5b9
7ba5b9
%prep
7ba5b9
%setup -q -n %{modname}-%{version}
7ba5b9
7ba5b9
# Remove bundled egg-info in case it exists
7ba5b9
rm -rf %{modname}.egg-info
7ba5b9
68dbde
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
7ba5b9
7ba5b9
7ba5b9
%build
68dbde
%py3_build
7ba5b9
7ba5b9
7ba5b9
%install
68dbde
%py3_install
7ba5b9
7ba5b9
%check
caf5eb
# Unit-tests seems to be broken in the unittest module on py3.5
caf5eb
#%{__python3} setup.py test
7ba5b9
7ba5b9
7ba5b9
%files -n python3-sqlalchemy-utils
68dbde
%doc README.rst
68dbde
%license LICENSE
68dbde
%{python3_sitelib}/sqlalchemy_utils/
68dbde
%{python3_sitelib}/SQLAlchemy_Utils-%{version}*/
7ba5b9
7ba5b9
7ba5b9
%changelog
48651b
* Tue Aug 20 2019 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.34.2-1
48651b
- Update to 0.34.2
48651b
65e74c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.32.12-12
65e74c
- Rebuilt for Python 3.8
65e74c
e3eefb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.12-11
e3eefb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e3eefb
68dbde
* Sun May 05 2019 Miro Hrončok <mhroncok@redhat.com> - 0.32.12-10
68dbde
- Subpackage python2-sqlalchemy-utils has been removed
68dbde
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
68dbde
c6c1e9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.12-9
c6c1e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c6c1e9
aad9cc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.12-8
aad9cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
aad9cc
96f4fb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.32.12-7
96f4fb
- Rebuilt for Python 3.7
96f4fb
69bdc1
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.32.12-6
69bdc1
- Update Python 2 dependency declarations to new packaging standards
69bdc1
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
69bdc1
4cc405
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.12-5
4cc405
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4cc405
510ddb
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.32.12-4
510ddb
- Python 2 binary package renamed to python2-sqlalchemy-utils
510ddb
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
510ddb
925a35
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.12-3
925a35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
925a35
aff859
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.12-2
aff859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aff859
65421c
* Fri Jan 20 2017 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.32.12-1
65421c
- Update to 0.32.12
65421c
c38b5b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.31.3-3
c38b5b
- Rebuild for Python 3.6
c38b5b
8d4b6d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.3-2
8d4b6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8d4b6d
a08ba2
* Fri Nov 20 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.31.3-1
a08ba2
- Update to 0.31.3
a08ba2
cdfa87
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30.0-3
cdfa87
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
cdfa87
814e21
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30.0-2
814e21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
814e21
565515
* Sun Apr 26 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.30.0-1
565515
- Update to 0.30.0
565515
7ba5b9
* Mon Sep 01 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.26.13-2
7ba5b9
- Clean python macro at the top
7ba5b9
- Add python3 subpackage
7ba5b9
7ba5b9
* Tue Aug 26 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.26.13-1
7ba5b9
- initial package for Fedora