3 %bcond_without tests # do not perform "make test"
7 Summary: Regexp::Assemble - Assemble multiple Regular Expressions into a single RE
9 Name: perl-Regexp-Assemble
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Regexp/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 315796ece5bfb69b166846ced911cf0e
17 URL: http://search.cpan.org/dist/Regexp-Assemble/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Regexp::Assemble takes an arbitrary number of regular expressions
25 and assembles them into a single regular expression (or RE) that
26 matches all that the individual REs match.
28 # %description -l pl.UTF-8
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Regexp/*.pm
58 %{_examplesdir}/%{name}-%{version}