]> git.pld-linux.org Git - packages/perl-Shell-Guess.git/blob - perl-Shell-Guess.spec
- new
[packages/perl-Shell-Guess.git] / perl-Shell-Guess.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Shell
6 %define         pnam    Guess
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
9 Name:           perl-Shell-Guess
10 Version:        0.09
11 Release:        1
12 # same as perl 5
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
21 %if %{with tests}
22 BuildRequires:  perl-Test-Simple >= 0.94
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
33
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
39 platformy.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} pure_install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Changes
63 %{perl_vendorlib}/Shell/Guess.pm
64 %{_mandir}/man3/Shell::Guess.3pm*
This page took 0.089517 seconds and 4 git commands to generate.