SHA256
1
0
forked from pool/perl-gettext
Christian Wittmer 2011-04-11 10:59:09 +00:00 committed by Git OBS Bridge
parent 70e76e0846
commit 818a573b49
2 changed files with 38 additions and 33 deletions

View File

@ -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

View File

@ -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 <vandry@Mlink.NET>
_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