8
0
Files
perl-Net-HTTPServer/perl-Net-HTTPServer.spec

82 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Net-HTTPServer (Version 1.1.1)
#
# 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/
#
%define cpan_name Net-HTTPServer
Name: perl-Net-HTTPServer
Summary: A simple perl Http Server
Version: 1.1.1
Release: 1
Group: Development/Libraries/Perl
License: LGPL v2.0 or later
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
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
* Tue Dec 23 2008 coolo@suse.de
- fix package name to follow the naming conventions
* Mon Sep 15 2008 mmaier@suse.de
- added two patches
- http://rt.cpan.org/Public/Bug/Display.html?id=39220
- http://rt.cpan.org/Public/Bug/Display.html?id=24361
* Tue Sep 09 2008 mmaier@suse.de
- initial package version 1.1.1