640a610
%global srcname fontdump
640a610
%global sum Dump the CSS and different formats of fonts for Google Fonts
640a610
640a610
Name:           %{srcname}
2c8b0ae
Version:        1.3.0
ec8d5da
Release:        8%{?dist}
640a610
Summary:        %{sum}
4208fe9
4208fe9
License:        MIT
4208fe9
URL:            https://github.com/glasslion/fontdump
640a610
Source0:        http://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
4208fe9
4208fe9
BuildArch:      noarch
640a610
BuildRequires:  python2-devel python3-devel
640a610
Requires:       python3-fontdump
ec8d5da
Requires:       python3-cssutils
ec8d5da
Requires:       python3-docopt
ec8d5da
Requires:       python3-requests
4208fe9
4208fe9
%description
4208fe9
A command line tool to dump the CSS and different formats of fonts for Google
4208fe9
Fonts, so you can serve them on your local servers.
4208fe9
640a610
%package -n python2-%{srcname}
640a610
Summary:        %{sum}
640a610
BuildRequires:   python2-docopt
640a610
BuildRequires:   python2-cssutils
640a610
BuildRequires:   python2-requests
640a610
%{?python_provide:%python_provide python2-%{srcname}}
640a610
640a610
%description -n python2-%{srcname}
640a610
A command line tool to dump the CSS and different formats of fonts for Google
640a610
Fonts, so you can serve them on your local servers.
640a610
640a610
640a610
%package -n python3-%{srcname}
640a610
Summary:        %{sum}
640a610
BuildRequires:   python3-docopt
640a610
BuildRequires:   python3-cssutils
640a610
BuildRequires:   python3-requests
640a610
%{?python_provide:%python_provide python3-%{srcname}}
4208fe9
640a610
%description -n python3-%{srcname}
640a610
A command line tool to dump the CSS and different formats of fonts for Google
640a610
Fonts, so you can serve them on your local servers.
4208fe9
640a610
%prep
640a610
%autosetup -n %{srcname}-%{version}
640a610
sed -i -e '/^#!\//, 1d' fontdump/*.py
4208fe9
4208fe9
%build
640a610
%py2_build
640a610
%py3_build
4208fe9
4208fe9
%install
640a610
# Must do the python2 install first because the scripts in /usr/bin are
640a610
# overwritten with every setup.py install, and in general we want the
640a610
# python3 version to be the default.
640a610
%py2_install
640a610
%py3_install
640a610
640a610
%check
640a610
%{__python2} setup.py test
640a610
%{__python3} setup.py test
4208fe9
4208fe9
%files
640a610
%{_bindir}/%{srcname}
640a610
640a610
%files -n python2-%{srcname}
640a610
%doc PKG-INFO
640a610
%license LICENSE
640a610
%{python2_sitelib}/%{srcname}
640a610
%{python2_sitelib}/%{srcname}-%{version}-py2.*.egg-info
640a610
640a610
%files -n python3-%{srcname}
640a610
%doc PKG-INFO
640a610
%license LICENSE
640a610
%{python3_sitelib}/%{srcname}
640a610
%{python3_sitelib}/%{srcname}-%{version}-py3.*.egg-info
4208fe9
4208fe9
%changelog
ec8d5da
* Sun Jun 04 2017 Parag Nemade <pnemade AT redhat DOT com> - 1.3.0-8
ec8d5da
- Add missing dependencies (rh#1458516)
ec8d5da
4bd8212
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-7
4bd8212
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4bd8212
d27cac5
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.3.0-6
d27cac5
- Rebuild for Python 3.6
d27cac5
ec2b45d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-5
ec2b45d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ec2b45d
640a610
* Mon Apr 04 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.3.0-4
640a610
- Add python3 subpackage
640a610
- Follow new python and updated packaging guidelines
640a610
842800b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
842800b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
842800b
800a383
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
800a383
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
800a383
2c8b0ae
* Tue Nov 25 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.3.0-1
2c8b0ae
- Update to new upstream 1.3.0 release
2c8b0ae
4208fe9
* Thu Oct 30 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.2.1-1
4208fe9
- Update to new upstream 1.2.1 release
4208fe9
4208fe9
* Thu Oct 30 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.2.0-2
4208fe9
- Add upstream LICENSE file (asked in review)
4208fe9
- Add Requires: python-setuptools (asked in review)
4208fe9
4208fe9
* Mon Sep 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.2.0-1
4208fe9
- Initial packaging
4208fe9