3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Getopt::Declare - Declaratively Expressed Command-Line Arguments via Regular Expressions
9 Summary(pl): Getopt::Declare - wyra¿one deklaracyjnie przez wyra¿enia regularne argumenty linii polecenia
10 Name: perl-Getopt-Declare
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 2bbc6f770af28d5b9511be071a9ab03e
17 Patch0: %{name}-paths.patch
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-Parse-RecDescent
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Getopt::Declare is yet another command-line argument parser, one which
26 is specifically designed to be powerful but exceptionally easy to use.
29 Getopt::Declare jest jeszcze jednym parserem argumentów linii poleceñ,
30 o wielkich mo¿liwo¶ciach, a jednocze¶nie wyj±tkowo ³atwym w u¿yciu.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 DESTDIR=$RPM_BUILD_ROOT
50 install demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Getopt/Declare.pm
60 %dir %{_examplesdir}/%{name}-%{version}
61 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*