diff --git a/.gitignore b/.gitignore index df0d5f9..5cba489 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,11 @@ /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 +/source-sans-3v028R.zip +/source-sans-3.042R.zip +/OTF-source-sans-3.046R.zip +/OTF-source-sans-3.052R.zip +/adobe-source-sans-pro-fonts-3.052.tar.gz diff --git a/63-adobe-source-sans-pro-fonts.conf b/63-adobe-source-sans-pro-fonts.conf new file mode 100644 index 0000000..77e91eb --- /dev/null +++ b/63-adobe-source-sans-pro-fonts.conf @@ -0,0 +1,48 @@ + + + + + + Source Sans 3 + + sans-serif + + + + sans-serif + + Source Sans 3 + + + + + Source Sans Pro + + Source Sans 3 + + + + Source Sans Pro ExtraLight + + Source Sans 3 ExtraLight + + + + Source Sans Pro Light + + Source Sans 3 Light + + + + Source Sans Pro SemiBold + + Source Sans 3 SemiBold + + + + Source Sans Pro Black + + Source Sans 3 Black + + + diff --git a/adobe-source-sans-pro-fonts-fontconfig.conf b/adobe-source-sans-pro-fonts-fontconfig.conf deleted file mode 100644 index 0432c78..0000000 --- a/adobe-source-sans-pro-fonts-fontconfig.conf +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 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 index b02d242..63ef8d7 100644 --- a/adobe-source-sans-pro-fonts.spec +++ b/adobe-source-sans-pro-fonts.spec @@ -1,72 +1,120 @@ -%global fontname source-sans-pro -%global fontconf 63-%{fontname}.conf +Version: 3.052 +Release: 8%{?dist} +URL: https://github.com/adobe-fonts/source-sans -%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}) +%global foundry adobe +%global fontlicense OFL-1.1 +%global fontlicenses LICENSE.md +%global fontdocs README.md +%global fontdocsex %{fontlicenses} -Name: adobe-source-sans-pro-fonts -Version: %{roman_version} -Release: 3%{?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 +%global fontfamily Source Sans Pro +%global fontsummary A set of OpenType fonts designed for user interfaces +%global fonts OTF/*.otf +%global fontconfs %{SOURCE10} +%global fontdescription %{expand: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. +print.} + +Source0: %{url}/archive/%{version}R/%{fontpkgname}-%{version}.tar.gz +# Adjust as necessary. Keeping the filename in sync with the package name is a good idea. +# See the fontconfig templates in fonts-rpm-templates for information on how to +# write good fontconfig files and choose the correct priority [number]. +Source10: 63-%{fontpkgname}.conf + +%fontpkg %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 source-sans-%{version}R %build +%fontbuild %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 +%fontinstall -%_font_pkg -f %{fontconf} *.otf -%doc README.md -%license LICENSE.txt -%{_datadir}/appdata/%{fontname}.metainfo.xml +%check +%fontcheck + + +%fontfiles %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 3.052-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 3.052-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sat Jan 25 2025 Mohamed El Morabity - 3.052-6 +- Fix FTBFS thanks to @mavit (RHBZ #2339874) + +* Thu Jan 16 2025 Fedora Release Engineering - 3.052-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 3.052-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 3.052-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 3.052-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Sep 24 2023 Mohamed El Morabity - 3.052-1 +- Update to 3.052 + +* Wed Jul 19 2023 Fedora Release Engineering - 3.046-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jan 18 2023 Fedora Release Engineering - 3.046-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 3.046-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 3.046-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 3.046-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jul 15 2021 Mohamed El Morabity - 3.046-1 +- Update to 3.046 + +* Thu Jul 01 2021 Mohamed El Morabity - 3.042-1 +- Update to 3.042 + +* Mon Jan 25 2021 Fedora Release Engineering - 3.028-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Sep 08 2020 Mohamed El Morabity - 3.028-1 +- Migrate to new font packaging scheme +- Update to 3.028 + +* Mon Jul 27 2020 Fedora Release Engineering - 3.006-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 3.006-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* 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 + +* Wed Jul 24 2019 Fedora Release Engineering - 2.020-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 2.020-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Thu Jul 12 2018 Fedora Release Engineering - 2.020-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild @@ -116,4 +164,3 @@ install -Dm 0644 -p %{SOURCE2} \ * 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 deleted file mode 100644 index 0a6b0dd..0000000 --- a/source-sans-pro.metainfo.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - source-sans-pro - CC0-1.0 - Source Sans - A set of fonts designed for user interfaces - diff --git a/sources b/sources index ee88340..ff5d643 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (adobe-source-sans-pro-fonts-2.020.tar.gz) = 877b47b203d6f8ee71e60ba612a25b5a1b707205b0a4aaf02cfe2c806466acc6d393c93ad2fd6e76d761150b2594fcd6abce7b3c0415b5b915b06c6c143b6b53 +SHA512 (adobe-source-sans-pro-fonts-3.052.tar.gz) = 8e5a67cfebf6b7cea6505dc2d8e7600909719ec88b4553d1926b644ee2494304e60c75fd6e4bdb0450846985f442a1f7b4c1c147d428edf960b37a3d216c0b62