]> git.pld-linux.org Git - packages/perl-Getopt-Declare.git/blob - perl-Getopt-Declare.spec
- should be ready for perl-5.8.0; release++
[packages/perl-Getopt-Declare.git] / perl-Getopt-Declare.spec
1 %include        /usr/lib/rpm/macros.perl
2 %define pdir    Getopt
3 %define pnam    Declare
4 Summary:        Getopt::Declare perl module
5 Summary(pl):    Modu³ perla Getopt::Declare
6 Name:           perl-Getopt-Declare
7 Version:        1.09
8 Release:        5
9 License:        GPL
10 Group:          Development/Languages/Perl
11 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
12 Patch0:         %{name}-paths.patch
13 BuildRequires:  rpm-perlprov >= 4.1-13
14 BuildRequires:  perl >= 5.6
15 BuildRequires:  perl-Parse-RecDescent
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Getopt::Declare is yet another command-line argument parser, one which
21 is specifically designed to be powerful but exceptionally easy to use.
22
23 %description -l pl
24 Getopt::Declare jest jeszcze jednym parserem argumentów linii poleceñ,
25 o wielkich mozliwo¶ciach, a jednocze¶nie wyj±tkowo ³atwym w u¿yciu.
26
27 %prep
28 %setup -q -n %{pdir}-%{pnam}-%{version}
29 %patch -p1
30
31 %build
32 %{__perl} Makefile.PL \
33         INSTALLDIRS=vendor 
34 %{__make}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
39
40 %{__make} install DESTDIR=$RPM_BUILD_ROOT
41
42 install demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc Changes README
50 %{perl_vendorlib}/Getopt/Declare.pm
51 %{_mandir}/man3/*
52 %dir %{_examplesdir}/%{name}-%{version}
53 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*
This page took 0.125064 seconds and 4 git commands to generate.