File perl-gettext.spec of Package perl-gettext

#
# spec file for package perl-gettext (Version 1.05)
#
# Copyright (c) 2010 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/
#

# 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
Version:        1.05
Release:        146
Source:         gettext-%{version}.tar.bz2
Patch:          %{name}-%{version}-POSIX.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
Gettext for perl.



Authors:
--------
    Phillip Vandry <vandry@Mlink.NET>

%prep
%setup -q -n gettext-%{version}
%patch
# ---------------------------------------------------------------------------

%build
perl Makefile.PL
make %{?jobs:-j%jobs}
# ---------------------------------------------------------------------------

%check
make test

%install
make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{perl_vendorarch}/Locale
%{perl_vendorarch}/auto/Locale
%doc %{_mandir}/man3/Locale::gettext.3pm.gz
%doc README

%changelog