diff --git a/.gitignore b/.gitignore index e69de29..bd1cbbe 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/source-sans-3v028R.zip diff --git a/adobe-source-sans-pro-fonts-fontconfig.conf b/adobe-source-sans-pro-fonts-fontconfig.conf new file mode 100644 index 0000000..77e91eb --- /dev/null +++ b/adobe-source-sans-pro-fonts-fontconfig.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.spec b/adobe-source-sans-pro-fonts.spec new file mode 100644 index 0000000..d90dc40 --- /dev/null +++ b/adobe-source-sans-pro-fonts.spec @@ -0,0 +1,55 @@ +%global fontname source-sans-pro +%global fontconf 63-%{fontname}.conf + +%global major_version 3 +%global minor_version 028 + +Name: adobe-source-sans-pro-fonts +Version: %{major_version}.%{minor_version} +Release: 1%{?dist} +Summary: A set of OpenType fonts designed for user interfaces + +License: OFL +URL: https://github.com/adobe-fonts/%{fontname} +Source0: %{url}/releases/download/%{version}R/source-sans-%{major_version}v%{minor_version}R.zip +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 +user interface (UI) environments, as well as in text setting for screen and +print. + + +%prep +%autosetup -c + + +%build + + +%install +install -dm 0755 $RPM_BUILD_ROOT%{_fontdir} +install -pm 0644 OTF/*.otf $RPM_BUILD_ROOT%{_fontdir} + +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 -Dpm 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata/%{fontname}.metainfo.xml + + +%_font_pkg -f %{fontconf} *.otf +%doc README.md +%license LICENSE.md +%{_datadir}/appdata/%{fontname}.metainfo.xml + + +%changelog +* Fri Dec 25 2020 Mohamed El Morabity - 3.028-1 +- Initial release for EPEL diff --git a/source-sans-pro.metainfo.xml b/source-sans-pro.metainfo.xml new file mode 100644 index 0000000..70835e9 --- /dev/null +++ b/source-sans-pro.metainfo.xml @@ -0,0 +1,7 @@ + + + source-sans-pro + CC0-1.0 + Source Sans 3 + A set of fonts designed for user interfaces + diff --git a/sources b/sources index e69de29..801c744 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (source-sans-3v028R.zip) = 4aa01b9b56b7449118f171ae57a43309fb6ff7bb8e9c40643dc15b1aa529d39ecf496e9e8be60ef0cdc16762cfaf5b28b6ddadf818ddaeb3cceb8bb5d55f1891