]> git.pld-linux.org Git - packages/perl-Regexp-Ignore.git/blame - perl-Regexp-Ignore.spec
use generic url
[packages/perl-Regexp-Ignore.git] / perl-Regexp-Ignore.spec
CommitLineData
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 8Summary: Regexp::Ignore Perl module - ignore unwanted parts of text
42c0e156 9Summary(pl.UTF-8): Moduł Perla Regexp::Ignore - ignorowanie niechcianych części tekstu
7a2134a7 10Name: perl-Regexp-Ignore
7e3d1f65 11Version: 0.03
49808cd5 12Release: 4
d0e76b4a 13# same as perl
14License: GPL v1+ or Artistic
7a2134a7 15Group: Development/Languages/Perl
ece09802 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
359559ab 17# Source0-md5: 542ad987adbd6da9d82494f065b45b9d
21fa2157 18URL: http://search.cpan.org/dist/Regexp-Ignore/
7cb3ca7f 19BuildRequires: perl-devel >= 1:5.8.0
85850917 20BuildRequires: rpm-perlprov >= 4.1-13
7a2134a7
JB
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Regexp::Ignore - Let us ignore unwanted parts (e.g. tags in markup
26languages as HTML), while parsing text.
27
3bea669e 28%description -l pl.UTF-8
21fa2157
ER
29Moduł Regexp::Ignore - pozwalający ignorować niechciane fragmenty (np.
30znaczniki 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
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47
48%{__make} install \
49 DESTDIR=$RPM_BUILD_ROOT
50
21fa2157 51cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7a2134a7
JB
52
53%clean
54rm -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
This page took 0.06334 seconds and 4 git commands to generate.