# 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}.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 Provides: courier-prime-fonts Obsoletes: courier-prime-fonts < %{version}-%{release} %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.} %package doc Summary: Optional documentation files of %{name} BuildArch: noarch %description doc This package provides optional documentation files shippend with %{name}. %prep %setup -n CourierPrime-7fd585a2dd4c1612c79b3308e300923d1c13df93 %linuxtext *.txt %build # nothing to do here %install 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 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 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