1 | # This package should be renamed into perl-Locale-gettext
|
---|
2 | %global tarname Locale-gettext
|
---|
3 |
|
---|
4 | Name: perl-gettext
|
---|
5 | Version: 1.07
|
---|
6 | Release: 1%{?dist}
|
---|
7 | Summary: Interface to gettext family of functions
|
---|
8 |
|
---|
9 | Group: Development/Libraries
|
---|
10 | License: GPL+ or Artistic
|
---|
11 | URL: http://search.cpan.org/dist/gettext/
|
---|
12 | Vendor: bww bitwise works GmbH
|
---|
13 | Source0: http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/%{tarname}-%{version}.tar.gz
|
---|
14 |
|
---|
15 | BuildRequires: perl-devel
|
---|
16 | BuildRequires: perl-generators
|
---|
17 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
18 | BuildRequires: gettext
|
---|
19 | # Run-time:
|
---|
20 | BuildRequires: perl(Carp)
|
---|
21 | BuildRequires: perl(Exporter)
|
---|
22 | BuildRequires: perl(DynaLoader)
|
---|
23 | BuildRequires: perl(POSIX)
|
---|
24 |
|
---|
25 | # Optional
|
---|
26 | BuildRequires: perl(Encode)
|
---|
27 | # Tests:
|
---|
28 | BuildRequires: perl(Test)
|
---|
29 |
|
---|
30 | %description
|
---|
31 | The gettext module permits access from perl to the gettext() family of
|
---|
32 | functions for retrieving message strings from databases constructed to
|
---|
33 | internationalize software.
|
---|
34 |
|
---|
35 |
|
---|
36 | %package -n perl-%{tarname}
|
---|
37 | Summary: %{summary}
|
---|
38 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
---|
39 |
|
---|
40 | Obsoletes: perl-gettext < %{version}-%{release}
|
---|
41 | Obsoletes: perl-gettext%{?_isa} < %{version}-%{release}
|
---|
42 | Provides: perl-gettext = %{version}-%{release}
|
---|
43 | Provides: perl-gettext%{?_isa} = %{version}-%{release}
|
---|
44 |
|
---|
45 |
|
---|
46 | %description -n perl-%{tarname}
|
---|
47 | The gettext module permits access from perl to the gettext() family of
|
---|
48 | functions for retrieving message strings from databases constructed to
|
---|
49 | internationalize software.
|
---|
50 |
|
---|
51 | %prep
|
---|
52 | %setup -q -n %{tarname}-%{version}
|
---|
53 |
|
---|
54 | %build
|
---|
55 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
---|
56 | # not supported by perl < 5.22
|
---|
57 | # NO_PACKLIST=1
|
---|
58 | make %{?_smp_mflags}
|
---|
59 | make manifypods
|
---|
60 |
|
---|
61 | %install
|
---|
62 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
---|
63 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
---|
64 | find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
---|
65 | find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
---|
66 | %{_fixperms} $RPM_BUILD_ROOT/*
|
---|
67 |
|
---|
68 |
|
---|
69 | %check
|
---|
70 | #make test
|
---|
71 |
|
---|
72 |
|
---|
73 | %files -n perl-%{tarname}
|
---|
74 | %doc README
|
---|
75 | %{perl_vendorarch}/auto/Locale
|
---|
76 | %{perl_vendorarch}/Locale
|
---|
77 | %{_mandir}/man3/*.3*
|
---|
78 |
|
---|
79 |
|
---|
80 | %changelog
|
---|
81 | * Tue Apr 25 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.07-1
|
---|
82 | - initial version
|
---|