2 # - fonts-TTF-Dustismo_Sans package:
3 # /usr/share/fonts/TTF/Dustismo_Sans.ttf
6 %bcond_without tests # do not perform "make test"
10 Summary: GD::Text - text utilities for use with GD
11 Summary(pl.UTF-8): GD::Text - narzędzia do obróbki tekstu do użycia z GD
12 Name: perl-GD-TextUtil
16 License: GPL v1+ or Artistic
17 Group: Development/Languages/Perl
18 Source0: http://www.cpan.org/modules/by-module/GD/%{pdir}%{pnam}-%{version}.tar.gz
19 # Source0-md5: 941ad06eadc86b47f3a32da405665c41
20 Patch0: %{name}-defaultttfdir.patch
21 URL: http://search.cpan.org/dist/GDTextUtil/
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: perl-GD
24 BuildRequires: rpm-perlprov >= 4.1-13
25 Requires(post,postun): fontpostinst
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module provides a font-independent way of dealing with text in
31 GD, for use with the GD::Text::* modules and GD::Graph.
33 %description -l pl.UTF-8
34 Moduł ten udostępnia niezależne od fontu narzędzia do obróbki tekstu
35 w GD. Do użytku z modułami GD::Text::* i GD::Graph.
38 %setup -q -n %{pdir}%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_fontsdir}/TTF}
52 DESTDIR=$RPM_BUILD_ROOT
54 cp -p demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 cp -p *.ttf $RPM_BUILD_ROOT%{_fontsdir}/TTF
58 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/GD/Text.pm
70 %{perl_vendorlib}/GD/Text
71 %{_mandir}/man3/GD::Text*.3pm*
72 %{_examplesdir}/%{name}-%{version}
73 %{_fontsdir}/TTF/Dustismo_Sans.ttf