# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Regexp %define pnam Common Summary: Regexp::Common Perl module - commonly requested regular expressions Summary(pl): Moduł Perla Regexp::Common - często używane wyrażenia regularne Name: perl-Regexp-Common Version: 2.110 Release: 2 License: Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # not recognized for unknown reason %define _noautoreq 'perl(Regexp::Common::URI)' %description This package contains Regexp::Common module that stores or generates commonly needed regular expressions. Patterns currently provided include: * balanced parentheses and brackets * delimited text (with escapes) * integers and floating-point numbers in any base (up to 36) * comments in C, C++, Perl, and shell * offensive language * lists of any pattern * IPv4 addresses * URIs %description -l pl Ten pakiet zawiera moduł Regexp::Common, który zawiera lub generuje często potrzebne wyrażenia regularne. Aktualnie zawiera wzorce dla: * zrównoważonych nawiasów * ograniczonego tekstu (z cytowaniem) * liczb całkowitych i zmiennoprzecinkowych o dowolnej podstawie (do 36) * komentarzy w C, C++, Perlu i shellu * słów obraźliwych (w języku angielskim) * list o dowolnym wzorcu * adresów IPv4. * URI %prep %setup -q -n %{pdir}-%{pnam}-%{version} %{__perl} -pi -e 's/^(use 5.004)(73;)(.*)$/$1_$2$3/' lib/Regexp/Common.pm %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README TODO %{perl_vendorlib}/%{pdir}/*.pm %{perl_vendorlib}/%{pdir}/%{pnam} %{_mandir}/man3/*