1
0
courier-prime-fonts/courier-prime-fonts.spec

74 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package courier-prime-fonts
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define fontname courier-prime
Name: courier-prime-fonts
Version: 1.203
Release: 0
Summary: Monospace font similar to Courier
License: OFL-1.1
Group: System/X11/Fonts
Url: http://quoteunquoteapps.com/courierprime/
Source0: %{fontname}.zip
BuildRequires: fontpackages-devel
BuildRequires: unzip
%reconfigure_fonts_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Courier Prime is a Courier-like monospace fonts for screenplay (and other use cases).
It is optimized for 12 point size and matches the metrics of Courier.
Designer: Alan Dague-Greene for John August and Quote-Unquote Apps
%prep
%setup -T -c %{name} -n %{name}
unzip -j %{SOURCE0}
[ -e __MACOSX ] && rm -rf __MACOSX/
chmod 644 *.txt *.ttf
# Replace spaces in filenames
for i in Courier*.ttf; do
mv -vi "$i" "${i// /_}"
done
# Remove DOS line endings:
for i in *.txt; do
sed -i 's/.$//' "$i"
done
%build
# -- nop --
%install
mkdir -p %{buildroot}%{_ttfontsdir}/
install -c -m 644 *.ttf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets
%files
%defattr(-, root,root)
%doc *.txt
%{_ttfontsdir}
%changelog