]>
Commit | Line | Data |
---|---|---|
c0979bba | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
c62a1e68 | 4 | |
17eb7891 | 5 | %define pdir Regexp |
6 | %define pnam Shellish | |
c62a1e68 | 7 | %include /usr/lib/rpm/macros.perl |
5ae7a150 | 8 | Summary: Regexp::Shellish Perl module - shell-like regular expressions |
e75ba920 | 9 | Summary(pl.UTF-8): Moduł Perla Regexp::Shellish - wyrażenia regularne podobne do rozwinięć wykonywanych przez powłoki |
282d744b JB |
10 | Name: perl-Regexp-Shellish |
11 | Version: 0.93 | |
fb7a1f5d | 12 | Release: 5 |
c0979bba | 13 | License: GPL or Artistic |
282d744b | 14 | Group: Development/Languages/Perl |
9e20bffa | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
b681a968 | 16 | # Source0-md5: a5f92bf82b3d5033518e6d2c1028ee37 |
c62a1e68 | 17 | URL: http://search.cpan.org/dist/Regexp-Shellish/ |
aab0d5be | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
282d744b JB |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Regexp::Shellish module provides shell-like regular expressions. The | |
24 | wildcards provided are '?', '*' and '**', where '**' is like '*' but | |
25 | matches '/'. | |
26 | ||
6e776b55 JR |
27 | %description -l pl.UTF-8 |
28 | Moduł Regexp::Shellish udostępnia wyrażenia regularne podobne do | |
29 | rozwinięć wykonywanych przez powłoki. Dostępne maski to: '?', '*' i | |
693b3c55 | 30 | '**', gdzie '**' jest podobna do '*', ale obejmuje znaki '/'. |
282d744b JB |
31 | |
32 | %prep | |
33 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
34 | ||
35 | %build | |
774b31e9 | 36 | %{__perl} Makefile.PL \ |
77e1f27f | 37 | INSTALLDIRS=vendor |
282d744b JB |
38 | %{__make} |
39 | ||
c0979bba | 40 | %{?with_tests:%{__make} test} |
41 | ||
282d744b JB |
42 | %install |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc Changes | |
774b31e9 | 54 | %{perl_vendorlib}/Regexp/Shellish.pm |
282d744b | 55 | %{_mandir}/man3/* |