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