]>
Commit | Line | Data |
---|---|---|
85d7fc92 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
ba275727 | 4 | |
0ade4fbc | 5 | %define pdir Proc |
6 | %define pnam Background | |
ba275727 | 7 | %include /usr/lib/rpm/macros.perl |
b1652d78 | 8 | Summary: Proc::Background Perl module - generic interface to background process management |
176e1a06 | 9 | Summary(pl.UTF-8): Moduł Perla Proc::Background - ogólny interfejs do zarządzania procesami w tle |
832e619c | 10 | Name: perl-Proc-Background |
57b8c794 | 11 | Version: 1.10 |
12 | Release: 1 | |
85d7fc92 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
832e619c | 15 | Group: Development/Languages/Perl |
f2775664 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
57b8c794 | 17 | # Source0-md5: 4f9d850e31c4131d1a28ffe0d26ef4e2 |
ba275727 | 18 | URL: http://search.cpan.org/dist/Proc-Background/ |
2464526b | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
0d11f225 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
72171728 | 21 | Provides: perl(Proc::Generic) |
7cf90beb | 22 | BuildArch: noarch |
5d151109 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
832e619c | 24 | |
25 | %description | |
2255cb4c | 26 | Proc::Background Perl module is a generic interface for placing |
27 | processes in the background on Unix platforms. This module lets you | |
28 | start, kill, wait on, retrieve exit values, and see if background | |
29 | processes still exist. | |
832e619c | 30 | |
08e890da JR |
31 | %description -l pl.UTF-8 |
32 | Moduł Perla Proc::Background stanowi podstawowy interfejs dla | |
33 | umieszczania procesów w tle na platformach uniksowych. Moduł ten | |
34 | umożliwia uruchamianie, zabijanie procesów, oczekiwanie na ich | |
35 | zakończenie i odbieranie kodu powrotu procesu. Za jego pomocą można | |
36 | też zobaczyć, jakie procesy nadal działają w tle. | |
832e619c | 37 | |
38 | %prep | |
9ede8250 | 39 | %setup -q -n %{pdir}-%{pnam}-%{version} |
832e619c | 40 | |
41 | %build | |
0d11f225 | 42 | %{__perl} Makefile.PL \ |
9413c497 | 43 | INSTALLDIRS=vendor |
9f487c9a | 44 | %{__make} |
832e619c | 45 | |
85d7fc92 | 46 | %{?with_tests:%{__make} test} |
47 | ||
832e619c | 48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
832e619c | 50 | |
3279ae81 | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
832e619c | 53 | |
832e619c | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
2255cb4c | 59 | %doc Changes README |
832e619c | 60 | %attr(755,root,root) %{_bindir}/timed-process |
0d11f225 | 61 | %{perl_vendorlib}/Proc/Background.pm |
62 | %dir %{perl_vendorlib}/Proc/Background | |
63 | %{perl_vendorlib}/Proc/Background/Unix.pm | |
64 | #%%{perl_vendorlib}/Proc/Background/Win32.pm | |
2255cb4c | 65 | %{_mandir}/man1/* |
66 | %{_mandir}/man3/Proc::Background.* | |
67 | %{_mandir}/man3/Proc::Background::Unix* | |
184a1bea | 68 | #%%{_mandir}/man3/Proc::Background::Win32* |