]> git.pld-linux.org Git - packages/perl-String-ShellQuote.git/blob - perl-String-ShellQuote.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-String-ShellQuote.git] / perl-String-ShellQuote.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    String
6 %define         pnam    ShellQuote
7 Summary:        String::ShellQuote - quote strings for passing through the shell
8 Summary(pl.UTF-8):      String::ShellQuote - cytowanie łańcuchów do przekazywania przez powłokę
9 Name:           perl-String-ShellQuote
10 Version:        1.04
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  da6329dc482b21adf5697cfbd2ac5412
17 URL:            http://search.cpan.org/dist/String-ShellQuote/
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 String::ShellQuote module contains some functions which are useful for
25 quoting strings which are going to pass through the shell or a
26 shell-like object.
27
28 %description -l pl.UTF-8
29 Moduł String::ShellQuote zawiera funkcje przydatne przy cytowaniu
30 łańcuchów znaków tak, by mogły być przekazane do powłoki lub innego
31 obiektu zachowującego się jak powłoka.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make}
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes README
55 %attr(755,root,root) %{_bindir}/shell-quote
56 %{perl_vendorlib}/String/ShellQuote.pm
57 %{_mandir}/man1/shell-quote.1p*
58 %{_mandir}/man3/String::ShellQuote.3pm*
This page took 0.0906 seconds and 4 git commands to generate.