diff --git a/.gitignore b/.gitignore index e69de29..c904a48 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/adobe-source-sans-pro-fonts-2.020.tar.gz diff --git a/adobe-source-sans-pro-fonts-fontconfig.conf b/adobe-source-sans-pro-fonts-fontconfig.conf new file mode 100644 index 0000000..0432c78 --- /dev/null +++ b/adobe-source-sans-pro-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + Source Sans Pro + + sans-serif + + + + sans-serif + + Source Sans Pro + + + diff --git a/adobe-source-sans-pro-fonts.spec b/adobe-source-sans-pro-fonts.spec new file mode 100644 index 0000000..5f5d003 --- /dev/null +++ b/adobe-source-sans-pro-fonts.spec @@ -0,0 +1,113 @@ +%global fontname source-sans-pro +%global fontconf 63-%{fontname}.conf + +%global roman_version 2.020 +%global italic_version 1.075 +%global github_tag %{roman_version}R-ro/%{italic_version}R-it +%global source_dir %{fontname}-%(tr "/" "-" <<<%{github_tag}) + +Name: adobe-source-sans-pro-fonts +Version: %{roman_version} +Release: 1%{?dist} +Summary: A set of OpenType fonts designed for user interfaces + +License: OFL +URL: https://github.com/adobe-fonts/source-sans-pro +#unable to build from source: source format is unbuildable with free software +Source0: https://github.com/adobe-fonts/source-sans-pro/archive/%{github_tag}/%{name}-%{version}.tar.gz +Source1: %{name}-fontconfig.conf +Source2: %{fontname}.metainfo.xml + +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem +BuildArch: noarch + +%description +Source Sans is a set of OpenType fonts that have been designed to work well in +user interface (UI) environments, as well as in text setting for screen and +print. + + +%prep +%autosetup -n %{source_dir} + +# Fix permissions +chmod 0644 LICENSE.txt README.md + +# Fix wrong EOLs +sed -i.orig "s/\r//" LICENSE.txt && \ +touch -r LICENSE.txt.orig LICENSE.txt && \ +rm LICENSE.txt.orig + + +%build + + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE2} \ + %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml + + +%_font_pkg -f %{fontconf} *.otf +%doc README.md +%license LICENSE.txt +%{_datadir}/appdata/%{fontname}.metainfo.xml + + +%changelog +* Tue Oct 17 2017 Mohamed El Morabity - 2.020-1 +- Update to 2.020 +- Update upstream URL +- Comply with latest packaging guidelines + +* Wed Jul 26 2017 Fedora Release Engineering - 1.050-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.050-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 1.050-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Jun 16 2015 Fedora Release Engineering - 1.050-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Oct 15 2014 Richard Hughes - 1.050-4 +- Add a MetaInfo file for the software center; this is a font we want to show. + +* Sat Jun 07 2014 Fedora Release Engineering - 1.050-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.050-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Apr 29 2013 Alexis Lameire - 1.050-1 +- update to 1.050-1 upstream release + +* Wed Feb 13 2013 Fedora Release Engineering - 1.034-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Aug 29 2012 Alexis Lameire - 1.034-1 +- update to 1.034-1 upstream release + +* Wed Aug 15 2012 Alexis Lameire - 1.033-3 +- Drop useless doc file Readme.html + +* Sat Aug 04 2012 Alexis Lameire - 1.033-2 +- use versionned source + +* Fri Aug 03 2012 Alexis Lameire - 1.033-1 +- initial release + diff --git a/source-sans-pro.metainfo.xml b/source-sans-pro.metainfo.xml new file mode 100644 index 0000000..0a6b0dd --- /dev/null +++ b/source-sans-pro.metainfo.xml @@ -0,0 +1,8 @@ + + + + source-sans-pro + CC0-1.0 + Source Sans + A set of fonts designed for user interfaces + diff --git a/sources b/sources index e69de29..ee88340 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (adobe-source-sans-pro-fonts-2.020.tar.gz) = 877b47b203d6f8ee71e60ba612a25b5a1b707205b0a4aaf02cfe2c806466acc6d393c93ad2fd6e76d761150b2594fcd6abce7b3c0415b5b915b06c6c143b6b53