| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:27:03 +00:00
										 |  |  | # spec file for package perl-HTTP-Daemon
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2025-07-11 14:15:30 +00:00
										 |  |  | # Copyright (c) 2025 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # 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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-02 05:24:42 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:27:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-15 15:13:36 +00:00
										 |  |  | %define cpan_name HTTP-Daemon
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | Name:           perl-HTTP-Daemon
 | 
					
						
							| 
									
										
										
										
											2025-07-11 14:15:30 +00:00
										 |  |  | Version:        6.160.0
 | 
					
						
							| 
									
										
										
										
											2012-03-01 16:23:26 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2025-07-11 14:15:30 +00:00
										 |  |  | # 6.16 -> normalize -> 6.160.0
 | 
					
						
							|  |  |  | %define cpan_version 6.16
 | 
					
						
							| 
									
										
										
										
											2022-07-18 15:36:00 +00:00
										 |  |  | License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
					
						
							| 
									
										
										
										
											2023-03-10 10:46:29 +00:00
										 |  |  | Summary:        Simple http server class
 | 
					
						
							| 
									
										
										
										
											2020-05-27 08:33:49 +00:00
										 |  |  | URL:            https://metacpan.org/release/%{cpan_name}
 | 
					
						
							| 
									
										
										
										
											2025-07-11 14:15:30 +00:00
										 |  |  | Source0:        https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{cpan_version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2019-04-02 05:25:46 +00:00
										 |  |  | Source1:        cpanspec.yml
 | 
					
						
							| 
									
										
										
										
											2012-03-01 16:23:26 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							|  |  |  | BuildRequires:  perl
 | 
					
						
							|  |  |  | BuildRequires:  perl-macros
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | BuildRequires:  perl(HTTP::Date) >= 6
 | 
					
						
							|  |  |  | BuildRequires:  perl(HTTP::Request) >= 6
 | 
					
						
							|  |  |  | BuildRequires:  perl(HTTP::Response) >= 6
 | 
					
						
							|  |  |  | BuildRequires:  perl(HTTP::Status) >= 6
 | 
					
						
							| 
									
										
										
										
											2022-02-15 15:13:36 +00:00
										 |  |  | BuildRequires:  perl(IO::Socket::IP) >= 0.32
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | BuildRequires:  perl(LWP::MediaTypes) >= 6
 | 
					
						
							| 
									
										
										
										
											2025-07-11 14:15:30 +00:00
										 |  |  | BuildRequires:  perl(Module::Build)
 | 
					
						
							|  |  |  | BuildRequires:  perl(Module::Build::Tiny) >= 0.34
 | 
					
						
							| 
									
										
										
										
											2019-04-02 05:25:46 +00:00
										 |  |  | BuildRequires:  perl(Module::Metadata)
 | 
					
						
							| 
									
										
										
										
											2020-05-27 08:33:49 +00:00
										 |  |  | BuildRequires:  perl(Test::More) >= 0.98
 | 
					
						
							| 
									
										
										
										
											2019-04-02 05:25:46 +00:00
										 |  |  | BuildRequires:  perl(Test::Needs)
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | Requires:       perl(HTTP::Date) >= 6
 | 
					
						
							|  |  |  | Requires:       perl(HTTP::Request) >= 6
 | 
					
						
							|  |  |  | Requires:       perl(HTTP::Response) >= 6
 | 
					
						
							|  |  |  | Requires:       perl(HTTP::Status) >= 6
 | 
					
						
							| 
									
										
										
										
											2022-02-15 15:13:36 +00:00
										 |  |  | Requires:       perl(IO::Socket::IP) >= 0.32
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | Requires:       perl(LWP::MediaTypes) >= 6
 | 
					
						
							| 
									
										
										
										
											2025-07-11 14:15:30 +00:00
										 |  |  | Provides:       perl(HTTP::Daemon) = %{version}
 | 
					
						
							|  |  |  | %undefine       __perllib_provides
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | %{perl_requires}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | Instances of the 'HTTP::Daemon' class are HTTP/1.1 servers that listen on a
 | 
					
						
							|  |  |  | socket for incoming requests. The 'HTTP::Daemon' is a subclass of
 | 
					
						
							| 
									
										
										
										
											2019-07-28 15:09:22 +00:00
										 |  |  | 'IO::Socket::IP', so you can perform socket operations directly on it too.
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-27 08:33:49 +00:00
										 |  |  | Please note that 'HTTP::Daemon' used to be a subclass of
 | 
					
						
							|  |  |  | 'IO::Socket::INET'. To support IPv6, it switched the parent class to
 | 
					
						
							|  |  |  | 'IO::Socket::IP' at version 6.05. See IPv6 SUPPORT for details.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-01 16:23:26 +00:00
										 |  |  | The accept() method will return when a connection from a client is
 | 
					
						
							|  |  |  | available. The returned value will be an 'HTTP::Daemon::ClientConn' object
 | 
					
						
							| 
									
										
										
										
											2019-07-28 15:09:22 +00:00
										 |  |  | which is another 'IO::Socket::IP' subclass. Calling the get_request()
 | 
					
						
							| 
									
										
										
										
											2012-03-01 16:23:26 +00:00
										 |  |  | method on this object will read data from the client and return an
 | 
					
						
							|  |  |  | 'HTTP::Request' object. The ClientConn object also provide methods to send
 | 
					
						
							|  |  |  | back various responses.
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2025-07-11 14:15:30 +00:00
										 |  |  | %autosetup -n %{cpan_name}-%{cpan_version} -p1
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2019-04-02 05:25:46 +00:00
										 |  |  | perl Build.PL --installdirs=vendor
 | 
					
						
							|  |  |  | ./Build build --flags=%{?_smp_mflags}
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2019-04-02 05:25:46 +00:00
										 |  |  | ./Build test
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2019-04-02 05:25:46 +00:00
										 |  |  | ./Build install --destdir=%{buildroot} --create_packlist=0
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | %perl_gen_filelist
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %files -f %{name}.files
 | 
					
						
							| 
									
										
										
										
											2019-04-03 07:37:46 +00:00
										 |  |  | %doc Changes CONTRIBUTING README
 | 
					
						
							|  |  |  | %license LICENCE
 | 
					
						
							| 
									
										
										
										
											2011-03-18 13:26:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |