forked from pool/perl-HTTPS-Daemon
		
	
		
			
	
	
		
			99 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
		
		
			
		
	
	
			99 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
| 
								 | 
							
								#
							 | 
						||
| 
								 | 
							
								# spec file for package perl-HTTPS-Daemon (Version 1.02)
							 | 
						||
| 
								 | 
							
								#
							 | 
						||
| 
								 | 
							
								# Copyright (c) 2005 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://www.suse.de/feedback/
							 | 
						||
| 
								 | 
							
								#
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# 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.02
							 | 
						||
| 
								 | 
							
								Release:      6
							 | 
						||
| 
								 | 
							
								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
							 | 
						||
| 
								 | 
							
								#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 -n perl-HTTPS-Daemon
							 | 
						||
| 
								 | 
							
								* 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
							 |