3 %bcond_without tests # do not perform "make test"
7 Summary: File::FnMatch - simple filename and pathname matching
8 Name: perl-File-FnMatch
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 22f77c20d0fb5af01a3165e2df2fe34c
15 URL: https://metacpan.org/release/File-FnMatch/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 File::FnMatch::fnmatch() provides simple, shell-like pattern matching.
23 Though considerably less powerful than regular expressions, shell
24 patterns are nonetheless useful and familiar to a large audience of
27 Other possibilities include at least FNM_CASEFOLD (compare qr//i),
28 FNM_LEADING_DIR to restrict matching to everything before the first
29 '/', FNM_FILE_NAME as a synonym for FNM_PATHNAME, and the rather more
30 exotic FNM_EXTMATCH. Consult your system documentation for details.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorarch}/File/*.pm
57 %dir %{perl_vendorarch}/auto/File/FnMatch
58 %attr(755,root,root) %{perl_vendorarch}/auto/File/FnMatch/*.so