3 %bcond_without tests # do not perform "make test"
7 Summary: Shell::Guess - make an educated guess about the shell in use
8 Summary(pl.UTF-8): Shell::Guess - wyuczone zgadywanie używanej powłoki
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Shell/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 030d92331738579c147782b2932b1015
17 URL: https://metacpan.org/release/Shell-Guess
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
22 BuildRequires: perl-Test-Simple >= 0.94
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Shell::Guess makes a reasonably aggressive attempt to determine the
29 shell being employed by the user, either the shell that executed the
30 perl script directly (the "running" shell), or the users' login shell
31 (the "login" shell). It does this by a variety of means available to
32 it, depending on the platform that it is running on.
34 %description -l pl.UTF-8
35 Shell::Guess wykonuje umiarkowanie agresywną próbę określenia powłoki,
36 której używa użytkownik - albo powłoki wywoływanej bezpośrednio przez
37 skrypt perlowy (działającej powłoki), albo powłoki logowania
38 użytkownika. Robi to na wiele różnych sposobów, w zależności od
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorlib}/Shell/Guess.pm
64 %{_mandir}/man3/Shell::Guess.3pm*