summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-08 07:24:00 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-08 07:24:00 -0800
commit07f1df33894c82e0722c4bc3213beea231ce4c47 (patch)
treef3d6bef66bc686a6a484459b71efb3217880396a
parent95f620342fa1cadde2a645061444aee04e01ad78 (diff)
downloadperl-gettext-07f1df33894c82e0722c4bc3213beea231ce4c47.tar.gz
perl-gettext-07f1df33894c82e0722c4bc3213beea231ce4c47.tar.bz2
perl-gettext-07f1df33894c82e0722c4bc3213beea231ce4c47.zip
add packaging
-rw-r--r--packaging/perl-gettext-1.05-POSIX.diff10
-rw-r--r--packaging/perl-gettext.spec73
2 files changed, 83 insertions, 0 deletions
diff --git a/packaging/perl-gettext-1.05-POSIX.diff b/packaging/perl-gettext-1.05-POSIX.diff
new file mode 100644
index 0000000..fc1322d
--- /dev/null
+++ b/packaging/perl-gettext-1.05-POSIX.diff
@@ -0,0 +1,10 @@
+--- gettext.pm
++++ gettext.pm
+@@ -32,6 +32,7 @@
+ =cut
+
+ use Carp;
++use POSIX;
+
+ require Exporter;
+ require DynaLoader;
diff --git a/packaging/perl-gettext.spec b/packaging/perl-gettext.spec
new file mode 100644
index 0000000..94f7514
--- /dev/null
+++ b/packaging/perl-gettext.spec
@@ -0,0 +1,73 @@
+#
+# spec file for package perl-gettext
+#
+# 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
+# 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.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+
+
+Name: perl-gettext
+Version: 1.05
+Release: 151
+License: Artistic-1.0 ; GPL-2.0+
+%define cpan_name gettext
+Summary: Message handling functions
+Url: http://search.cpan.org/dist/gettext/
+Group: Development/Libraries/Perl
+Source: http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz
+Patch0: %{name}-%{version}-POSIX.diff
+BuildRequires: perl
+BuildRequires: perl-macros
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%{perl_requires}
+
+%description
+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.
+
+_bindtextdomain(domain, dirname)_ instructs the retrieval functions to look
+for the databases belonging to domain 'domain' in the directory 'dirname'
+
+%prep
+%setup -q -n %{cpan_name}-%{version}
+%patch0
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
+
+%check
+make test
+
+%install
+%perl_make_install
+%perl_process_packlist
+%perl_gen_filelist
+
+%files -f %{name}.files
+%defattr(644,root,root,755)
+%doc README
+
+%changelog