[packages/perl-Env-ShellWords] - new
qboosh
qboosh at pld-linux.org
Fri Sep 19 21:19:31 CEST 2025
commit 3443784079ffc977f84ab8e9b3db09fa7a9d3735
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Sep 19 21:22:22 2025 +0200
- new
perl-Env-ShellWords.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
---
diff --git a/perl-Env-ShellWords.spec b/perl-Env-ShellWords.spec
new file mode 100644
index 0000000..65886d6
--- /dev/null
+++ b/perl-Env-ShellWords.spec
@@ -0,0 +1,73 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+#
+%define pdir Env
+%define pnam ShellWords
+Summary: Env::ShellWords - Environment variables for arguments as array
+Summary(pl.UTF-8): Env::ShellWords - zmienne środowiskowe dla argumentów w postaci tablicy
+Name: perl-Env-ShellWords
+Version: 0.02
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: https://www.cpan.org/modules/by-module/Env/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: cbc489518a55404e95bd6e015741dc6a
+URL: https://metacpan.org/dist/Env-ShellWords
+BuildRequires: perl-ExtUtils-MakeMaker
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl-Carp
+BuildRequires: perl-Test2-Suite >= 0.000060
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides an array like interface to environment variables
+that contain flags. For example Autoconf can use the environment
+variables like CFLAGS or LDFLAGS, and this allows you to manipulate
+those variables without doing space quoting and other messy mucky
+stuff.
+
+The intent is to use this from alienfile to deal with hierarchical
+prerequisites.
+
+%description -l pl.UTF-8
+Ten moduł udostepnia interfejs w stylu tablicy do zmiennych
+środowiskowych zawierających flagi. Na przykład Autoconf może używać
+zmiennych środowiskowych typu CFLAGS czy LDFLAGS, a ten moduł pozwala
+operować na tych zmiennych bez ochrony spacji cytowaniem i innych
+brzydkich rzeczy.
+
+Główny przypadek użycia to obsługa hierarchicznych zależności w
+lienfile.
+
+%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
+%{perl_vendorlib}/Env/ShellWords.pm
+%{_mandir}/man3/Env::ShellWords.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Env-ShellWords.git/commitdiff/3443784079ffc977f84ab8e9b3db09fa7a9d3735
More information about the pld-cvs-commit
mailing list