54ca624
%global fontname adobe-source-code-pro
54ca624
%global fontconf 61-%{fontname}.conf
54ca624
db031e4
%global version_roman  2.030
db031e4
%global version_italic 1.050
30c3f02
54ca624
Name:           %{fontname}-fonts
30c3f02
Version:        %{version_roman}.%{version_italic}
5709445
Release:        6%{?dist}
30c3f02
Summary:        A set of mono-spaced OpenType fonts designed for coding environments
54ca624
54ca624
License:        OFL
30c3f02
URL:            https://github.com/adobe-fonts/source-code-pro
30c3f02
Source0:        https://github.com/adobe-fonts/source-code-pro/archive/%{version_roman}R-ro%2f%{version_italic}R-it.tar.gz#/SourceCodePro-%{version_roman}R-ro-%{version_italic}R-it.tar.gz
54ca624
Source1:        %{name}-fontconfig.conf
Richard Hughes 0079e42
Source2:        %{fontname}.metainfo.xml
54ca624
54ca624
BuildArch:      noarch
54ca624
BuildRequires:  fontpackages-devel
54ca624
Requires:       fontpackages-filesystem
54ca624
30c3f02
%description
54ca624
This font was designed by Paul D. Hunt as a companion to Source Sans. It has
54ca624
the same weight range as the corresponding Source Sans design.  It supports
54ca624
a wide range of languages using the Latin script, and includes all the
54ca624
characters in the Adobe Latin 4 glyph set.
54ca624
54ca624
54ca624
%prep
30c3f02
%setup -qn source-code-pro-%{version_roman}R-ro-%{version_italic}R-it
30c3f02
sed -i 's/\r//' LICENSE.txt
30c3f02
chmod 644 LICENSE.txt
54ca624
54ca624
%build
54ca624
54ca624
%install
54ca624
install -m 0755 -d %{buildroot}%{_fontdir}
54ca624
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir}
54ca624
54ca624
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
54ca624
                   %{buildroot}%{_fontconfig_confdir}
54ca624
54ca624
install -m 0644 -p %{SOURCE1} \
54ca624
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
54ca624
ln -s %{_fontconfig_templatedir}/%{fontconf} \
54ca624
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
54ca624
Richard Hughes 0079e42
# Add AppStream metadata
Richard Hughes 0079e42
install -Dm 0644 -p %{SOURCE2} \
Richard Hughes 0079e42
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
Richard Hughes 0079e42
54ca624
%_font_pkg -f %{fontconf} *.otf
Richard Hughes 0079e42
%{_datadir}/appdata/%{fontname}.metainfo.xml
54ca624
30c3f02
%doc README.md
30c3f02
%license LICENSE.txt
54ca624
54ca624
%changelog
5709445
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-6
5709445
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5709445
9543e05
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-5
9543e05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9543e05
f0a7e3f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-4
f0a7e3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f0a7e3f
2010afa
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-3
2010afa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2010afa
42e6eee
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-2
42e6eee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
42e6eee
db031e4
* Sat Jul 23 2016 Michael Kuhn <suraia@ikkoku.de> - 2.030.1.050-1
db031e4
- Update to roman fonts 2.030 and italic fonts 1.050
db031e4
0f7d2d5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.010.1.030-2
0f7d2d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0f7d2d5
30c3f02
* Fri Nov 06 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.010.1.030-1
30c3f02
- update to 2.010 (roman) and 1.030 (italic)
30c3f02
- update URL
30c3f02
- use %%license macro
30c3f02
c342e26
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.017-6
c342e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c342e26
Richard Hughes 0079e42
* Wed Oct 15 2014 Richard Hughes <richard@hughsie.com> - 1.017-5
Richard Hughes 0079e42
- Add a MetaInfo file for the software center; this is a font we want to show.
Richard Hughes 0079e42
7407736
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.017-4
7407736
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7407736
54ca624
* Fri Sep 13 2013 Matt Rose mattrose@folkwolf.net - 1.017-3
54ca624
- rebuilt on fedora 19
d196e01
54ca624
* Mon Jan 21 2013 Tobias Florek me@ibotty.net - 1.017-2
54ca624
- remove now empty clean section
d196e01
54ca624
* Thu Jan 17 2013 Tobias Florek me@ibotty.net - 1.017-1
54ca624
- new upstream release
d196e01
54ca624
* Fri Dec 07 2012 Tobias Florek me@ibotty.net - 1.013-1
54ca624
- new upstream release
d196e01
d196e01
* Sun Nov 18 2012 Tobias Florek me@ibotty.net - 1.010-2
54ca624
- do not clean buildroot on install and clean
d196e01
54ca624
* Tue Oct  2 2012 Tobias Florek me@ibotty.net - 1.010-1
54ca624
- new upstream release
d196e01
54ca624
* Tue Sep 25 2012 Tobias Florek me@ibotty.net - 1.009-3
54ca624
- do not package ttf files
d196e01
54ca624
* Tue Sep 25 2012 Tobias Florek me@ibotty.net - 1.009-2
54ca624
- Initial version