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