File perl-URI.spec of Package perl-URI
#
# spec file for package perl-URI (Version 1.38)
#
# Copyright (c) 2009 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-URI
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: URI - Uniform Resource Identifiers (absolute and relative)
Version: 1.38
Release: 2
License: Artistic License ..
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/URI
Source: %{cpan_name}-%{version}.tar.bz2
Patch: %{cpan_name}-1.37-path.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(MIME::Base64) >= 2
Requires: perl = %{perl_version}
Requires: perl(MIME::Base64) >= 2
Recommends: perl-Business-ISBN >= 2.00
%description
This package contains the URI.pm module with friends. The module
implements the URI class. Objects of this class represent Uniform
Resource Identifier references as specified in RFC 2396 and updated by
RFC 2732.
URI objects can be used to access and manipulate the various
components that make up these strings. There are also methods to
combine URIs in various ways.
Authors: Gisle Aas <gisle@aas.no>
%prep
%setup -q -n %{cpan_name}-%{version}
%patch
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
touch OFFLINE
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes README rfc2396.txt
%changelog