]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: Lingua::EN::NameParse perl module |
9d0a33a5 | 8 | Summary(pl.UTF-8): Moduł perla Lingua::EN::NameParse |
ca53f68c | 9 | Name: perl-Lingua-EN-NameParse |
ad4d89cb | 10 | Version: 1.30 |
9261a8fd | 11 | Release: 1 |
3f8cf72d | 12 | License: Artistic |
ca53f68c | 13 | Group: Development/Languages/Perl |
70aa3362 | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
ad4d89cb | 15 | # Source0-md5: 2fb117124b587063fd1ca5de7d92bef5 |
99017895 | 16 | Patch0: %{name}-paths.patch |
6fabd149 | 17 | URL: http://search.cpan.org/dist/Lingua-EN-NameParse/ |
510dd3d1 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
ccd55b67 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
9261a8fd | 20 | %if %{with tests} |
21 | BuildRequires: perl-Parse-RecDescent | |
22 | %endif | |
81f53123 | 23 | BuildArch: noarch |
5adbdaf9 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ca53f68c | 25 | |
26 | %description | |
3462c514 | 27 | Lingua::EN::NameParse - routines for manipulating a persons name. |
ca53f68c | 28 | |
1e4b16a2 JR |
29 | %description -l pl.UTF-8 |
30 | Lingua::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 |
45 | rm -rf $RPM_BUILD_ROOT | |
ca53f68c | 46 | |
27f08de6 | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
ca53f68c | 49 | |
9261a8fd | 50 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
51 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
52 | ||
ca53f68c | 53 | %clean |
54 | rm -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} |