diff --git a/.gitignore b/.gitignore index e69de29..eeffe93 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/SourceSerifPro-1.017R.tar.gz diff --git a/adobe-source-serif-pro-fonts-fontconfig.conf b/adobe-source-serif-pro-fonts-fontconfig.conf new file mode 100644 index 0000000..4e31576 --- /dev/null +++ b/adobe-source-serif-pro-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + Source Serif Pro + + serif + + + + serif + + Source Serif Pro + + + diff --git a/adobe-source-serif-pro-fonts.spec b/adobe-source-serif-pro-fonts.spec new file mode 100644 index 0000000..d7ee0ec --- /dev/null +++ b/adobe-source-serif-pro-fonts.spec @@ -0,0 +1,66 @@ +%global fontname source-serif-pro +%global fontconf 63-%{fontname}.conf + +%global version_roman 1.017 +#global version_italic x.yyy + +Name: adobe-source-serif-pro-fonts +Version: %{version_roman} +Release: 2%{?dist} +Summary: A set of OpenType fonts designed to complement Source Sans Pro + +License: OFL +URL: https://github.com/adobe-fonts/source-serif-pro +Source0: https://github.com/adobe-fonts/source-serif-pro/archive/%{version_roman}R.tar.gz#/SourceSerifPro-%{version_roman}R.tar.gz +Source1: %{name}-fontconfig.conf +Source2: %{fontname}.metainfo.xml + +BuildArch: noarch +BuildRequires: fontpackages-devel +BuildRequires: libappstream-glib +Requires: fontpackages-filesystem + +%description +Source Serif Pro is a set of OpenType fonts to complement the Source Sans Pro +family. + +%prep +%setup -q -n source-serif-pro-%{version_roman}R +sed -i 's/\r//' LICENSE.txt +chmod 644 LICENSE.txt + +%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 + +%check +appstream-util --nonet validate-relax \ + %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml + +%_font_pkg -f %{fontconf} *.otf +%{_datadir}/appdata/%{fontname}.metainfo.xml + +%doc README.md +%license LICENSE.txt + +%changelog +* Tue Aug 30 2016 Michael Kuhn - 1.017-2 +- Fix AppStream metadata +- Validate AppStream metadata during check + +* Tue Jan 26 2016 Michael Kuhn - 1.017-1 +- Initial package. diff --git a/source-serif-pro.metainfo.xml b/source-serif-pro.metainfo.xml new file mode 100644 index 0000000..98da0bb --- /dev/null +++ b/source-serif-pro.metainfo.xml @@ -0,0 +1,11 @@ + + + + source-serif-pro + CC0-1.0 + OFL-1.1 + Source Serif Pro + A set of fonts designed to complement Source Sans Pro + https://github.com/adobe-fonts/source-serif-pro + suraia@fedoraproject.org + diff --git a/sources b/sources index e69de29..c08418e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fee6b5d1fe3b21621b14fe342c32a398 SourceSerifPro-1.017R.tar.gz