Blame SPECS/python-XStatic-Font-Awesome.spec

6aa46a
%global pypi_name XStatic-Font-Awesome
6aa46a
6aa46a
Name:           python-%{pypi_name}
6aa46a
Version:        4.7.0.0
6aa46a
Release:        14%{?dist}
6aa46a
Summary:        Font-Awesome (XStatic packaging standard)
6aa46a
6aa46a
# font awesome is licensed under SIL 1.1.
6aa46a
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses_4
6aa46a
# short name: OFL
6aa46a
# Code is distributed under MIT
6aa46a
License:        OFL and MIT
6aa46a
URL:            https://fortawesome.github.io/Font-Awesome/
6aa46a
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
6aa46a
BuildArch:      noarch
6aa46a
6aa46a
BuildRequires:  web-assets-devel
6aa46a
BuildRequires:  fontawesome-fonts-web >= 4.1.0
6aa46a
BuildRequires:  fontawesome-fonts
6aa46a
6aa46a
%description
6aa46a
Font Awesome icons packaged for setuptools (easy_install) / pip.
6aa46a
6aa46a
This package is intended to be used by any project that needs these files.
6aa46a
6aa46a
It intentionally does not provide any extra code except some metadata
6aa46a
nor has any extra requirements.
6aa46a
6aa46a
6aa46a
%package -n python3-%{pypi_name}
6aa46a
Summary:        %{summary}
6aa46a
6aa46a
BuildRequires:  python3-devel
6aa46a
BuildRequires:  python3-setuptools
6aa46a
6aa46a
Requires:       python3-XStatic
6aa46a
Requires:       web-assets-filesystem
6aa46a
Requires:       fontawesome-fonts-web >= 4.1.0
6aa46a
Requires:       fontawesome-fonts
6aa46a
6aa46a
%{?python_provide:%python_provide python3-%{pypi_name}}
6aa46a
6aa46a
%description -n python3-%{pypi_name}
6aa46a
Font Awesome icons packaged for setuptools (easy_install) / pip.
6aa46a
6aa46a
This package is intended to be used by any project that needs these files.
6aa46a
6aa46a
It intentionally does not provide any extra code except some metadata
6aa46a
nor has any extra requirements.
6aa46a
6aa46a
This package provides Python 3 build of %{pypi_name}.
6aa46a
6aa46a
6aa46a
%prep
6aa46a
%autosetup -n %{pypi_name}-%{version}
6aa46a
6aa46a
6aa46a
%build
6aa46a
%py3_build
6aa46a
6aa46a
6aa46a
%install
6aa46a
%py3_install
6aa46a
6aa46a
# use fontawesome-fonts directly
6aa46a
rm -f %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/fonts/*
6aa46a
ln -s %{_datadir}/fonts/fontawesome/*  %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/fonts/
6aa46a
6aa46a
# use fontawesome-fonts-web for css, scss,
6aa46a
for dir in css less scss ; do
6aa46a
rm -rf %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/$dir
6aa46a
ln -s %{_datadir}/font-awesome-web/$dir %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/$dir
6aa46a
done
6aa46a
6aa46a
6aa46a
%files -n python3-%{pypi_name}
6aa46a
%doc README.txt
6aa46a
%{python3_sitelib}/xstatic/pkg/font_awesome
6aa46a
%{python3_sitelib}/XStatic_Font_Awesome-%{version}-py%{python3_version}.egg-info
6aa46a
%{python3_sitelib}/XStatic_Font_Awesome-%{version}-py%{python3_version}-nspkg.pth
6aa46a
6aa46a
6aa46a
%changelog
6aa46a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-14
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6aa46a
6aa46a
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-13
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6aa46a
6aa46a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.7.0.0-12
6aa46a
- Rebuilt for Python 3.9
6aa46a
6aa46a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-11
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6aa46a
6aa46a
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.7.0.0-10
6aa46a
- Rebuilt for Python 3.8.0rc1 (#1748018)
6aa46a
6aa46a
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.7.0.0-9
6aa46a
- Rebuilt for Python 3.8
6aa46a
6aa46a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-8
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6aa46a
6aa46a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-7
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6aa46a
6aa46a
* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 4.7.0.0-6
6aa46a
- Python2 binary package has been removed
6aa46a
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
6aa46a
6aa46a
* Fri Sep 28 2018 Alfredo Moralejo <amoralej@redhat.com> - 4.7.0.0-6
6aa46a
- Requirements moved to python2 and python3 subpackages instead of empty python- one.
6aa46a
6aa46a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-5
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6aa46a
6aa46a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.7.0.0-4
6aa46a
- Rebuilt for Python 3.7
6aa46a
6aa46a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-3
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6aa46a
6aa46a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0.0-2
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6aa46a
6aa46a
* Mon Feb  6 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 4.7.0.0-1
6aa46a
- Upstream 4.7.0.0
6aa46a
6aa46a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.3.0.0-5
6aa46a
- Rebuild for Python 3.6
6aa46a
6aa46a
* Thu Oct 13 2016 Jan Beran <jberan@redhat.com> - 4.3.0.0-4
6aa46a
- Provides a Python 3 subpackage
6aa46a
6aa46a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.0.0-3
6aa46a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6aa46a
6aa46a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0.0-2
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6aa46a
6aa46a
* Thu Sep 17 2015 Matthias Runge <mrunge@redhat.com> - 4.3.0-1
6aa46a
- update to 4.3.0
6aa46a
6aa46a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0.0-5
6aa46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6aa46a
6aa46a
* Fri May 08 2015 Matthias Runge <mrunge@redhat.com> - 4.1.0.0-4
6aa46a
- add br fontawesome-fonts-web to catch .woff (rhbz#1218627)
6aa46a
6aa46a
* Fri Dec 05 2014 Matthias Runge <mrunge@redhat.com> - 4.1.0.0-3
6aa46a
- version bumped due to adding .woff and .svg to fontawesome-fonts
6aa46a
6aa46a
* Wed Oct 01 2014 Matthias Runge <mrunge@redhat.com> - 4.1.0.0-2
6aa46a
- require at least version 4.1.0 of fontawesome-fonts-web
6aa46a
6aa46a
* Wed Sep 10 2014 Matthias Runge <mrunge@redhat.com> - 4.1.0.0-1
6aa46a
- Initial package. (rhbz#1140377)
6aa46a