/[packages]/updates/5/perl-libintl-perl/current/SPECS/perl-libintl-perl.spec
ViewVC logotype

Contents of /updates/5/perl-libintl-perl/current/SPECS/perl-libintl-perl.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1187521 - (show annotations) (download)
Sat Dec 30 05:26:43 2017 UTC (17 months, 2 weeks ago) by luigiwalser
File size: 1765 byte(s)
rediff patch to fix CVE-2017-1238
1 %define upstream_name libintl-perl
2 %define upstream_version 1.23
3
4 Name: perl-%{upstream_name}
5 Version: %perl_convert_version %{upstream_version}
6 %define subrel 1
7 Release: %mkrel 6
8
9 Summary: A localization library for Perl
10 License: LGPL
11 Group: Development/Perl
12 Url: http://search.cpan.org/dist/%{upstream_name}
13 Source0: http://www.cpan.org/authors/id/G/GU/GUIDO/%{upstream_name}-%{upstream_version}.tar.gz
14 Patch0: libintl-perl-CVE-2016-1238.patch
15
16 BuildRequires: perl(ExtUtils::MakeMaker)
17 BuildRequires: perl(File::Spec)
18 BuildRequires: perl(version) >= 0.770.0
19 BuildRequires: db4-devel
20 BuildRequires: gdbm-devel
21 BuildRequires: gettext-devel
22 BuildRequires: perl-devel
23 #gw yes, this is required by the tests
24 BuildRequires: locales-de
25 %description
26 libintl-perl is a library that supports message translation for
27 Perl, written in pure Perl (version 5.004 or better). A faster C
28 version is also built and installed if the system fulfills all
29 requirements. Its interface is very similar to the gettext family
30 of functions in C, and it uses the same file formats as GNU
31 gettext, making it possible to use all tools available for gettext
32 itself and to seamlessly integrate internationalized Perl code
33 into mixed-language projects. An alternative library with a
34 similar purpose is available as Locale::MakeText.
35
36 %prep
37 %setup -q -n %{upstream_name}-%{upstream_version}
38 %patch0 -p1
39
40 %build
41 %{__perl} Makefile.PL INSTALLDIRS=vendor
42 %make
43
44 %check
45 %{__make} test
46
47 %install
48 %makeinstall_std
49 # fix attribs
50 find %{buildroot}%{perl_vendorlib} -name "*.pm" | xargs chmod 755
51
52 %files
53 %doc ChangeLog FAQ META.json META.yml MYMETA.yml NEWS README REFERENCES THANKS TODO sample
54 %{perl_vendorlib}/Locale
55 %{perl_vendorarch}/auto/Locale
56 %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.26