%include /usr/lib/rpm/macros.perl %define pdir Getopt %define pnam Declare Summary: Getopt::Declare perl module Summary(pl): Moduł perla Getopt::Declare Name: perl-Getopt-Declare Version: 1.09 Release: 4 License: GPL Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz Patch0: %{name}-paths.patch BuildRequires: rpm-perlprov >= 3.0.3-16 BuildRequires: perl >= 5.6 BuildRequires: perl-Parse-RecDescent BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Getopt::Declare is yet another command-line argument parser, one which is specifically designed to be powerful but exceptionally easy to use. %description -l pl Getopt::Declare jest jeszcze jednym parserem argumentów linii poleceń, o wielkich mozliwościach, a jednocześnie wyjątkowo łatwym w użyciu. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch -p1 %build perl Makefile.PL %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %{__make} install DESTDIR=$RPM_BUILD_ROOT install demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} gzip -9nf Changes README %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %{perl_sitelib}/Getopt/Declare.pm %{_mandir}/man3/* %{_examplesdir}/%{name}-%{version}