Files
perl-HTTP-Response-Encoding/perl-HTTP-Response-Encoding.spec

62 lines
1.4 KiB
RPMSpec

#
# spec file for package perl-Text-Scan (Version 0.30)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%define modname HTTP-Response-Encoding
Name: perl-%{modname}
Version: 0.06
Release: 1
URL: http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI
Summary: Adds Encoding Methods to HTTP::Response
Requires: perl = %{perl_version}
BuildRequires: perl-libwww-perl perl(Encode) perl(HTTP::Response) perl(Test::More)
Requires: perl-libwww-perl perl(Encode) perl(HTTP::Response)
License: GPL/Artistic
Group: Development/Libraries/Perl
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
%description
This module adds charset(), encoder(), and encoding() methods to HTTP::Response
objects.
Authors:
--------
Dan Kogai <dankogai@dan.co.jp>
%prep
%setup -q -n %{modname}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
%check
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc Changes README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/HTTP
%{perl_vendorarch}/auto/HTTP
/var/adm/perl-modules/%{name}
%changelog