perlftlib-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. %define name perlftlib
  2. %define ver 1.2
  3. %define rel 0vl6
  4. %define prefix /usr
  5. %define jcode_ver 2.13
  6. %define perl_vendorarch %(perl -MConfig -e 'print $Config{vendorarch}')
  7. Summary: Perlftlib is a tool to make fonts.dir.
  8. Summary(ja): Perlftlib は、fonts.dir を作成するツールです。
  9. Name: %name
  10. Version: %ver
  11. Release: %rel
  12. License: GPL
  13. Group: User Interface/X
  14. BuildRequires: freetype-devel perl
  15. URL: http://www.io.com/~kazushi/xtt/
  16. Source: %{name}-%{ver}.tar.bz2
  17. Source1: README.euc
  18. Source2: jcode.pl-%{jcode_ver}
  19. Patch0: %{name}-%{version}-conf.patch.bz2
  20. Patch1: %{name}-%{version}-nojcode.patch.bz2
  21. Patch2: perlftlib-1.2-perl_pollute.patch.bz2
  22. Requires: perl
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. %description
  25. Perlftlib is a tool to make fonts.dir from ttc file.
  26. %description -l ja
  27. Perlftlib は、ttc ファイルから fonts.dir を作成するツールです。
  28. jcode.plも同梱しています。
  29. /usr/share/doc/perlftlib-1.2/README.eucに、使用方法等を書いていますので
  30. 必ず読んで下さい。
  31. %prep
  32. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  33. %setup -q
  34. %patch0 -p1
  35. %patch1 -p1
  36. %patch2 -p1
  37. %build
  38. (cd FreeType ; %{__perl} Makefile.PL INSTALLDIRS=vendor)
  39. make OPTIMIZE="$RPM_OPT_FLAGS"
  40. %install
  41. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  42. make PREFIX=$RPM_BUILD_ROOT%{_prefix} \
  43. PERLLIBDIR=$RPM_BUILD_ROOT%{perl_vendorarch} \
  44. MFLAGS='DESTDIR=%{buildroot}' install
  45. mkdir -p $RPM_BUILD_ROOT/usr/X11R6/man/man3
  46. #cp FreeTypeWrapper.pm $RPM_BUILD_ROOT%{perl_vendorarch}
  47. cp -p FreeType/blib/man3/FreeType.3pm $RPM_BUILD_ROOT/usr/X11R6/man/man3/
  48. cp -p %{_sourcedir}/README.euc .
  49. cp -p %{_sourcedir}/jcode.pl-%{jcode_ver} $RPM_BUILD_ROOT%{perl_vendorarch}/jcode.pl
  50. %clean
  51. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  52. %files
  53. %defattr(-,root,root,0755)
  54. %doc README.euc
  55. /usr/X11R6/bin/*
  56. /usr/X11R6/man/man3/FreeType.3*
  57. %{_mandir}/man3/FreeType.3*
  58. %{perl_vendorarch}/FreeType*
  59. %{perl_vendorarch}/auto/FreeType/*
  60. %{perl_vendorarch}/jcode.pl
  61. %changelog
  62. * Sat Jul 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwa.com> 1.2-0vl6
  63. - rebuilt with perl 5.8.6
  64. - installed perl modules to vendor_perl dir
  65. - changed Group to User Interface/X
  66. * Mon Nov 29 2004 IWAI, Masaharu <iwai@alib.jp> 1.2-0vl5
  67. - build with perl 5.8.2
  68. - using MFLAGS flag in %%install section
  69. * Thu Mar 27 2003 Satoshi MACHINO <machino@vinelinux.org> 1.2-0vl4
  70. - Fixed typo in description
  71. * Thu Mar 27 2003 Satoshi MACHINO <machino@vinelinux.org> 1.2-0vl3
  72. - New spec file
  73. - imported patches from 1.2-16mdk
  74. * Wed Apr 25 2001 net_hal <net_hal@cwa.bai.ne.jp>
  75. - jcode.pl Ver up
  76. * Wed Feb 14 2001 net_hal <net_hal@cwa.bai.ne.jp>
  77. - first build