perl-GDTextUtil-vl.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
  2. %define fontdir %{_datadir}/fonts/perl
  3. Name: perl-GDTextUtil
  4. Version: 0.86
  5. Release: 6%{?_dist_release}
  6. Summary: Text utilities for use with GD
  7. Group: Development/Libraries
  8. License: GPL or Artistic
  9. URL: http://search.cpan.org/dist/GDTextUtil/
  10. Source0: http://www.cpan.org/authors/id/M/MV/MVERB/GDTextUtil-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: perl >= 5.6.1, perl-GD
  14. Requires: perl >= 5.6.1, perl-GD
  15. Requires(post): fontconfig
  16. %description
  17. This package provides three modules that make it possible to work with
  18. internal GD fonts as well as TrueType fonts, without having to worry
  19. about different interface functions to call. Apart from an abstract
  20. interface to all font types and strings for GD, this library also
  21. provides some utility in aligning and wrapping your string.
  22. %prep
  23. %setup -q -n GDTextUtil-%{version}
  24. %build
  25. perl Makefile.PL INSTALLDIRS=vendor
  26. make %{?_smp_mflags}
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  30. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  31. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  32. chmod -R u+w $RPM_BUILD_ROOT/*
  33. # Install the TrueType font
  34. install -d $RPM_BUILD_ROOT%{fontdir}
  35. install -p -m 644 Dustismo_Sans.ttf $RPM_BUILD_ROOT%{fontdir}/
  36. touch $RPM_BUILD_ROOT%{fontdir}/fonts.cache-1
  37. %check || :
  38. make test
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %post
  42. fc-cache -f %{fontdir} || :
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc Changes README Dustismo.LICENSE demo/
  46. %{perl_vendorlib}/GD/*
  47. %{_mandir}/man3/*.3*
  48. %dir %{fontdir}
  49. %{fontdir}/*.ttf
  50. %ghost %{fontdir}/fonts.cache-1
  51. %changelog
  52. * Wed Jun 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.86-6
  53. - applied new versioning policy
  54. - rebuilt with perl-5.10.0
  55. * Sun Sep 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.86-5vl2
  56. - changed Group to Development/Libraries
  57. * Sat Sep 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.86-5vl1
  58. - rebuild for Vine
  59. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  60. - rebuilt
  61. * Sun Jul 11 2004 Jose Pedro Oliveira <jpo@di.uminho.pt> - 0:0.86-0.fdr.4
  62. - Unowned directory: %%{perl_vendorlib}/GD (see bug 1800 comment #1).
  63. * Tue Jul 6 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.86-0.fdr.3
  64. - Install the Dustismo_Sans TrueType font (bug 1757).
  65. * Wed Jun 16 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.86-0.fdr.2
  66. - Bring up to date with current fedora.us perl spec template.
  67. * Sun Oct 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.86-0.fdr.1
  68. - First build.