11
0

Compare commits

4 Commits

3 changed files with 44 additions and 39 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-HTTP-Request-AsCGI/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-HTTP-Request-AsCGI)

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 6 22:26:07 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 18 11:07:27 UTC 2011 - coolo@suse.com Fri Nov 18 11:07:27 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-HTTP-Request-AsCGI # spec file for package perl-HTTP-Request-AsCGI
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,37 +12,34 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: perl-HTTP-Request-AsCGI
Version: 1.2
Release: 1
Summary: Set up a CGI environment from an HTTP::Request
License: GPL-1.0+ or Artistic-1.0
%define cpan_name HTTP-Request-AsCGI %define cpan_name HTTP-Request-AsCGI
Group: Development/Libraries/Perl Name: perl-HTTP-Request-AsCGI
Url: http://search.cpan.org/dist/HTTP-Request-AsCGI/ Version: 1.200.0
#Source: http://www.cpan.org/modules/by-module/HTTP/HTTP-Request-AsCGI-%{version}.tar.gz Release: 0
Source: %{cpan_name}-%{version}.tar.gz # 1.2 -> normalize -> 1.200.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build %define cpan_version 1.2
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Set up a CGI environment from an HTTP::Request
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/F/FL/FLORA/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch BuildArch: noarch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Accessor) BuildRequires: perl(Class::Accessor)
BuildRequires: perl(HTTP::Request) BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response) >= 1.53 BuildRequires: perl(HTTP::Response) >= 1.530
BuildRequires: perl(IO::File)
BuildRequires: perl(URI::Escape) BuildRequires: perl(URI::Escape)
Requires: perl(Carp)
Requires: perl(Class::Accessor) Requires: perl(Class::Accessor)
Requires: perl(HTTP::Request) Requires: perl(HTTP::Request)
Requires: perl(HTTP::Response) >= 1.53 Requires: perl(HTTP::Response) >= 1.530
Requires: perl(IO::File)
Requires: perl(URI::Escape) Requires: perl(URI::Escape)
Provides: perl(HTTP::Request::AsCGI) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -50,32 +47,22 @@ Provides a convenient way of setting up an CGI environment from an
HTTP::Request. HTTP::Request.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} %make_build
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check %check
make test make test
%clean %install
rm -rf $RPM_BUILD_ROOT %perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files %files -f %{name}.files
%defattr(-,root,root,-) %doc Changes examples README
%doc Changes dist.ini examples LICENSE README %license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog %changelog