]> git.pld-linux.org Git - packages/perl-Lingua-EN-NameParse.git/blob - perl-Lingua-EN-NameParse.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Lingua-EN-NameParse.git] / perl-Lingua-EN-NameParse.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Lingua
6 %define         pnam    EN-NameParse
7 Summary:        Lingua::EN::NameParse perl module
8 Summary(pl.UTF-8):      Moduł perla Lingua::EN::NameParse
9 Name:           perl-Lingua-EN-NameParse
10 Version:        1.30
11 Release:        1
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  2fb117124b587063fd1ca5de7d92bef5
16 Patch0:         %{name}-paths.patch
17 URL:            http://search.cpan.org/dist/Lingua-EN-NameParse/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Parse-RecDescent
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Lingua::EN::NameParse - routines for manipulating a persons name.
28
29 %description -l pl.UTF-8
30 Lingua::EN::NameParse - umożliwia operacje na imionach osób.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} -i -pe 's,\r,,g' examples/demo.pl
35 %patch0 -p0
36
37 %build
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make}
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README
59 %{perl_vendorlib}/%{pdir}/EN/*.pm
60 %{perl_vendorlib}/%{pdir}/EN/NameParse
61 %{_mandir}/man3/*
62 %{_examplesdir}/%{name}-%{version}
This page took 0.052941 seconds and 3 git commands to generate.