Accepting request 67060 from devel:languages:perl
Accepted submit request 67060 from user coolo OBS-URL: https://build.opensuse.org/request/show/67060 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-gettext?expand=0&rev=15
This commit is contained in:
commit
f7856b3c88
@ -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
|
Wed Dec 1 13:32:37 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,60 +15,61 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-gettext
|
Name: perl-gettext
|
||||||
Url: http://archive.cpan.cz/authors/id/P/PV/PVANDRY/
|
%define cpan_name gettext
|
||||||
License: Artistic ; GPLv2+
|
Summary: Message handling functions
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
BuildRequires: perl
|
|
||||||
BuildRequires: perl-macros
|
|
||||||
Obsoletes: perl_gtx
|
|
||||||
Provides: perl_gtx
|
|
||||||
AutoReqProv: on
|
|
||||||
Summary: gettext for perl
|
|
||||||
Version: 1.05
|
Version: 1.05
|
||||||
Release: 146
|
Release: 146
|
||||||
Source: gettext-%{version}.tar.bz2
|
License: Artistic ; GPLv2+
|
||||||
Patch: %{name}-%{version}-POSIX.diff
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%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:
|
_bindtextdomain(domain, dirname)_ instructs the retrieval functions to look
|
||||||
--------
|
for the databases belonging to domain 'domain' in the directory 'dirname'
|
||||||
Phillip Vandry <vandry@Mlink.NET>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n gettext-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch
|
%patch0
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
make %{?jobs:-j%jobs}
|
%{__make} %{?_smp_mflags}
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT install_vendor
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(644,root,root,755)
|
||||||
%{perl_vendorarch}/Locale
|
|
||||||
%{perl_vendorarch}/auto/Locale
|
|
||||||
%doc %{_mandir}/man3/Locale::gettext.3pm.gz
|
|
||||||
%doc README
|
%doc README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user