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