|
|
469e51a |
%global fontname source-serif-pro
|
|
|
469e51a |
%global fontconf 63-%{fontname}.conf
|
|
|
469e51a |
|
|
|
ec66e72 |
%global version_roman 2.000
|
|
|
469e51a |
#global version_italic x.yyy
|
|
|
469e51a |
|
|
|
469e51a |
Name: adobe-source-serif-pro-fonts
|
|
|
469e51a |
Version: %{version_roman}
|
|
|
ec66e72 |
Release: 1%{?dist}
|
|
|
469e51a |
Summary: A set of OpenType fonts designed to complement Source Sans Pro
|
|
|
469e51a |
|
|
|
469e51a |
License: OFL
|
|
|
469e51a |
URL: https://github.com/adobe-fonts/source-serif-pro
|
|
|
469e51a |
Source0: https://github.com/adobe-fonts/source-serif-pro/archive/%{version_roman}R.tar.gz#/SourceSerifPro-%{version_roman}R.tar.gz
|
|
|
469e51a |
Source1: %{name}-fontconfig.conf
|
|
|
469e51a |
Source2: %{fontname}.metainfo.xml
|
|
|
469e51a |
|
|
|
469e51a |
BuildArch: noarch
|
|
|
469e51a |
BuildRequires: fontpackages-devel
|
|
|
469e51a |
BuildRequires: libappstream-glib
|
|
|
469e51a |
Requires: fontpackages-filesystem
|
|
|
469e51a |
|
|
|
469e51a |
%description
|
|
|
469e51a |
Source Serif Pro is a set of OpenType fonts to complement the Source Sans Pro
|
|
|
469e51a |
family.
|
|
|
469e51a |
|
|
|
469e51a |
%prep
|
|
|
469e51a |
%setup -q -n source-serif-pro-%{version_roman}R
|
|
|
469e51a |
sed -i 's/\r//' LICENSE.txt
|
|
|
469e51a |
chmod 644 LICENSE.txt
|
|
|
469e51a |
|
|
|
469e51a |
%build
|
|
|
469e51a |
|
|
|
469e51a |
%install
|
|
|
469e51a |
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
|
469e51a |
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir}
|
|
|
469e51a |
|
|
|
469e51a |
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
|
|
469e51a |
%{buildroot}%{_fontconfig_confdir}
|
|
|
469e51a |
|
|
|
469e51a |
install -m 0644 -p %{SOURCE1} \
|
|
|
469e51a |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
|
|
469e51a |
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
|
|
469e51a |
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
|
|
469e51a |
|
|
|
469e51a |
# Add AppStream metadata
|
|
|
469e51a |
install -Dm 0644 -p %{SOURCE2} \
|
|
|
469e51a |
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
|
469e51a |
|
|
|
469e51a |
%check
|
|
|
469e51a |
appstream-util --nonet validate-relax \
|
|
|
469e51a |
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
|
469e51a |
|
|
|
469e51a |
%_font_pkg -f %{fontconf} *.otf
|
|
|
469e51a |
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
|
469e51a |
|
|
|
469e51a |
%doc README.md
|
|
|
469e51a |
%license LICENSE.txt
|
|
|
469e51a |
|
|
|
469e51a |
%changelog
|
|
|
ec66e72 |
* Sat Jan 21 2017 Michael Kuhn <suraia@ikkoku.de> - 2.000-1
|
|
|
ec66e72 |
- Update to 2.000
|
|
|
ec66e72 |
|
|
|
469e51a |
* Tue Aug 30 2016 Michael Kuhn <suraia@ikkoku.de> - 1.017-2
|
|
|
469e51a |
- Fix AppStream metadata
|
|
|
469e51a |
- Validate AppStream metadata during check
|
|
|
469e51a |
|
|
|
469e51a |
* Tue Jan 26 2016 Michael Kuhn <suraia@ikkoku.de> - 1.017-1
|
|
|
469e51a |
- Initial package.
|