diff --git a/.cvsignore b/.cvsignore index e69de29..2d0f0c3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +gettext-1.05.tar.gz diff --git a/perl-gettext.spec b/perl-gettext.spec new file mode 100644 index 0000000..d4e9498 --- /dev/null +++ b/perl-gettext.spec @@ -0,0 +1,75 @@ +Name: perl-gettext +Version: 1.05 +Release: 5%{?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 + +%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 Oct 01 2005 Ralf Corsepius - 1.05-5 +- FE import. +- Add Obsoletes: perl-Locale-gettext. + +* Tue Oct 01 2005 Ralf Corsepius - 1.05-4 +- Rename package to perl-gettext. +- Remove "Require: perl". + +* Mon Aug 20 2005 Ralf Corsepius - 1.05-3 +- Add Provides: perl-gettext (RH bugzilla PR 165885). + +* Tue Aug 09 2005 Ralf Corsepius - 1.05-2 +- Add BuildRequires: gettext. + +* Sun Aug 07 2005 Ralf Corsepius - 1.05-1 +- FE submission. + +* Thu Aug 04 2005 Ralf Corsepius - 1.05-0 +- Initial rpm. diff --git a/sources b/sources index e69de29..c9e4e15 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f3d3f474a1458f37174c410dfef61a46 gettext-1.05.tar.gz