f418b18
%{?python_enable_dependency_generator}
c0bcde0
%global mod_name	Flask-AutoIndex
c0bcde0
c0bcde0
Name:		python-flask-autoindex
fb5527b
Version:	0.6.6
2a6d613
Release:	3%{?dist}
c0bcde0
Summary:	A mod_autoindex for Flask
c0bcde0
License:	BSD
fb5527b
URL:		https://github.com/general03/flask-autoindex
fb5527b
Source0:	%{url}/archive/v%{version}/%{mod_name}-%{version}.tar.gz
c0bcde0
BuildArch:	noarch
af41779
b33ea01
%global _description\
b33ea01
Flask-AutoIndex generates an index page for your Flask application\
f280b23
automatically. The result is just like mod_autoindex, but the look is\
c0bcde0
more awesome!
c0bcde0
b33ea01
%description %_description
b33ea01
f280b23
%package -n python3-flask-autoindex
f280b23
Summary: %summary
f418b18
BuildRequires:	python3-devel
f418b18
BuildRequires:	python3-flask
f418b18
BuildRequires:	python3-flask-silk
f418b18
BuildRequires:	python3-future
f418b18
BuildRequires:	python3-setuptools
f418b18
BuildRequires:	python3-sphinx
bafdd98
Conflicts:	python2-flask-autoindex < 0.6-4
f280b23
f280b23
%description -n python3-flask-autoindex %_description
f280b23
f280b23
%package docs
f280b23
Summary:	Documentation for %{name}
f280b23
f280b23
%description docs
f280b23
HTML documentation for %{name}.
f280b23
c0bcde0
%prep
fb5527b
%autosetup -n flask-autoindex-%{version}
f280b23
fb5527b
# Fix the sphinx config
fb5527b
sed -i "s/^extension.*/& 'sphinx.ext.autodoc'/" docs/conf.py
c0bcde0
c0bcde0
%build
f280b23
%py3_build
f280b23
f280b23
# Build the documentation
fb5527b
PYTHONPATH=$PWD/build/lib sphinx-build docs html
c0bcde0
c0bcde0
%install
f280b23
%py3_install
f280b23
c0bcde0
c0bcde0
%check
fb5527b
python3 setup.py test
f280b23
f280b23
%files -n python3-flask-autoindex
fb5527b
%doc CHANGELOG.md README.md
fb5527b
%license LICENSE.md
bafdd98
%{_bindir}/fai
f280b23
%{python3_sitelib}/flask_autoindex/
f280b23
%{python3_sitelib}/*.egg-info/
f280b23
f280b23
%files docs
bafdd98
%doc html/*
c0bcde0
c0bcde0
%changelog
2a6d613
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.6-3
2a6d613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2a6d613
e16bea2
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.6-2
e16bea2
- Rebuilt for Python 3.9
e16bea2
fb5527b
* Tue May 19 2020 Jerry James <loganjerry@gmail.com> - 0.6.6-1
fb5527b
- Version 0.6.6
fb5527b
- Update URLs
fb5527b
5be6afc
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-10
5be6afc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5be6afc
2fa69c9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6-9
2fa69c9
- Rebuilt for Python 3.8.0rc1 (#1748018)
2fa69c9
e051524
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6-8
e051524
- Rebuilt for Python 3.8
e051524
23edc8d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-7
23edc8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
23edc8d
66744fb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-6
66744fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
66744fb
f418b18
* Fri Jan 04 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6-5
f418b18
- Enable python dependency generator
f418b18
bafdd98
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6-4
bafdd98
- Subpackage python2-flask-autoindex has been removed
bafdd98
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
bafdd98
4dd1620
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-3
4dd1620
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4dd1620
708859b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6-2
708859b
- Rebuilt for Python 3.7
708859b
f280b23
* Sat Jun  2 2018 Jerry James <loganjerry@gmail.com> - 0.6-1
f280b23
- Update to latest upstream release
f280b23
- Use license macro
f280b23
- Build for both python 2 and python 3
f280b23
- Build documentation
f280b23
93cd2d6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-17
93cd2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
93cd2d6
b33ea01
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.4.1-16
b33ea01
- Python 2 binary package renamed to python2-flask-autoindex
b33ea01
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
b33ea01
eb93116
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-15
eb93116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eb93116
99e1880
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-14
99e1880
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
99e1880
4452404
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-13
4452404
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4452404
6d66150
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-12
6d66150
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6d66150
c7ed213
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-11
c7ed213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c7ed213
b287671
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-10
b287671
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b287671
a41930d
* Sun Aug 11 2013 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.4.1-9
af41779
- Correct rawhide FTBFS (#992891)
af41779
8c136b4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-8
8c136b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8c136b4
238da27
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-7
238da27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
238da27
c0bcde0
* Wed Sep 19 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.4.1-6
c0bcde0
- Update to match upstream new tarball but with same version
c0bcde0
  The new tarball was done to address issues in the review process
c0bcde0
- Add %%check section to use new test files in upstream tarball
c0bcde0
- Remove LICENSE Source1 as it is now in upstream tarball
c0bcde0
c0bcde0
* Tue Sep 18 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.4.1-5
c0bcde0
- Correct incoherent version in changelog
c0bcde0
- Add LICENSE file from upstream to source rpm
c0bcde0
c0bcde0
* Thu Sep 13 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.4.1-4
c0bcde0
- Add missing python-setuptools build requires (#839071)
c0bcde0
c0bcde0
* Fri Aug 17 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.4.1-3
c0bcde0
- Correct package for clean mock chroot build
c0bcde0
c0bcde0
* Sun Aug 5 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.4.1-2
c0bcde0
- No need to set CFLAGS for noarch (#839071)
c0bcde0
- Add requires of python-flask-silk (#839097)
c0bcde0
c0bcde0
* Tue Jul 10 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.4.1-1
c0bcde0
- Initial python-flask-autoindex spec.