2007-01-16 00:31:58 +01:00
|
|
|
#
|
2011-11-17 15:07:39 +01:00
|
|
|
# spec file for package perl-Text-Iconv
|
2007-01-16 00:31:58 +01:00
|
|
|
#
|
2011-11-17 15:07:39 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:31:58 +01:00
|
|
|
#
|
2009-06-18 17:14:03 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:31:58 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 17:14:03 +02:00
|
|
|
|
|
|
|
Name: perl-Text-Iconv
|
2011-11-17 15:07:39 +01:00
|
|
|
%define cpan_name Text-Iconv
|
2010-01-09 11:51:45 +01:00
|
|
|
Summary: Perl interface to iconv() codeset conversion function
|
|
|
|
Version: 1.7
|
2011-11-17 15:07:39 +01:00
|
|
|
Release: 7
|
2011-12-06 18:48:54 +01:00
|
|
|
License: Artistic-1.0
|
2009-06-18 17:14:03 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2010-01-09 11:51:45 +01:00
|
|
|
Url: http://search.cpan.org/dist/Text-Iconv
|
2011-11-17 16:53:25 +01:00
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
2009-06-18 17:14:03 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 15:53:50 +01:00
|
|
|
%{perl_requires}
|
2010-01-09 11:51:45 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2007-01-16 00:31:58 +01:00
|
|
|
|
|
|
|
%description
|
2010-01-09 11:51:45 +01:00
|
|
|
The Text::Iconv module provides a Perl interface to the iconv() function as
|
|
|
|
defined by the Single UNIX Specification.
|
2007-01-16 00:31:58 +01:00
|
|
|
|
2010-01-09 11:51:45 +01:00
|
|
|
The convert() method converts the encoding of characters in the input string
|
|
|
|
from the fromcode codeset to the tocode codeset, and returns the result.
|
2007-01-16 00:31:58 +01:00
|
|
|
|
2010-01-09 11:51:45 +01:00
|
|
|
Settings of fromcode and tocode and their permitted combinations are
|
|
|
|
implementation-dependent. Valid values are specified in the system
|
|
|
|
documentation; the iconv(1) utility should also provide a -l option that lists
|
|
|
|
all supported codesets.
|
2007-01-16 00:31:58 +01:00
|
|
|
|
|
|
|
%prep
|
2010-01-09 11:51:45 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-16 00:31:58 +01:00
|
|
|
|
|
|
|
%build
|
2010-01-09 11:51:45 +01:00
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2010-01-12 13:02:07 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
2010-01-09 11:51:45 +01:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2007-01-16 00:31:58 +01:00
|
|
|
|
|
|
|
%install
|
2010-01-09 11:51:45 +01:00
|
|
|
%perl_make_install
|
2007-01-16 00:31:58 +01:00
|
|
|
%perl_process_packlist
|
2010-01-09 11:51:45 +01:00
|
|
|
%perl_gen_filelist
|
2007-01-16 00:31:58 +01:00
|
|
|
|
|
|
|
%clean
|
2010-01-09 11:51:45 +01:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-16 00:31:58 +01:00
|
|
|
|
2010-01-09 11:51:45 +01:00
|
|
|
%files -f %{name}.files
|
|
|
|
# normally you only need to check for doc files
|
|
|
|
%defattr(-,root,root,)
|
|
|
|
%doc Changes README
|
2007-01-16 00:31:58 +01:00
|
|
|
|
2009-06-18 17:14:03 +02:00
|
|
|
%changelog
|