]> git.pld-linux.org Git - packages/perl-Shell-Guess.git/commitdiff
- new master auto/th/perl-Shell-Guess-0.09-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 3 May 2020 07:45:16 +0000 (09:45 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 3 May 2020 07:45:16 +0000 (09:45 +0200)
perl-Shell-Guess.spec [new file with mode: 0644]

diff --git a/perl-Shell-Guess.spec b/perl-Shell-Guess.spec
new file mode 100644 (file)
index 0000000..bcb4bfc
--- /dev/null
@@ -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*
This page took 0.131111 seconds and 4 git commands to generate.