Name: fontdump
Version: 1.2.1
Release: 1%{?dist}
Summary: Dump the CSS and different formats of fonts for Google Fonts
License: MIT
URL: https://github.com/glasslion/fontdump
Source0: https://pypi.python.org/packages/source/f/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python-setuptools
%description
A command line tool to dump the CSS and different formats of fonts for Google
Fonts, so you can serve them on your local servers.
%prep
%setup -q -n %{name}-%{version}
rm -rf *.egg-info
sed -i -e '/^#!\//, 1d' fontdump/cli.py fontdump/core.py
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root=%{buildroot}
%files
%doc PKG-INFO LICENSE
%{_bindir}/%{name}
%{python2_sitelib}/%{name}/
%{python2_sitelib}/%{name}-%{version}-py2.*.egg-info
%changelog
* Thu Oct 30 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.2.1-1
- Update to new upstream 1.2.1 release
* Thu Oct 30 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.2.0-2
- Add upstream LICENSE file (asked in review)
- Add Requires: python-setuptools (asked in review)
* Mon Sep 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.2.0-1
- Initial packaging