source: spec/trunk/SPECS/perl-gettext.spec@ 1566

Last change on this file since 1566 was 1119, checked in by Silvan Scherrer, 8 years ago

spec: perl-gettext: Release version 1.07-1.

File size: 2.3 KB
Line 
1# This package should be renamed into perl-Locale-gettext
2%global tarname Locale-gettext
3
4Name: perl-gettext
5Version: 1.07
6Release: 1%{?dist}
7Summary: Interface to gettext family of functions
8
9Group: Development/Libraries
10License: GPL+ or Artistic
11URL: http://search.cpan.org/dist/gettext/
12Vendor: bww bitwise works GmbH
13Source0: http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/%{tarname}-%{version}.tar.gz
14
15BuildRequires: perl-devel
16BuildRequires: perl-generators
17BuildRequires: perl(ExtUtils::MakeMaker)
18BuildRequires: gettext
19# Run-time:
20BuildRequires: perl(Carp)
21BuildRequires: perl(Exporter)
22BuildRequires: perl(DynaLoader)
23BuildRequires: perl(POSIX)
24
25# Optional
26BuildRequires: perl(Encode)
27# Tests:
28BuildRequires: perl(Test)
29
30%description
31The gettext module permits access from perl to the gettext() family of
32functions for retrieving message strings from databases constructed to
33internationalize software.
34
35
36%package -n perl-%{tarname}
37Summary: %{summary}
38Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
39
40Obsoletes: perl-gettext < %{version}-%{release}
41Obsoletes: perl-gettext%{?_isa} < %{version}-%{release}
42Provides: perl-gettext = %{version}-%{release}
43Provides: perl-gettext%{?_isa} = %{version}-%{release}
44
45
46%description -n perl-%{tarname}
47The gettext module permits access from perl to the gettext() family of
48functions for retrieving message strings from databases constructed to
49internationalize 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
58make %{?_smp_mflags}
59make manifypods
60
61%install
62make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
63find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
64find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
65find $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
Note: See TracBrowser for help on using the repository browser.