diff --git a/courier-code.zip b/courier-code.zip new file mode 100644 index 0000000..e72bfd4 --- /dev/null +++ b/courier-code.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c400b6addeddef7c26a9943f847a8584c83d8bb775cd35da2dcd41c6ad98d827 +size 74040 diff --git a/courier-prime-fonts.changes b/courier-prime-fonts.changes index 0f27777..d8d9a80 100644 --- a/courier-prime-fonts.changes +++ b/courier-prime-fonts.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Sep 18 19:50:19 UTC 2016 - guoyunhebrave@gmail.com + +- Add Courier Prime Sans and Courier Prime Code fonts + ------------------------------------------------------------------- Tue Feb 5 09:57:34 UTC 2013 - toms@opensuse.org diff --git a/courier-prime-fonts.spec b/courier-prime-fonts.spec index 4eeb299..4a7a501 100644 --- a/courier-prime-fonts.spec +++ b/courier-prime-fonts.spec @@ -16,8 +16,6 @@ # -%define fontname courier-prime - Name: courier-prime-fonts Version: 1.203 Release: 0 @@ -25,7 +23,9 @@ Summary: Monospace font similar to Courier License: OFL-1.1 Group: System/X11/Fonts Url: http://quoteunquoteapps.com/courierprime/ -Source0: %{fontname}.zip +Source0: courier-prime.zip +Source1: courier-sans.zip +Source2: courier-code.zip BuildRequires: fontpackages-devel BuildRequires: unzip %reconfigure_fonts_prereq @@ -39,22 +39,21 @@ 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/ +%setup -c +%setup -T -D -a 1 +%setup -T -D -a 2 -chmod 644 *.txt *.ttf +mv Courier\ Prime/*.ttf ./ +mv Courier\ Prime/LICENSE/OFL.txt LICENSE +mv Courier\ Prime/Read\ me.txt README +mv CourierPrimeSans-master/ttf/*.ttf ./ +mv ttf/*.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 +for file in *.ttf; do mv "$file" `echo $file | tr ' ' '_'` ; done +# Fix DOS line endings +sed -i 's/\r//g' LICENSE README %build # -- nop -- @@ -67,7 +66,7 @@ install -c -m 644 *.ttf %{buildroot}%{_ttfontsdir} %files %defattr(-, root,root) -%doc *.txt +%doc LICENSE README %{_ttfontsdir} %changelog diff --git a/courier-sans.zip b/courier-sans.zip new file mode 100644 index 0000000..0dcd395 --- /dev/null +++ b/courier-sans.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:754b3937340f5522ccf96be7832efbd809ef93f373d51b12919adbd9c0a468d7 +size 1289309