|
|
c0bcde0 |
%global mod_name Flask-AutoIndex
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
Name: python-flask-autoindex
|
|
|
c0bcde0 |
Version: 0.4.1
|
|
|
93cd2d6 |
Release: 17%{?dist}
|
|
|
c0bcde0 |
Summary: A mod_autoindex for Flask
|
|
|
c0bcde0 |
Group: Development/Libraries
|
|
|
c0bcde0 |
License: BSD
|
|
|
c0bcde0 |
URL: http://github.com/sublee/flask-autoindex
|
|
|
c0bcde0 |
Source0: http://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
|
|
c0bcde0 |
BuildArch: noarch
|
|
|
c0bcde0 |
BuildRequires: python-devel
|
|
|
c0bcde0 |
BuildRequires: python-flask
|
|
|
c0bcde0 |
BuildRequires: python-flask-silk
|
|
|
c0bcde0 |
BuildRequires: python-setuptools
|
|
|
c0bcde0 |
|
|
|
af41779 |
# https://github.com/sublee/flask-autoindex/issues/12
|
|
|
af41779 |
Patch0: %{name}-tests.patch
|
|
|
af41779 |
|
|
|
b33ea01 |
%global _description\
|
|
|
b33ea01 |
Flask-AutoIndex generates an index page for your Flask application\
|
|
|
b33ea01 |
automatically. The result just like mod_autoindex, but the look is\
|
|
|
c0bcde0 |
more awesome!
|
|
|
c0bcde0 |
|
|
|
b33ea01 |
%description %_description
|
|
|
b33ea01 |
|
|
|
b33ea01 |
%package -n python2-flask-autoindex
|
|
|
b33ea01 |
Summary: %summary
|
|
|
b33ea01 |
Requires: python-flask
|
|
|
b33ea01 |
Requires: python-flask-silk
|
|
|
b33ea01 |
%{?python_provide:%python_provide python2-flask-autoindex}
|
|
|
b33ea01 |
|
|
|
b33ea01 |
%description -n python2-flask-autoindex %_description
|
|
|
b33ea01 |
|
|
|
c0bcde0 |
%prep
|
|
|
c0bcde0 |
%setup -q -n %{mod_name}-%{version}
|
|
|
af41779 |
%patch0 -p1
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%build
|
|
|
c0bcde0 |
%{__python} setup.py build
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%install
|
|
|
c0bcde0 |
%{__python} setup.py install --root $RPM_BUILD_ROOT
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%check
|
|
|
c0bcde0 |
# avoid issues due to flaskext added to PYTHONPATH by the time test.py is run
|
|
|
c0bcde0 |
sed -i 's|^\(from \)flaskext\.\(autoindex\)|\1\2|' \
|
|
|
c0bcde0 |
tests/__init__.py \
|
|
|
c0bcde0 |
build/lib/flaskext/autoindex/icons.py
|
|
|
c0bcde0 |
PYTHONPATH=$PWD/build/lib/flaskext:$PYTHONPATH python tests/__init__.py
|
|
|
c0bcde0 |
|
|
|
b33ea01 |
%files -n python2-flask-autoindex
|
|
|
c0bcde0 |
%doc LICENSE PKG-INFO README
|
|
|
c0bcde0 |
%{python_sitelib}/*-nspkg.pth
|
|
|
c0bcde0 |
%{python_sitelib}/*.egg-info/
|
|
|
c0bcde0 |
%{python_sitelib}/flaskext/*.py*
|
|
|
c0bcde0 |
%{python_sitelib}/flaskext/autoindex
|
|
|
c0bcde0 |
|
|
|
c0bcde0 |
%changelog
|
|
|
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.
|