]> git.pld-linux.org Git - SPECS.git/blob - perl-Proc-Simple.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Proc-Simple.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Proc
6 %define         pnam    Simple
7 Summary:        Proc::Simple Perl module - launch and control background processes
8 Summary(pl.UTF-8):      Moduł Perla Proc::Simple - uruchamianie i sterowanie procesami w tle
9 Name:           perl-Proc-Simple
10 Version:        1.30
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/Proc/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  c53e2201fb2e2afcdee1a0e493a2066f
17 Patch0:         %{name}-paths.patch
18 URL:            http://search.cpan.org/dist/Proc-Simple/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Proc::Simple is the module to launch and control background processes.
26 It provides objects mimicing real-life processes from a user's point
27 of view.
28
29 %description -l pl.UTF-8
30 Proc::Simple to moduł umożliwiający uruchamianie i kontrolowanie
31 procesów w tle. Dostarcza obiekty naśladujące prawdziwe procesy z
32 punktu widzenia użytkownika.
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %patch0 -p0
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51 cp -f eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README
59 %{perl_vendorlib}/Proc/Simple.pm
60 %dir %{perl_vendorlib}/auto/Proc
61 %dir %{perl_vendorlib}/auto/Proc/Simple
62 %{perl_vendorlib}/auto/Proc/Simple/autosplit.ix
63 %{_mandir}/man3/*
64 %dir %{_examplesdir}/%{name}-%{version}
65 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*
This page took 0.477665 seconds and 3 git commands to generate.