80 lines
2.1 KiB
RPMSpec
80 lines
2.1 KiB
RPMSpec
Name: perl-gettext
|
|
Version: 1.05
|
|
Release: 6%{?dist}
|
|
Summary: Interface to gettext family of functions
|
|
|
|
Group: Development/Libraries
|
|
License: GPL or Artistic
|
|
URL: http://search.cpan.org/dist/gettext/
|
|
Source0: http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: gettext
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
Obsoletes: perl-Locale-gettext <= 1.05
|
|
|
|
%description
|
|
The gettext module permits access from perl to the gettext() family of
|
|
functions for retrieving message strings from databases constructed to
|
|
internationalize software.
|
|
|
|
%prep
|
|
%setup -q -n gettext-%{version}
|
|
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
%check
|
|
make test
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README
|
|
%{perl_vendorarch}/auto/Locale
|
|
%{perl_vendorarch}/Locale
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
* Tue Nov 02 2005 Ralf Corsepius <rc040203@freenet.de> - 1.05-6
|
|
- Obsoletes: perl-Locale-gettext <= 1.05.
|
|
- Fix minor spec file typos.
|
|
|
|
* Tue Nov 01 2005 Ralf Corsepius <rc040203@freenet.de> - 1.05-5
|
|
- FE import.
|
|
- Add Obsoletes: perl-Locale-gettext.
|
|
|
|
* Tue Nov 01 2005 Ralf Corsepius <rc040203@freenet.de> - 1.05-4
|
|
- Rename package to perl-gettext.
|
|
- Remove "Require: perl".
|
|
|
|
* Mon Aug 20 2005 Ralf Corsepius <ralf@links2linux.de> - 1.05-3
|
|
- Add Provides: perl-gettext (RH bugzilla PR 165885).
|
|
|
|
* Tue Aug 09 2005 Ralf Corsepius <ralf@links2linux.de> - 1.05-2
|
|
- Add BuildRequires: gettext.
|
|
|
|
* Sun Aug 07 2005 Ralf Corsepius <ralf@links2linux.de> - 1.05-1
|
|
- FE submission.
|
|
|
|
* Thu Aug 04 2005 Ralf Corsepius <ralf@links2linux.de> - 1.05-0
|
|
- Initial rpm.
|