]> git.pld-linux.org Git - packages/perl-GD-TextUtil.git/blob - perl-GD-TextUtil.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-GD-TextUtil.git] / perl-GD-TextUtil.spec
1 # TODO
2 # - fonts-TTF-Dustismo_Sans package:
3 #   /usr/share/fonts/TTF/Dustismo_Sans.ttf
4
5 # Conditional build:
6 %bcond_without  tests   # do not perform "make test"
7
8 %define         pdir    GD
9 %define         pnam    TextUtil
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
13 Version:        0.86
14 Release:        3
15 # same as perl
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
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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.
32
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.
36
37 %prep
38 %setup -q -n %{pdir}%{pnam}-%{version}
39 %patch0 -p1
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_fontsdir}/TTF}
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 cp -p demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 cp -p *.ttf $RPM_BUILD_ROOT%{_fontsdir}/TTF
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 fontpostinst TTF
62
63 %postun
64 fontpostinst TTF
65
66 %files
67 %defattr(644,root,root,755)
68 %doc Changes README
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
This page took 0.062772 seconds and 3 git commands to generate.