[packages/perl-CGI-Struct] New package

arekm arekm at pld-linux.org
Thu Nov 19 15:21:56 CET 2026


commit 037dffb419e962c5d1b17a69659704eb53c2f943
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 14:50:48 2026 +0100

    New package

 perl-CGI-Struct.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
---
diff --git a/perl-CGI-Struct.spec b/perl-CGI-Struct.spec
new file mode 100644
index 0000000..3119480
--- /dev/null
+++ b/perl-CGI-Struct.spec
@@ -0,0 +1,54 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+
+%define		pdir	CGI
+%define		pnam	Struct
+Summary:	CGI::Struct - Build structures from CGI data
+Name:		perl-CGI-Struct
+Version:	1.21
+Release:	1
+License:	BSD
+Group:		Development/Languages/Perl
+Source0:	https://www.cpan.org/authors/id/F/FU/FULLERMD/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	4fd2da8759344f16553c2058bfee3a48
+URL:		https://metacpan.org/dist/CGI-Struct
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-Deep
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CGI::Struct lets you transform CGI data keys that look like perl data
+structures into actual perl data structures, similarly to PHP's
+building arrays from form data. It does not read the request itself;
+it takes a reference to a hash of keys and values, such as the one
+returned by CGI->Vars.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/CGI/Struct.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-CGI-Struct.git/commitdiff/037dffb419e962c5d1b17a69659704eb53c2f943



More information about the pld-cvs-commit mailing list