2006-12-19 00:17:27 +01:00
|
|
|
#
|
2011-04-11 12:59:09 +02:00
|
|
|
# spec file for package perl-gettext
|
2006-12-19 00:17:27 +01:00
|
|
|
#
|
2013-02-27 14:26:07 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:27 +01:00
|
|
|
#
|
2009-06-18 17:05:15 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-05-27 18:38:31 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:17:27 +01:00
|
|
|
#
|
|
|
|
|
2011-11-11 12:24:55 +01:00
|
|
|
|
2007-05-27 18:38:31 +02:00
|
|
|
Name: perl-gettext
|
2011-04-11 12:59:09 +02:00
|
|
|
%define cpan_name gettext
|
|
|
|
Summary: Message handling functions
|
2013-02-27 20:06:04 +01:00
|
|
|
License: Artistic-1.0 or GPL-2.0+
|
2007-05-27 18:38:31 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2013-02-27 14:26:07 +01:00
|
|
|
Version: 1.05
|
|
|
|
Release: 0
|
2011-04-11 12:59:09 +02:00
|
|
|
Url: http://search.cpan.org/dist/gettext/
|
2011-11-17 13:44:11 +01:00
|
|
|
Source: http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz
|
2011-04-11 12:59:09 +02:00
|
|
|
Patch0: %{name}-%{version}-POSIX.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-05-27 18:38:31 +02:00
|
|
|
BuildRequires: perl
|
2010-12-05 22:29:29 +01:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
%{perl_requires}
|
2006-12-19 00:17:27 +01:00
|
|
|
|
|
|
|
%description
|
2011-04-11 12:59:09 +02:00
|
|
|
The gettext module permits access from perl to the gettext() family of
|
|
|
|
functions for retrieving message strings from databases constructed to
|
|
|
|
internationalize software.
|
2006-12-19 00:17:27 +01:00
|
|
|
|
2011-04-11 12:59:09 +02:00
|
|
|
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.
|
2006-12-19 00:17:27 +01:00
|
|
|
|
2011-04-11 12:59:09 +02:00
|
|
|
textdomain() sets the current text domain and returns the previously active
|
|
|
|
domain.
|
2006-12-19 00:17:27 +01:00
|
|
|
|
2011-04-11 12:59:09 +02:00
|
|
|
_bindtextdomain(domain, dirname)_ instructs the retrieval functions to look
|
|
|
|
for the databases belonging to domain 'domain' in the directory 'dirname'
|
2006-12-19 00:17:27 +01:00
|
|
|
|
|
|
|
%prep
|
2011-04-11 12:59:09 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%patch0
|
2006-12-19 00:17:27 +01:00
|
|
|
|
|
|
|
%build
|
2011-04-11 12:59:09 +02:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
2006-12-19 00:17:27 +01:00
|
|
|
|
2008-01-30 03:36:45 +01:00
|
|
|
%check
|
2011-04-11 12:59:09 +02:00
|
|
|
%{__make} test
|
2008-01-30 03:36:45 +01:00
|
|
|
|
2006-12-19 00:17:27 +01:00
|
|
|
%install
|
2011-04-11 09:30:04 +02:00
|
|
|
%perl_make_install
|
2006-12-19 00:17:27 +01:00
|
|
|
%perl_process_packlist
|
2011-04-11 09:30:04 +02:00
|
|
|
%perl_gen_filelist
|
2006-12-19 00:17:27 +01:00
|
|
|
|
2008-01-30 03:36:45 +01:00
|
|
|
%clean
|
2011-04-11 12:59:09 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
2008-01-30 03:36:45 +01:00
|
|
|
|
2011-04-11 09:30:04 +02:00
|
|
|
%files -f %{name}.files
|
2011-04-11 12:59:09 +02:00
|
|
|
%defattr(644,root,root,755)
|
2006-12-19 00:17:27 +01:00
|
|
|
%doc README
|
|
|
|
|
2007-05-27 18:38:31 +02:00
|
|
|
%changelog
|