|
|
f418b18 |
%{?python_enable_dependency_generator}
|
|
|
c0bcde0 |
%global mod_name Flask-AutoIndex
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
Name: python-flask-autoindex
|
|
|
f280b23 |
Version: 0.6
|
|
|
66744fb |
Release: 6%{?dist}
|
|
|
c0bcde0 |
Summary: A mod_autoindex for Flask
|
|
|
c0bcde0 |
License: BSD
|
|
|
c0bcde0 |
URL: http://github.com/sublee/flask-autoindex
|
|
|
f280b23 |
Source0: https://files.pythonhosted.org/packages/source/F/%{mod_name}/%{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-flask-sphinx-themes
|
|
|
f418b18 |
BuildRequires: python3-future
|
|
|
f418b18 |
BuildRequires: python3-setuptools
|
|
|
f418b18 |
BuildRequires: python3-sphinx
|
|
|
bafdd98 |
Conflicts: python2-flask-autoindex < 0.6-4
|
|
|
f280b23 |
%{?python_provide:%python_provide python3-flask-autoindex}
|
|
|
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
|
|
|
bafdd98 |
%setup -q -n %{mod_name}-%{version}
|
|
|
2294b51 |
# Fix Silk import
|
|
|
bafdd98 |
sed -i 's/from flask.ext.silk/from flask_silk/' flask_autoindex/__init__.py
|
|
|
f280b23 |
|
|
|
f280b23 |
# Fix version number in the documentation
|
|
|
bafdd98 |
sed -i 's/0\.2\.0/%{version}/' docs/conf.py
|
|
|
f280b23 |
|
|
|
f280b23 |
# Fix package name in the tests
|
|
|
bafdd98 |
sed -i 's/flask\.ext\./flask_/' tests/__init__.py
|
|
|
f280b23 |
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%build
|
|
|
f280b23 |
%py3_build
|
|
|
f280b23 |
|
|
|
f280b23 |
# Build the documentation
|
|
|
f280b23 |
sphinx-build-%{python3_version} docs html
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%install
|
|
|
f280b23 |
%py3_install
|
|
|
f280b23 |
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%check
|
|
|
f280b23 |
PYTHONPATH=$PWD/build/lib python3 tests/__init__.py
|
|
|
f280b23 |
|
|
|
f280b23 |
%files -n python3-flask-autoindex
|
|
|
bafdd98 |
%doc README
|
|
|
bafdd98 |
%license LICENSE
|
|
|
bafdd98 |
%{_bindir}/fai
|
|
|
f280b23 |
%{python3_sitelib}/flask_autoindex/
|
|
|
f280b23 |
%{python3_sitelib}/*.egg-info/
|
|
|
f280b23 |
|
|
|
f280b23 |
%files docs
|
|
|
bafdd98 |
%doc html/*
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%changelog
|
|
|
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.
|