From f7b94eeaa041fb89f9d4df1b0d052fce46ebd256 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 17:39:55 +0300 Subject: [PATCH] import open-sans-fonts-1.10-23.el10 --- .gitignore | 1 + .open-sans-fonts.metadata | 1 + SOURCES/getopensans.sh | 16 +++ SOURCES/open-sans-fonts-fontconfig.conf | 16 +++ SPECS/open-sans-fonts.spec | 124 ++++++++++++++++++++++++ 5 files changed, 158 insertions(+) create mode 100644 .gitignore create mode 100644 .open-sans-fonts.metadata create mode 100755 SOURCES/getopensans.sh create mode 100644 SOURCES/open-sans-fonts-fontconfig.conf create mode 100644 SPECS/open-sans-fonts.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37e5fb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/open-sans-fonts-1.10.tar.xz diff --git a/.open-sans-fonts.metadata b/.open-sans-fonts.metadata new file mode 100644 index 0000000..040e6c1 --- /dev/null +++ b/.open-sans-fonts.metadata @@ -0,0 +1 @@ +b52887454ba7d7f7392cbbeec79b13dbde51468d SOURCES/open-sans-fonts-1.10.tar.xz diff --git a/SOURCES/getopensans.sh b/SOURCES/getopensans.sh new file mode 100755 index 0000000..3bf1a69 --- /dev/null +++ b/SOURCES/getopensans.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Get upstream zip and make source tar.gz + +ARCHIVE="open-sans-fonts-1.10" +TMPDIR=$(mktemp -d --tmpdir=/var/tmp getopensans-XXXXXXXXXX) +[ $? != 0 ] && exit 1 +umask 022 +pushd "$TMPDIR" + +wget -N -O $ARCHIVE.zip http://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ +unzip $ARCHIVE.zip -d $ARCHIVE +tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE + +popd +mv "$TMPDIR/$ARCHIVE.tar.xz" . +rm -fr "$TMPDIR" \ No newline at end of file diff --git a/SOURCES/open-sans-fonts-fontconfig.conf b/SOURCES/open-sans-fonts-fontconfig.conf new file mode 100644 index 0000000..7a40a6f --- /dev/null +++ b/SOURCES/open-sans-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + Open Sans + + + + Open Sans + + sans-serif + + + diff --git a/SPECS/open-sans-fonts.spec b/SPECS/open-sans-fonts.spec new file mode 100644 index 0000000..55796d9 --- /dev/null +++ b/SPECS/open-sans-fonts.spec @@ -0,0 +1,124 @@ +%global fontname open-sans +%global fontconf 60-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.10 +Release: 23%{?dist} +Summary: Open Sans is a humanist sans-serif typeface designed by Steve Matteson + +License: Apache-2.0 +URL: http://www.google.com/fonts/specimen/Open+Sans + +# Since the font doesn't have clear upstream, the source zip package is +# downloaded from Google Fonts. It is then converted to tar.gz. All by +# getopensans.sh. +Source0: %{name}-%{version}.tar.xz +Source1: %{name}-fontconfig.conf +Source2: getopensans.sh + +BuildArch: noarch +BuildRequires: fontpackages-devel +BuildRequires: ttembed +Requires: fontpackages-filesystem + +%description +Open Sans is a humanist sans serif typeface designed by Steve Matteson, Type +Director of Ascender Corp. This version contains the complete 897 character +set, which includes the standard ISO Latin 1, Latin CE, Greek and Cyrillic +character sets. Open Sans was designed with an upright stress, open forms and +a neutral, yet friendly appearance. It was optimized for print, web, and mobile +interfaces, and has excellent legibility characteristics in its letter forms. + +%prep +%setup -q + +%build +# set Embedding permission to 'Installable' +ls *.ttf | xargs ttembed + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.ttf %{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} + +%_font_pkg -f %{fontconf} *.ttf +%doc LICENSE.txt + +%changelog +* Tue Aug 6 2024 Thomas Woerner - 1.10-23 +- Migrate to SPDX license: Apache-2.0 + Resolves: FREEIPA-9619 + +* Mon Jun 24 2024 Troy Dawson - 1.10-22 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.10-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.10-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.10-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.10-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.10-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.10-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.10-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.10-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.10-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.10-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.10-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.10-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.10-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 11 2018 Petr Vobornik - 1.10-8 +- Fix bz #1332250 Incorrect font configuration + +* Thu Feb 08 2018 Fedora Release Engineering - 1.10-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.10-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.10-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Nov 26 2013 Petr Vobornik - 1.10-1 +- initial package