From 7224a998b911cbf7f073adb7172ba550ce9e3939 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 20 Feb 2024 13:38:33 +0300 Subject: [PATCH] [INF-951] adapted the spec file for 8 --- ...quoteapps-courier-prime-fonts.metainfo.xml | 132 ++++++++++++++++++ SPECS/courier-prime-fonts.spec | 86 ++++++++---- 2 files changed, 187 insertions(+), 31 deletions(-) create mode 100644 SOURCES/org.fedoraproject.quoteunquoteapps-courier-prime-fonts.metainfo.xml diff --git a/SOURCES/org.fedoraproject.quoteunquoteapps-courier-prime-fonts.metainfo.xml b/SOURCES/org.fedoraproject.quoteunquoteapps-courier-prime-fonts.metainfo.xml new file mode 100644 index 0000000..f628875 --- /dev/null +++ b/SOURCES/org.fedoraproject.quoteunquoteapps-courier-prime-fonts.metainfo.xml @@ -0,0 +1,132 @@ + + + + org.fedoraproject.quoteunquoteapps-courier-prime-fonts + MIT + OFL + QuoteUnquoteApps Courier Prime + + +

+
+ fonts@lists.fedoraproject.org + https://quoteunquoteapps.com/courierprime/ + + + + + Courier Prime Bold Italic + Courier Prime Bold + Courier Prime Italic + Courier Prime Regular + + + aa + an + ay + bi + br + bs + ca + ch + co + crh + cs + csb + cy + da + de + en + eo + es + et + eu + fi + fil + fj + fo + fr + fur + fy + gd + gl + gv + ho + hr + hsb + ht + hu + ia + id + ie + io + is + it + jv + ki + kj + ku-tr + kwm + la + lb + lg + li + lt + lv + mg + mh + ms + mt + na + nb + nds + ng + nl + nn + no + nr + nso + ny + oc + om + pap-an + pap-aw + pl + pt + rm + rn + ro + rw + sc + se + sg + sk + sl + sma + smj + smn + sn + so + sq + ss + st + su + sv + sw + tk + tl + tn + tr + ts + uz + vo + vot + wa + wen + wo + xh + yap + za + zu + +
diff --git a/SPECS/courier-prime-fonts.spec b/SPECS/courier-prime-fonts.spec index df74a8a..cdee39c 100644 --- a/SPECS/courier-prime-fonts.spec +++ b/SPECS/courier-prime-fonts.spec @@ -1,41 +1,46 @@ -# SPDX-License-Identifier: MIT -%global forgeurl https://github.com/quoteunquoteapps/CourierPrime -%global commit 7fd585a2dd4c1612c79b3308e300923d1c13df93 -%forgemeta +# Fix text files produced on other systems. Arguments +# -e source OS encoding +# -n do not recode files, only adjust folding and end of lines +%define linuxtext(e:n) %{expand: +for textfile in %* ; do + %{!-n: + iconv -f %{-e*}%{!-e:$(uchardet "${textfile}")} -t UTF-8 -o "${textfile}.tmp" "${textfile}" + touch -r "${textfile}" "${textfile}.tmp" + mv "${textfile}.tmp" "${textfile}" + } + fold -s "${textfile}" > "${textfile}.tmp" + LANG=C LC_ALL=C sed -e 's/\\r$// ; 1 s/^\\xef\\xbb\\xbf//' -i "${textfile}.tmp" + touch -r "${textfile}" "${textfile}.tmp" + mv "${textfile}.tmp" "${textfile}" + chmod 0644 "${textfile}" +done +} + +%define debug_package %{nil} Version: 3.018 -Release: 1%{?dist} +Release: 1%{?dist}.inferit +Name: quoteunquoteapps-courier-prime-fonts URL: https://quoteunquoteapps.com/courierprime/ +License: OFL +Summary: A free, improved, classical monospaced typeface +Source0: CourierPrime-7fd585a2dd4c1612c79b3308e300923d1c13df93.tar.gz +Source10: 61-%{name}.conf +Source11: org.fedoraproject.%{name}.metainfo.xml + +BuildRequires: uchardet -%global foundry QuoteUnquoteApps -%global fontlicense OFL -%global fontlicenses OFL.txt -%global fontdocs *txt *md -%global fontdocsex %{fontlicenses} requirements.txt - -%global fontfamily Courier Prime -%global fontsummary A free, improved, classical monospaced typeface -%global fonts fonts/ttf/*ttf -%global fontconfs %{SOURCE10} -%global fontpkgheader %{expand: Provides: courier-prime-fonts Obsoletes: courier-prime-fonts < %{version}-%{release} -} -%global fontdescription %{expand: + +%description Courier Prime is a new take on IBM's Courier which was designed in 1956 by Howard Kettler. - It is a monospaced family, designed specifically for screenplays. Overall the family is more refined than its predecessor. The serifs are crisper and less rounded. The counters are subtly wider. The bold weight is a bit darker and the italics are more cursive.} - -Source0: %{forgesource} -Source10: 61-%{fontpkgname}.conf - -%fontpkg - %package doc Summary: Optional documentation files of %{name} BuildArch: noarch @@ -44,24 +49,43 @@ This package provides optional documentation files shippend with %{name}. %prep -%forgesetup +%setup -n CourierPrime-7fd585a2dd4c1612c79b3308e300923d1c13df93 %linuxtext *.txt %build -%fontbuild +# nothing to do here %install -%fontinstall +install -m 0755 -d %{buildroot}/etc/fonts/conf.d/ +install -m 0755 -d %{buildroot}/usr/share/fontconfig/conf.avail/ +install -m 0644 -t %{buildroot}/usr/share/fontconfig/conf.avail/ %{SOURCE10} +ln -sf ../../../usr/share/fontconfig/conf.avail/61-%{name}.conf %{buildroot}/etc/fonts/conf.d/61-%{name}.conf -%check -%fontcheck +install -m 0755 -d %{buildroot}/usr/share/doc/%{name}/ +install -m 0755 -d %{buildroot}/usr/share/fonts/%{name}/ +install -m 0644 -t %{buildroot}/usr/share/doc/%{name}/ AUTHORS.txt CONTRIBUTING.md README.md +install -m 0644 -t %{buildroot}/usr/share/fonts/%{name}/ fonts/ttf/CourierPrime-Bold.ttf fonts/ttf/CourierPrime-BoldItalic.ttf fonts/ttf/CourierPrime-Italic.ttf fonts/ttf/CourierPrime-Regular.ttf -%fontfiles +install -m 0755 -d %{buildroot}/usr/share/metainfo/ +install -m 0644 -t %{buildroot}/usr/share/metainfo/ %{SOURCE11} + +install -m 0755 -d %{buildroot}/usr/share/licenses/%{name}-doc/ +install -m 0644 -t %{buildroot}/usr/share/licenses/%{name}-doc/ OFL.txt + +%files +%{_sysconfdir}/fonts/conf.d/61-%{name}.conf +%{_docdir}/%{name}/* +%{_datadir}/fontconfig/conf.avail/61-%{name}.conf +%{_datadir}/fonts/%{name}/*.ttf +%{_datadir}/metainfo/org.fedoraproject.%{name}.metainfo.xml %files doc %defattr(644, root, root, 0755) %license OFL.txt %changelog +* Mon Feb 19 2024 Sergey Cherevko - 3.018-1.inferit +- Rebuilt for MSVSphere 8.9 + * Mon Nov 02 2020 Dawid Zych - 3.018-1 - Initial packaging