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 >= 3.0.3-16
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}
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
39 %{__make} install DESTDIR=$RPM_BUILD_ROOT
41 install demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %{perl_sitelib}/Getopt/Declare.pm
51 %dir %{_examplesdir}/%{name}-%{version}
52 %attr(755) %{_examplesdir}/%{name}-%{version}/*