8
0
Files
perl-Net-HTTPServer/perl-Net-HTTPServer.spec
OBS User autobuild 91b78ce42a Accepting request 29250 from devel:languages:perl
Copy from devel:languages:perl/perl-Net-HTTPServer based on submit request 29250 from user coolo

OBS-URL: https://build.opensuse.org/request/show/29250
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-HTTPServer?expand=0&rev=3
2010-01-12 12:17:35 +00:00

74 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-Net-HTTPServer (Version 1.1.1)
#
# 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/
#
%define cpan_name Net-HTTPServer
Name: perl-Net-HTTPServer
Summary: A simple perl Http Server
Version: 1.1.1
Release: 2
Group: Development/Libraries/Perl
License: LGPLv2.0+
BuildRequires: perl perl-URI
Requires: perl = %{perl_version} perl-URI
Url: http://search.cpan.org/~reatmon/Net-HTTPServer-1.1.1/
Source: %{cpan_name}-%{version}.tar.bz2
Patch0: handlewidechar.patch
Patch1: escaped_characters.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Net::HTTPServer basically turns a CGI script into a stand alone server.
Useful for temporary services, mobile/local servers, or embedding an
HTTP server into another program.
Authors:
--------
Ryan Eatmon <reatmon@mail.com>
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%patch1 -p1
%build
perl Makefile.PL
make %{?_smp_mflags}
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README CHANGES MANIFEST
%doc %{_mandir}/man?/*
%dir %{perl_vendorlib}/Net
%dir %{perl_vendorlib}/Net/HTTPServer
%{perl_vendorlib}/Net/*
%{perl_vendorarch}/auto/Net
/var/adm/perl-modules/%{name}
%changelog