1 |
%define upstream_name libintl-perl |
2 |
%define upstream_version 1.20 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: A localization library for Perl |
9 |
License: LGPL |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/authors/id/G/GU/GUIDO/%{upstream_name}-%{upstream_version}.tar.bz2 |
13 |
|
14 |
BuildRequires: db4-devel |
15 |
BuildRequires: gdbm-devel |
16 |
BuildRequires: gettext-devel |
17 |
BuildRequires: perl-devel |
18 |
#gw yes, this is required by the tests |
19 |
BuildRequires: locales-de |
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
21 |
|
22 |
%description |
23 |
libintl-perl is a library that supports message translation for |
24 |
Perl, written in pure Perl (version 5.004 or better). A faster C |
25 |
version is also built and installed if the system fulfills all |
26 |
requirements. Its interface is very similar to the gettext family |
27 |
of functions in C, and it uses the same file formats as GNU |
28 |
gettext, making it possible to use all tools available for gettext |
29 |
itself and to seamlessly integrate internationalized Perl code |
30 |
into mixed-language projects. An alternative library with a |
31 |
similar purpose is available as Locale::MakeText. |
32 |
|
33 |
%prep |
34 |
%setup -q -n %{upstream_name}-%{upstream_version} |
35 |
|
36 |
%build |
37 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
38 |
%make |
39 |
|
40 |
%check |
41 |
%{__make} test |
42 |
|
43 |
%install |
44 |
rm -rf %{buildroot} |
45 |
%makeinstall_std |
46 |
# fix attribs |
47 |
find %{buildroot}%{perl_vendorlib} -name "*.pm" | xargs chmod 755 |
48 |
|
49 |
%clean |
50 |
rm -rf %{buildroot} |
51 |
|
52 |
%files |
53 |
%defattr(-,root,root) |
54 |
%doc ChangeLog NEWS README THANKS TODO |
55 |
%{perl_vendorlib}/Locale |
56 |
%{perl_vendorarch}/auto/Locale |
57 |
%{_mandir}/*/* |
58 |
|
59 |
|