]> git.pld-linux.org Git - packages/perl-Lingua-EN-NameParse.git/blob - perl-Lingua-EN-NameParse.spec
1a75b24d0d7b517f738b7a4ebfdc2e7f07fdfc66
[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 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Lingua
7 %define         pnam    EN-NameParse
8 Summary:        Lingua::EN::NameParse perl module
9 Summary(pl.UTF-8):      Moduł perla Lingua::EN::NameParse
10 Name:           perl-Lingua-EN-NameParse
11 Version:        1.30
12 Release:        1
13 License:        Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  2fb117124b587063fd1ca5de7d92bef5
17 Patch0:         %{name}-paths.patch
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.077899 seconds and 2 git commands to generate.