Blame SPECS/adobe-source-code-pro-fonts.spec

9b3159
%global fontname adobe-source-code-pro
9b3159
%global fontconf 61-%{fontname}.conf
9b3159
9b3159
%global version_roman  2.030
9b3159
%global version_italic 1.050
9b3159
9b3159
Name:           %{fontname}-fonts
9b3159
Version:        %{version_roman}.%{version_italic}
9b3159
Release:        12%{?dist}.1
9b3159
Summary:        A set of mono-spaced OpenType fonts designed for coding environments
9b3159
9b3159
License:        OFL
9b3159
URL:            https://github.com/adobe-fonts/source-code-pro
9b3159
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
9b3159
Source1:        %{name}-fontconfig.conf
9b3159
Source2:        %{fontname}.metainfo.xml
9b3159
9b3159
BuildArch:      noarch
9b3159
BuildRequires:  fontpackages-devel
9b3159
Requires:       fontpackages-filesystem
9b3159
9b3159
%description
9b3159
This font was designed by Paul D. Hunt as a companion to Source Sans. It has
9b3159
the same weight range as the corresponding Source Sans design.  It supports
9b3159
a wide range of languages using the Latin script, and includes all the
9b3159
characters in the Adobe Latin 4 glyph set.
9b3159
9b3159
9b3159
%prep
9b3159
%setup -qn source-code-pro-%{version_roman}R-ro-%{version_italic}R-it
9b3159
sed -i 's/\r//' LICENSE.txt
9b3159
chmod 644 LICENSE.txt
9b3159
9b3159
%build
9b3159
9b3159
%install
9b3159
install -m 0755 -d %{buildroot}%{_fontdir}
9b3159
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir}
9b3159
9b3159
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
9b3159
                   %{buildroot}%{_fontconfig_confdir}
9b3159
9b3159
install -m 0644 -p %{SOURCE1} \
9b3159
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
9b3159
ln -s %{_fontconfig_templatedir}/%{fontconf} \
9b3159
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
9b3159
9b3159
# Add AppStream metadata
9b3159
install -Dm 0644 -p %{SOURCE2} \
9b3159
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
9b3159
9b3159
%_font_pkg -f %{fontconf} *.otf
9b3159
%{_datadir}/appdata/%{fontname}.metainfo.xml
9b3159
9b3159
%doc README.md
9b3159
%license LICENSE.txt
9b3159
9b3159
%changelog
9b3159
* Tue Jun 14 2022 Akira TAGOH <tagoh@redhat.com> - 2.030.1.050-12.1
9b3159
- Rebuilt to make sure moving this package to AppStream.
9b3159
  Resolves: rhbz#2094195
9b3159
9b3159
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.030.1.050-12
9b3159
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9b3159
  Related: rhbz#1991688
9b3159
9b3159
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.030.1.050-11
9b3159
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9b3159
9b3159
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-10
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9b3159
9b3159
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-9
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9b3159
9b3159
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-8
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9b3159
9b3159
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-7
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9b3159
9b3159
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-6
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9b3159
9b3159
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-5
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9b3159
9b3159
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-4
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9b3159
9b3159
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-3
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9b3159
9b3159
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.030.1.050-2
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9b3159
9b3159
* Sat Jul 23 2016 Michael Kuhn <suraia@ikkoku.de> - 2.030.1.050-1
9b3159
- Update to roman fonts 2.030 and italic fonts 1.050
9b3159
9b3159
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.010.1.030-2
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9b3159
9b3159
* Fri Nov 06 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.010.1.030-1
9b3159
- update to 2.010 (roman) and 1.030 (italic)
9b3159
- update URL
9b3159
- use %%license macro
9b3159
9b3159
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.017-6
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9b3159
9b3159
* Wed Oct 15 2014 Richard Hughes <richard@hughsie.com> - 1.017-5
9b3159
- Add a MetaInfo file for the software center; this is a font we want to show.
9b3159
9b3159
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.017-4
9b3159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9b3159
9b3159
* Fri Sep 13 2013 Matt Rose mattrose@folkwolf.net - 1.017-3
9b3159
- rebuilt on fedora 19
9b3159
9b3159
* Mon Jan 21 2013 Tobias Florek me@ibotty.net - 1.017-2
9b3159
- remove now empty clean section
9b3159
9b3159
* Thu Jan 17 2013 Tobias Florek me@ibotty.net - 1.017-1
9b3159
- new upstream release
9b3159
9b3159
* Fri Dec 07 2012 Tobias Florek me@ibotty.net - 1.013-1
9b3159
- new upstream release
9b3159
9b3159
* Sun Nov 18 2012 Tobias Florek me@ibotty.net - 1.010-2
9b3159
- do not clean buildroot on install and clean
9b3159
9b3159
* Tue Oct  2 2012 Tobias Florek me@ibotty.net - 1.010-1
9b3159
- new upstream release
9b3159
9b3159
* Tue Sep 25 2012 Tobias Florek me@ibotty.net - 1.009-3
9b3159
- do not package ttf files
9b3159
9b3159
* Tue Sep 25 2012 Tobias Florek me@ibotty.net - 1.009-2
9b3159
- Initial version