]>
Commit | Line | Data |
---|---|---|
7e3d1f65 | 1 | # |
2 | # Conditional build: | |
e2a90c5e | 3 | %bcond_without tests # do not perform "make test" |
21fa2157 | 4 | |
cec24e58 | 5 | %define pdir Regexp |
6 | %define pnam Ignore | |
21fa2157 | 7 | %include /usr/lib/rpm/macros.perl |
1c275006 | 8 | Summary: Regexp::Ignore Perl module - ignore unwanted parts of text |
42c0e156 | 9 | Summary(pl.UTF-8): Moduł Perla Regexp::Ignore - ignorowanie niechcianych części tekstu |
7a2134a7 | 10 | Name: perl-Regexp-Ignore |
7e3d1f65 | 11 | Version: 0.03 |
49808cd5 | 12 | Release: 4 |
d0e76b4a | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
7a2134a7 | 15 | Group: Development/Languages/Perl |
ece09802 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
359559ab | 17 | # Source0-md5: 542ad987adbd6da9d82494f065b45b9d |
21fa2157 | 18 | URL: http://search.cpan.org/dist/Regexp-Ignore/ |
7cb3ca7f | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
85850917 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
7a2134a7 JB |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Regexp::Ignore - Let us ignore unwanted parts (e.g. tags in markup | |
26 | languages as HTML), while parsing text. | |
27 | ||
3bea669e | 28 | %description -l pl.UTF-8 |
21fa2157 ER |
29 | Moduł Regexp::Ignore - pozwalający ignorować niechciane fragmenty (np. |
30 | znaczniki w językach typu HTML) podczas analizy tekstu. | |
7a2134a7 JB |
31 | |
32 | %prep | |
33 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
34 | ||
35 | %build | |
85850917 | 36 | %{__perl} Makefile.PL \ |
f9657271 | 37 | INSTALLDIRS=vendor |
7a2134a7 | 38 | %{__make} |
e2a90c5e | 39 | |
40 | %{?with_tests:%{__make} test} | |
7e3d1f65 | 41 | |
3a23b846 | 42 | %{__perl} -pi -e 's:/usr/local/bin/perl:/usr/bin/perl:' examples/speller.pl |
7a2134a7 JB |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
47 | ||
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
21fa2157 | 51 | cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
7a2134a7 JB |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
85850917 | 59 | %{perl_vendorlib}/Regexp/Ignore*.pm |
7a2134a7 | 60 | %{_mandir}/man3/* |
7e3d1f65 | 61 | %dir %{_examplesdir}/%{name}-%{version} |
62 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl |