File perl-HTTPS-Daemon.spec of Package perl-HTTPS-Daemon

#
# spec file for package perl-HTTPS-Daemon (Version 1.04)
#
# 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-HTTPS-Daemon
BuildRequires:  perl-IO-Socket-SSL
License:        Artistic License
Group:          Development/Libraries/Perl
Requires:       perl-IO-Socket-SSL perl-libwww-perl
AutoReqProv:    on
Summary:        a simple http server class with SSL support
Version:        1.04
Release:        43
Source:         HTTP-Daemon-SSL-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
HTTP::Daemon::SSL is a descendant of HTTP::Daemon that uses SSL sockets
(via IO::Socket::SSL) instead of cleartext sockets.  It also handles
SSL-specific problems, such as dealing with HTTP clients that attempt
to connect to it without using SSL.



Authors:
--------
    Peter Behroozi <behrooz@fas.harvard.edu>

%prep
%setup -n HTTP-Daemon-SSL-%{version}
# ---------------------------------------------------------------------------

%build
perl Makefile.PL
make
rm -rf certs/.svn
#make test
# ---------------------------------------------------------------------------

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%if %suse_version > 820
make DESTDIR=$RPM_BUILD_ROOT \
	 INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
	 install_vendor
%perl_process_packlist
%else
install -d $RPM_BUILD_ROOT/%{perl_archlib}
make PREFIX=$RPM_BUILD_ROOT/usr \
         INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
         install
install -d  $RPM_BUILD_ROOT/var/adm/perl-modules
cat $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod | sed "s@$RPM_BUILD_ROOT@@g" > $RPM_BUILD_ROOT/var/adm/perl-modules/%{name}
cd $RPM_BUILD_ROOT/%{perl_sitearch}/auto/HTTP/Daemon
sed "s@$RPM_BUILD_ROOT@@g" < .packlist | sort -u > .packlist.tmp
mv .packlist.tmp .packlist
%endif

%files
%defattr(-,root,root)
%if %suse_version > 820
%dir %{perl_vendorlib}/HTTP/Daemon
%dir %{perl_vendorarch}/auto/HTTP
%dir %{perl_vendorarch}/auto/HTTP/Daemon
%dir %{perl_vendorarch}/auto/HTTP/Daemon/SSL
%{perl_vendorlib}/HTTP/Daemon/SSL.pm
%{perl_vendorarch}/auto/HTTP/Daemon/SSL/.packlist
/var/adm/perl-modules/%{name}
%else
%dir %{perl_sitelib}/HTTP/Daemon
%{perl_sitelib}/HTTP/Daemon/SSL.pm
%{perl_sitearch}/auto/HTTP/Daemon/SSL/.packlist
%endif
%doc BUGS Changes MANIFEST README
%doc %{_mandir}/man3/*
%doc certs

%changelog
* Mon Apr 07 2008 ug@suse.de
- .svn dir dropped from package
* Fri Apr 04 2008 ug@suse.de
- version update from 1.02 to 1.04
- removes unnecessary _need_more
- which, by side effect, fixes two outstanding bugs:
  http://rt.cpan.org/Ticket/Display.html?id=21395
  http://rt.cpan.org/Ticket/Display.html?id=15470
- Fixes problem where accep() will never timeout
  http://rt.cpan.org/Ticket/Display.html?id=28417
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Wed Aug 03 2005 ro@suse.de
- disable make test for the moment, it hangs
* Fri Jan 21 2005 ug@suse.de
- version update from 1.01 to 1.02
- Async updates
- Documentation update to mention SSL certificates.
- Update to URL function to return 'https' instead of 'http'
* Mon Aug 25 2003 ug@suse.de
- initial package
openSUSE Build Service is sponsored by