#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_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
+%define pdir Regexp
+%define pnam Common
+Summary: Regexp::Common Perl module - commonly requested regular expressions
+Summary(pl.UTF-8): Moduł Perla Regexp::Common - często używane wyrażenia regularne
Name: perl-Regexp-Common
-Version: 2.109
+Version: 2.120
Release: 1
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 >= 3.0.3-16
+# Source0-md5: a14f2a3c3f2718a567ec26f57a2bae13
+BuildRequires: perl-devel >= 1:5.8.0
+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
* 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
+%description -l pl.UTF-8
+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)
+ * 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)
+ * słów obraźliwych (w języku angielskim)
* list o dowolnym wzorcu
- * adresów IPv4.
+ * 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
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README TODO
-%{perl_sitelib}/%{pdir}/*.pm
-%{perl_sitelib}/%{pdir}/%{pnam}
+%{perl_vendorlib}/Regexp/*.pm
+%{perl_vendorlib}/Regexp/Common
%{_mandir}/man3/*