From 746b0e68fb7e20f8f3c2e917f95ec771c2623fa3 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Oct 17 2017 20:07:46 +0000 Subject: - Update to 2.020 - Update upstream URL - Comply with latest packaging guidelines --- diff --git a/.gitignore b/.gitignore index a961d6c..df0d5f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /SourceSansPro_FontsOnly-1.033.zip /SourceSansPro_FontsOnly-1.034.zip /SourceSansPro_FontsOnly-1.050.zip +/adobe-source-sans-pro-fonts-2.020.tar.gz diff --git a/adobe-source-sans-pro-fonts.spec b/adobe-source-sans-pro-fonts.spec index a516aac..5f5d003 100644 --- a/adobe-source-sans-pro-fonts.spec +++ b/adobe-source-sans-pro-fonts.spec @@ -1,35 +1,48 @@ %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: 1.050 -Release: 8%{?dist} +Version: %{roman_version} +Release: 1%{?dist} Summary: A set of OpenType fonts designed for user interfaces License: OFL -URL: http://sourceforge.net/projects/sourcesans.adobe/ - -#unable to build from source : source format is unbuldable with free software -Source0: http://downloads.sourceforge.net/sourcesans.adobe/SourceSansPro_FontsOnly-%{version}.zip +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 -BuildArch: noarch 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 +user interface (UI) environments, as well as in text setting for screen and print. + %prep -%setup -q -n SourceSansPro_FontsOnly-%{version} +%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 -sed -i "s|\r||" LICENSE.txt %build + %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir} @@ -46,13 +59,19 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} \ 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 -%doc *.txt SourceSansProReadMe.html - %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 diff --git a/sources b/sources index be1a8b5..ee88340 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fb09802ab1ce200da18dc6f7ed5671b0 SourceSansPro_FontsOnly-1.050.zip +SHA512 (adobe-source-sans-pro-fonts-2.020.tar.gz) = 877b47b203d6f8ee71e60ba612a25b5a1b707205b0a4aaf02cfe2c806466acc6d393c93ad2fd6e76d761150b2594fcd6abce7b3c0415b5b915b06c6c143b6b53