[packages/perl-Shell-Guess] - new
qboosh
qboosh at pld-linux.org
Sun May 3 09:45:02 CEST 2020
commit 5749e98287f979c93d7b87316cebfa4ecd1c60d1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 3 09:45:16 2020 +0200
- new
perl-Shell-Guess.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
---
diff --git a/perl-Shell-Guess.spec b/perl-Shell-Guess.spec
new file mode 100644
index 0000000..bcb4bfc
--- /dev/null
+++ b/perl-Shell-Guess.spec
@@ -0,0 +1,64 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Shell
+%define pnam Guess
+Summary: Shell::Guess - make an educated guess about the shell in use
+Summary(pl.UTF-8): Shell::Guess - wyuczone zgadywanie używanej powłoki
+Name: perl-Shell-Guess
+Version: 0.09
+Release: 1
+# same as perl 5
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Shell/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 030d92331738579c147782b2932b1015
+URL: https://metacpan.org/release/Shell-Guess
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl-Test-Simple >= 0.94
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Shell::Guess makes a reasonably aggressive attempt to determine the
+shell being employed by the user, either the shell that executed the
+perl script directly (the "running" shell), or the users' login shell
+(the "login" shell). It does this by a variety of means available to
+it, depending on the platform that it is running on.
+
+%description -l pl.UTF-8
+Shell::Guess wykonuje umiarkowanie agresywną próbę określenia powłoki,
+której używa użytkownik - albo powłoki wywoływanej bezpośrednio przez
+skrypt perlowy (działającej powłoki), albo powłoki logowania
+użytkownika. Robi to na wiele różnych sposobów, w zależności od
+platformy.
+
+%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}/Shell/Guess.pm
+%{_mandir}/man3/Shell::Guess.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Shell-Guess.git/commitdiff/5749e98287f979c93d7b87316cebfa4ecd1c60d1
More information about the pld-cvs-commit
mailing list