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