You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
3.0 KiB
97 lines
3.0 KiB
# Fix text files produced on other systems. Arguments
|
|
# -e <encoding> 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}
|
|
|
|
BuildArch: noarch
|
|
|
|
Version: 3.018
|
|
Release: 1%{?dist}.1
|
|
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
|
|
Requires: fontpackages-filesystem
|
|
|
|
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 0755 -d %{buildroot}/usr/share/fonts/%{name}/
|
|
install -m 0755 -d %{buildroot}/usr/share/metainfo/
|
|
|
|
install -m 0644 -t %{buildroot}/usr/share/fontconfig/conf.avail/ %{SOURCE10}
|
|
ln -sr %{buildroot}%{_datadir}/fontconfig/conf.avail/61-%{name}.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/61-%{name}.conf
|
|
|
|
install -m 0644 fonts/ttf/*.ttf %{buildroot}/usr/share/fonts/%{name}/
|
|
|
|
install -m 0644 -t %{buildroot}/usr/share/metainfo/ %{SOURCE11}
|
|
|
|
|
|
%files
|
|
%config %{_sysconfdir}/fonts/conf.d/61-%{name}.conf
|
|
%{_datadir}/fontconfig/conf.avail/61-%{name}.conf
|
|
%{_datadir}/fonts/%{name}/*.ttf
|
|
%{_datadir}/metainfo/org.fedoraproject.%{name}.metainfo.xml
|
|
%doc AUTHORS.txt CONTRIBUTING.md README.md
|
|
%license OFL.txt
|
|
|
|
%files doc
|
|
%defattr(644, root, root, 0755)
|
|
%license OFL.txt
|
|
|
|
%changelog
|
|
* Wed Feb 21 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 3.018-1.1
|
|
- Bump version
|
|
|
|
* Tue Feb 20 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 3.018-1
|
|
- Package architecture was defined as noarch
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
* Mon Nov 02 2020 Dawid Zych <dawid.zych@yandex.com> - 3.018-1
|
|
- Initial packaging
|