freefonts-vl.spec 1.9 KB

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