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