3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Getopt::Declare - Declaratively Expressed Command-Line Arguments via Regular Expressions
9 Summary(pl.UTF-8): 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: 7ed52d0279abcb34c366369af8ac8cb8
17 Patch0: %{name}-paths.patch
18 URL: http://search.cpan.org/dist/Getopt-Declare/
19 BuildRequires: perl-Parse-RecDescent
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Getopt::Declare is yet another command-line argument parser, one which
27 is specifically designed to be powerful but exceptionally easy to use.
29 %description -l pl.UTF-8
30 Getopt::Declare jest jeszcze jednym parserem argumentów linii poleceń,
31 o wielkich możliwościach, a jednocześnie wyjątkowo łatwym w użyciu.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 DESTDIR=$RPM_BUILD_ROOT
51 cp -p demos/demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/Getopt/Declare.pm
61 %dir %{_examplesdir}/%{name}-%{version}
62 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*