From 70e76e0846637b6fdf7b1a24950973012e0729a5352b36a1e74848392e8dd222 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Mon, 11 Apr 2011 07:30:04 +0000 Subject: [PATCH 1/2] Accepting request 66639 from home:elvigia:branches:devel:languages:perl OBS-URL: https://build.opensuse.org/request/show/66639 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-gettext?expand=0&rev=10 --- perl-gettext.changes | 5 +++++ perl-gettext.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/perl-gettext.changes b/perl-gettext.changes index 1cd4e90..e8f85a7 100644 --- a/perl-gettext.changes +++ b/perl-gettext.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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..70c1f50 100644 --- a/perl-gettext.spec +++ b/perl-gettext.spec @@ -33,7 +33,11 @@ Release: 146 Source: gettext-%{version}.tar.bz2 Patch: %{name}-%{version}-POSIX.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} < 1140 +Requires: perl = %{perl_version} +%else %{perl_requires} +%endif %description Gettext for perl. @@ -58,17 +62,15 @@ make %{?jobs:-j%jobs} 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 -%files +%files -f %{name}.files %defattr(-,root,root) -%{perl_vendorarch}/Locale -%{perl_vendorarch}/auto/Locale -%doc %{_mandir}/man3/Locale::gettext.3pm.gz %doc README %changelog From 818a573b498febd4c048bce25ad89a926b40705b8c1412887de00f6dbcf4dd99 Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Mon, 11 Apr 2011 10:59:09 +0000 Subject: [PATCH 2/2] cpanspec OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-gettext?expand=0&rev=11 --- perl-gettext.changes | 6 ++++ perl-gettext.spec | 65 ++++++++++++++++++++++---------------------- 2 files changed, 38 insertions(+), 33 deletions(-) diff --git a/perl-gettext.changes b/perl-gettext.changes index e8f85a7..19cf722 100644 --- a/perl-gettext.changes +++ b/perl-gettext.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/perl-gettext.spec b/perl-gettext.spec index 70c1f50..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,51 +15,50 @@ # 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 -%if 0%{?suse_version} < 1140 -Requires: perl = %{perl_version} -%else +BuildRequires: perl +BuildRequires: perl-macros %{perl_requires} -%endif %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 %perl_make_install @@ -67,10 +66,10 @@ make test %perl_gen_filelist %clean -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf %{buildroot} %files -f %{name}.files -%defattr(-,root,root) +%defattr(644,root,root,755) %doc README %changelog