|
|
a7fa69 |
%global pypi_name XStatic-roboto-fontface
|
|
|
a7fa69 |
|
|
|
a7fa69 |
Name: python-%{pypi_name}
|
|
|
a7fa69 |
Version: 0.5.0.0
|
|
|
a7fa69 |
Release: 17%{?dist}
|
|
|
a7fa69 |
Summary: roboto-fontface (XStatic packaging standard)
|
|
|
a7fa69 |
|
|
|
a7fa69 |
License: ASL 2.0
|
|
|
a7fa69 |
URL: https://github.com/choffmeister/roboto-fontface-bower
|
|
|
a7fa69 |
Source0: https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
a7fa69 |
BuildArch: noarch
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%description
|
|
|
a7fa69 |
XStatic-roboto-fontface is a roboto-fontface JavaScript
|
|
|
a7fa69 |
library packaged for setuptools (easy_install) / pip.
|
|
|
a7fa69 |
|
|
|
a7fa69 |
This package is intended to be used by any project that needs these files.
|
|
|
a7fa69 |
It intentionally does not provide any extra code except some metadata nor
|
|
|
a7fa69 |
has any extra requirements.
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%package -n roboto-fontface-common
|
|
|
a7fa69 |
Summary: roboto-fontface commons
|
|
|
a7fa69 |
BuildRequires: web-assets-devel
|
|
|
a7fa69 |
|
|
|
a7fa69 |
Requires: web-assets-filesystem
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%description -n roboto-fontface-common
|
|
|
a7fa69 |
Common roboto-fontface static content (font, CSS and SCSS)
|
|
|
a7fa69 |
|
|
|
a7fa69 |
# TODO
|
|
|
a7fa69 |
# use google-roboto-font instead of roboto-fontface-fonts
|
|
|
a7fa69 |
# currently google-roboto-font does not have .eot, .svg and .woff files
|
|
|
a7fa69 |
# reference: https://bugzilla.redhat.com/show_bug.cgi?id=1261022
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%package -n roboto-fontface-fonts
|
|
|
a7fa69 |
Summary: roboto-fontface fonts
|
|
|
a7fa69 |
BuildRequires: fontpackages-filesystem
|
|
|
a7fa69 |
|
|
|
a7fa69 |
Requires: fontpackages-filesystem
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%description -n roboto-fontface-fonts
|
|
|
a7fa69 |
roboto-fontface fonts
|
|
|
a7fa69 |
|
|
|
a7fa69 |
#python3 packaging
|
|
|
a7fa69 |
%package -n python3-%{pypi_name}
|
|
|
a7fa69 |
Summary: roboto-fontface (XStatic packaging standard)
|
|
|
a7fa69 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
a7fa69 |
|
|
|
a7fa69 |
BuildRequires: python3-devel
|
|
|
a7fa69 |
BuildRequires: python3-setuptools
|
|
|
a7fa69 |
|
|
|
a7fa69 |
Requires: python3-XStatic
|
|
|
a7fa69 |
Requires: roboto-fontface-common = %{version}-%{release}
|
|
|
a7fa69 |
Requires: roboto-fontface-fonts = %{version}-%{release}
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%description -n python3-%{pypi_name}
|
|
|
a7fa69 |
XStatic-roboto-fontface is a roboto-fontface JavaScript
|
|
|
a7fa69 |
library packaged for setuptools (easy_install) / pip.
|
|
|
a7fa69 |
|
|
|
a7fa69 |
This package is intended to be used by any project that needs these files.
|
|
|
a7fa69 |
It intentionally does not provide any extra code except some metadata nor
|
|
|
a7fa69 |
has any extra requirements.
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%prep
|
|
|
a7fa69 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
a7fa69 |
|
|
|
a7fa69 |
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/roboto_fontface'|" xstatic/pkg/roboto_fontface/__init__.py
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%build
|
|
|
a7fa69 |
%{__python3} setup.py build
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%install
|
|
|
a7fa69 |
%py3_install
|
|
|
a7fa69 |
|
|
|
a7fa69 |
# Move fonts to the right directory
|
|
|
a7fa69 |
mkdir -p %{buildroot}/%{_datadir}/fonts/roboto_fontface
|
|
|
a7fa69 |
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/roboto_fontface/data/fonts/* %{buildroot}/%{_datadir}/fonts/roboto_fontface
|
|
|
a7fa69 |
|
|
|
a7fa69 |
# Fix shebang issues
|
|
|
a7fa69 |
for file in %{buildroot}/%{_datadir}/fonts/roboto_fontface/roboto/*.svg; do
|
|
|
a7fa69 |
chmod -x $file
|
|
|
a7fa69 |
done
|
|
|
a7fa69 |
|
|
|
a7fa69 |
# Move static files
|
|
|
a7fa69 |
mkdir -p %{buildroot}/%{_jsdir}/roboto_fontface/css
|
|
|
a7fa69 |
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/roboto_fontface/data/css/* %{buildroot}/%{_jsdir}/roboto_fontface/css
|
|
|
a7fa69 |
rm -rf %{buildroot}/%{python3_sitelib}/xstatic/pkg/roboto_fontface/data
|
|
|
a7fa69 |
# link fonts
|
|
|
a7fa69 |
mkdir %{buildroot}/%{_jsdir}/roboto_fontface/fonts
|
|
|
a7fa69 |
pushd %{buildroot}/%{_jsdir}/roboto_fontface/fonts
|
|
|
a7fa69 |
ln -s ../../../fonts/roboto_fontface/* .
|
|
|
a7fa69 |
popd
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%files -n roboto-fontface-common
|
|
|
a7fa69 |
%doc README.txt
|
|
|
a7fa69 |
%{_jsdir}/roboto_fontface
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%files -n roboto-fontface-fonts
|
|
|
a7fa69 |
%doc README.txt
|
|
|
a7fa69 |
%{_datadir}/fonts/roboto_fontface
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%files -n python3-%{pypi_name}
|
|
|
a7fa69 |
%doc README.txt
|
|
|
a7fa69 |
%{python3_sitelib}/xstatic/pkg/roboto_fontface
|
|
|
a7fa69 |
%{python3_sitelib}/XStatic_roboto_fontface-%{version}-py%{python3_version}.egg-info
|
|
|
a7fa69 |
%{python3_sitelib}/XStatic_roboto_fontface-%{version}-py%{python3_version}-nspkg.pth
|
|
|
a7fa69 |
|
|
|
a7fa69 |
%changelog
|
|
|
a7fa69 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-17
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-16
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.0-15
|
|
|
a7fa69 |
- Rebuilt for Python 3.9
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-14
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.0-13
|
|
|
a7fa69 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.0-12
|
|
|
a7fa69 |
- Rebuilt for Python 3.8
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-11
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-10
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0.0-9
|
|
|
a7fa69 |
- Subpackage python2-XStatic-roboto-fontface has been removed
|
|
|
a7fa69 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-8
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.0-7
|
|
|
a7fa69 |
- Rebuilt for Python 3.7
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.0.0-6
|
|
|
a7fa69 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
a7fa69 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-5
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-4
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.0-3
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.0-2
|
|
|
a7fa69 |
- Rebuild for Python 3.6
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Nov 22 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 0.5.0.0-1
|
|
|
a7fa69 |
- Upstream 0.5.0.0
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3.2-9
|
|
|
a7fa69 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Thu May 12 2016 Matthias Runge <mrunge@redhat.com> - 0.4.3.2-8
|
|
|
a7fa69 |
- fix font location for xstatic package (rhbz#1333600)
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3.2-6
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3.2-5
|
|
|
a7fa69 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Sep 22 2015 Matthias Runge <mrunge@redhat.com> - 0.4.3.2-4
|
|
|
a7fa69 |
- fix location of css/scss files for roboto
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Sep 08 2015 Chandan Kumar <chkumar246@gmail.com> - 0.4.3.2-3
|
|
|
a7fa69 |
- Fixed shebang rpmlint issue in .svg files
|
|
|
a7fa69 |
- use roboto-fontface-fonts due to bug in google-roboto-fonts
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Tue Sep 08 2015 Chandan Kumar <chkumar246@gmail.com> - 0.4.3.2-2
|
|
|
a7fa69 |
- use google-roboto-fonts and google-roboto-commons
|
|
|
a7fa69 |
|
|
|
a7fa69 |
* Sat Sep 05 2015 chandankumar <chkumar246@gmail.com> - 0.4.3.2-1
|
|
|
a7fa69 |
- Initial package.
|