c0bcde0
%global mod_name	Flask-AutoIndex
c0bcde0
c0bcde0
Name:		python-flask-autoindex
c0bcde0
Version:	0.4.1
b287671
Release:	10%{?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
Requires:	python-flask
c0bcde0
Requires:	python-flask-silk
c0bcde0
af41779
# https://github.com/sublee/flask-autoindex/issues/12
af41779
Patch0:		%{name}-tests.patch
af41779
c0bcde0
%description
c0bcde0
Flask-AutoIndex generates an index page for your Flask application
c0bcde0
automatically. The result just like mod_autoindex, but the look is
c0bcde0
more awesome!
c0bcde0
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
c0bcde0
%files
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
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.