diff --git a/.gitignore b/.gitignore index df0d5f9..02f9a35 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ /SourceSansPro_FontsOnly-1.034.zip /SourceSansPro_FontsOnly-1.050.zip /adobe-source-sans-pro-fonts-2.020.tar.gz +/adobe-source-sans-pro-fonts-2.045.tar.gz +/adobe-source-sans-pro-fonts-3.006.tar.gz +/source-sans-pro-3.006R.zip diff --git a/adobe-source-sans-pro-fonts.spec b/adobe-source-sans-pro-fonts.spec index feb724e..fa627cc 100644 --- a/adobe-source-sans-pro-fonts.spec +++ b/adobe-source-sans-pro-fonts.spec @@ -1,20 +1,15 @@ %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: 4%{?dist} +Version: 3.006 +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 +URL: https://github.com/adobe-fonts/%{fontname}/ +# Can't build fonts without nonfree softwares +Source0: %{url}/releases/download/%{version}R/%{fontname}-%{version}R.zip Source1: %{name}-fontconfig.conf Source2: %{fontname}.metainfo.xml @@ -29,44 +24,37 @@ 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 +%autosetup -n %{fontname}-%{version}R %build %install -install -m 0755 -d %{buildroot}%{_fontdir} -install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir} +install -dm 0755 $RPM_BUILD_ROOT%{_fontdir} +install -pm 0644 OTF/*.otf $RPM_BUILD_ROOT%{_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} +install -dm 0755 $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_fontconfig_confdir} +install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf} # Add AppStream metadata -install -Dm 0644 -p %{SOURCE2} \ - %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml +install -Dpm 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata/%{fontname}.metainfo.xml %_font_pkg -f %{fontconf} *.otf %doc README.md -%license LICENSE.txt +%license LICENSE.md %{_datadir}/appdata/%{fontname}.metainfo.xml %changelog +* Wed Dec 18 2019 Mohamed El Morabity - 3.006-1 +- Update to 3.006 + +* Fri Aug 09 2019 Mohamed El Morabity - 2.045-1 +- Update to 2.0.45 + * Thu Jan 31 2019 Fedora Release Engineering - 2.020-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index ee88340..a1f75e3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (adobe-source-sans-pro-fonts-2.020.tar.gz) = 877b47b203d6f8ee71e60ba612a25b5a1b707205b0a4aaf02cfe2c806466acc6d393c93ad2fd6e76d761150b2594fcd6abce7b3c0415b5b915b06c6c143b6b53 +SHA512 (source-sans-pro-3.006R.zip) = f6351e7b842204ff07bbbf0c6ea1e7767d5adc4e0102435c3efab5ee1f14f7c6a6efe8c475fa286e1c82399e13bad11d75430a10338f41e6ffb9b52939cb9d25