1 %include /usr/lib/rpm/macros.perl
4 Summary: Getopt::Declare perl module
5 Summary(pl): Modu³ perla Getopt::Declare
6 Name: perl-Getopt-Declare
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
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Getopt::Declare is yet another command-line argument parser, one which
21 is specifically designed to be powerful but exceptionally easy to use.
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.
28 %setup -q -n %{pdir}-%{pnam}-%{version}
32 %{__perl} Makefile.PL \
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
40 %{__make} install DESTDIR=$RPM_BUILD_ROOT
42 install demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
50 %{perl_vendorlib}/Getopt/Declare.pm
52 %dir %{_examplesdir}/%{name}-%{version}
53 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*