diff --git a/perl-gettext.changes b/perl-gettext.changes index 1cd4e90..19cf722 100644 --- a/perl-gettext.changes +++ b/perl-gettext.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Apr 11 10:57:59 UTC 2011 - chris@computersalat.de + +- recreated by cpanspec 1.78.03 +- removed old Obsoletes/Provides perl_gtx + +------------------------------------------------------------------- +Sun Apr 10 16:08:29 UTC 2011 - crrodriguez@opensuse.org + +- USe perl macros to generate filelist + ------------------------------------------------------------------- Wed Dec 1 13:32:37 UTC 2010 - coolo@novell.com diff --git a/perl-gettext.spec b/perl-gettext.spec index 131f92b..3688466 100644 --- a/perl-gettext.spec +++ b/perl-gettext.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-gettext (Version 1.05) +# spec file for package perl-gettext # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,60 +15,61 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - - Name: perl-gettext -Url: http://archive.cpan.cz/authors/id/P/PV/PVANDRY/ -License: Artistic ; GPLv2+ -Group: Development/Libraries/Perl -BuildRequires: perl -BuildRequires: perl-macros -Obsoletes: perl_gtx -Provides: perl_gtx -AutoReqProv: on -Summary: gettext for perl +%define cpan_name gettext +Summary: Message handling functions Version: 1.05 Release: 146 -Source: gettext-%{version}.tar.bz2 -Patch: %{name}-%{version}-POSIX.diff +License: Artistic ; GPLv2+ +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/gettext/ +#Source: http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +Patch0: %{name}-%{version}-POSIX.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros %{perl_requires} %description -Gettext for perl. +The gettext module permits access from perl to the gettext() family of +functions for retrieving message strings from databases constructed to +internationalize software. +gettext(), dgettext(), and dcgettext() attempt to retrieve a string +matching their 'msgid' parameter within the context of the current locale. +dcgettext() takes the message's category and the text domain as parameters +while dcgettext() defaults to the LC_MESSAGES category and gettext() +defaults to LC_MESSAGES and uses the current text domain. If the string is +not found in the database, then 'msgid' is returned. +textdomain() sets the current text domain and returns the previously active +domain. -Authors: --------- - Phillip Vandry +_bindtextdomain(domain, dirname)_ instructs the retrieval functions to look +for the databases belonging to domain 'domain' in the directory 'dirname' %prep -%setup -q -n gettext-%{version} -%patch -# --------------------------------------------------------------------------- +%setup -q -n %{cpan_name}-%{version} +%patch0 %build -perl Makefile.PL -make %{?jobs:-j%jobs} -# --------------------------------------------------------------------------- +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install -make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist %clean -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf %{buildroot} -%files -%defattr(-,root,root) -%{perl_vendorarch}/Locale -%{perl_vendorarch}/auto/Locale -%doc %{_mandir}/man3/Locale::gettext.3pm.gz +%files -f %{name}.files +%defattr(644,root,root,755) %doc README %changelog