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