[521] | 1 | %define fontdir %{_datadir}/fonts/%{name}/ |
---|
| 2 | |
---|
| 3 | Summary: freefonts - collection of free ATM fonts |
---|
| 4 | Name: freefonts |
---|
| 5 | Version: 0.10 |
---|
| 6 | Release: 5%{?_dist_release} |
---|
| 7 | Source: ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz |
---|
| 8 | License: distributable |
---|
| 9 | Group: User Interface/X |
---|
| 10 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | BuildArch: noarch |
---|
| 12 | |
---|
| 13 | Requires: chkfontpath |
---|
| 14 | |
---|
| 15 | %description |
---|
| 16 | This is a collection of 79 freely available fonts. All of them were found in |
---|
| 17 | the CICA archives for Windows. |
---|
| 18 | |
---|
| 19 | Some of them are missing special characters, some only contain capitals, |
---|
| 20 | some contain special alphabets. Be careful and check! |
---|
| 21 | |
---|
| 22 | The collection was motivated by the lack of good fonts for Linux especially X11 |
---|
| 23 | and ghostscript. Scaled bitmaps look really ugly! |
---|
| 24 | |
---|
| 25 | #%description -l ja |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup -n freefont |
---|
| 29 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | |
---|
| 33 | %install |
---|
| 34 | |
---|
| 35 | mkdir -p ${RPM_BUILD_ROOT}/%{fontdir} |
---|
| 36 | cp *.pfb fonts.dir ${RPM_BUILD_ROOT}/%{fontdir} |
---|
| 37 | |
---|
| 38 | %clean |
---|
| 39 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 40 | |
---|
| 41 | %post |
---|
| 42 | /usr/sbin/chkfontpath -q -a %{fontdir} |
---|
| 43 | |
---|
| 44 | %postun |
---|
| 45 | if [ "$1" = "0" ]; then |
---|
| 46 | [ -f %{fontdir}/fonts.dir ] && exit 0 |
---|
| 47 | /usr/sbin/chkfontpath -q -r %{fontdir} |
---|
| 48 | fi |
---|
| 49 | |
---|
| 50 | %files |
---|
| 51 | %defattr(-, root, root) |
---|
| 52 | %{fontdir} |
---|
| 53 | |
---|
| 54 | %doc Fontmap README *.license |
---|
| 55 | |
---|
| 56 | %changelog |
---|
| 57 | * Thu Jul 16 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10-5 |
---|
| 58 | - added Requires: chkfontpath |
---|
| 59 | |
---|
| 60 | * Tue Jul 1 2008 KATO Masashi <mkato@par.odn.ne.jp> 0.10-4 |
---|
| 61 | - applied new versioning policy |
---|
| 62 | - build for xorg-x11-7.3 |
---|
| 63 | - change font location to %{_datadir}/fonts/%{name} |
---|
| 64 | - changed Source URL |
---|
| 65 | |
---|
| 66 | * Sat Jul 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> |
---|
| 67 | - changed Group to User Interface/X |
---|
| 68 | - s/Copyright/License/ |
---|
| 69 | - used more macros |
---|
| 70 | |
---|
| 71 | * Mon Mar 6 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 72 | - added chkdfontpath |
---|
| 73 | - rebuild for Vine Linux 2.0 |
---|
| 74 | |
---|
| 75 | * Mon Jul 5 1999 Naoki Kawakami <knao@ps.namco.co.jp> |
---|
| 76 | - added fonts.dir |
---|
| 77 | - i386 -> noarch |
---|
| 78 | |
---|
| 79 | * Wed Jun 30 1999 Naoki Kawakami <knao@ps.namco.co.jp> |
---|
| 80 | - first release |
---|