]> git.pld-linux.org Git - packages/perl-Proc-ProcessTable.git/blame - perl-Proc-ProcessTable.spec
- up to 0.59
[packages/perl-Proc-ProcessTable.git] / perl-Proc-ProcessTable.spec
CommitLineData
339f77f8 1#
2# Conditional build:
07afbbc5 3%bcond_with tests # do perform "make test" (requires mounted /proc)
9c39af6d 4
978b3151 5%define pdir Proc
6%define pnam ProcessTable
9c39af6d 7%include /usr/lib/rpm/macros.perl
8280ca7f 8Summary: Proc::ProcessTable - Perl interface to the UNIX process table
625ae426 9Summary(pl.UTF-8): Proc::ProcessTable - interfejs perlowy do uniksowej tabeli procesów
339f77f8 10Name: perl-Proc-ProcessTable
0e35b313 11Version: 0.59
44b3df60 12Release: 1
24ff1f7b 13# same as perl
14License: GPL v1+ or Artistic
339f77f8 15Group: Development/Languages/Perl
915bf1e9 16Source0: http://www.cpan.org/modules/by-module/Proc/%{pdir}-%{pnam}-%{version}.tar.gz
0e35b313 17# Source0-md5: 3330a3648eeaad54d19a091742a2ac5a
915bf1e9 18URL: http://search.cpan.org/dist/Proc-ProcessTable/
8b98a9ac 19BuildRequires: perl-devel >= 1:5.8.0
d66f3efe 20BuildRequires: rpm-perlprov >= 4.1-13
339f77f8 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This module is a first crack at providing a consistent interface to
25Unix (and maybe other multitasking OS's) process table information.
26The impetus for this came about with my frustration at having to parse
27the output of various systems' ps commands to check whether specific
8280ca7f 28processes were running on different boxes at a larged mixed UNIX site.
a45a01f7
JB
29The output format of ps was different on each OS, and sometimes
30changed with each new release of an OS. Also, running a ps subprocess
31from within a perl or shell script and parsing the output was not a
32very efficient or aesthetic way to do things.
339f77f8 33
e1e4722c
JR
34%description -l pl.UTF-8
35Ten moduł to pierwsza próba udostępnienia spójnego interfejsu do
36informacji dotyczących uniksowej (i może z innych wielozadaniowych
37systemów operacyjnych) tabeli procesów. Impuls do stworzenia tego
38pojawił się wraz z frustracją autora przy analizie wyjścia poleceń ps
39z różnych systemów w celu sprawdzenia, czy określone procesy działają
40na różnych maszynach w dużym zestawie różnych Uniksów. Format wyjścia
41ps był różny na każdym systemie, a czasem zmieniał się wraz z nową
42wersją systemu. Poza tym uruchamianie procesu ps z Perla lub skryptu
43powłoki i analiza jego wyjścia nie były zbyt wydajnym ani estetycznym
a45a01f7 44sposobem.
339f77f8 45
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48
49%build
d66f3efe 50%{__perl} Makefile.PL \
111354aa 51 INSTALLDIRS=vendor
8b98a9ac 52%{__make} \
b2d7c1d5 53 CC="%{__cc}" \
ab2db2e4
MP
54 OPTIMIZE="%{rpmcflags}"
55
fce6460c 56%{?with_tests:%{__make} test}
339f77f8 57
58%install
59rm -rf $RPM_BUILD_ROOT
fce6460c
JB
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
9c39af6d 62
339f77f8 63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
0e35b313 68%doc README README.linux Changes
d66f3efe 69%dir %{perl_vendorarch}/Proc
70%{perl_vendorarch}/Proc/*.pm
71%{perl_vendorarch}/Proc/ProcessTable
72%dir %{perl_vendorarch}/auto/Proc
73%dir %{perl_vendorarch}/auto/Proc/ProcessTable
74%attr(755,root,root) %{perl_vendorarch}/auto/Proc/ProcessTable/*.so
d66f3efe 75%{perl_vendorarch}/auto/Proc/ProcessTable/Process
9c39af6d
ER
76%{_mandir}/man3/Proc::Killall.3pm*
77%{_mandir}/man3/Proc::Killfam.3pm*
78%{_mandir}/man3/Proc::ProcessTable*
This page took 0.075217 seconds and 4 git commands to generate.