5b07b8a
Name:           perl-Unix-Process
5b07b8a
Version:        1.3101
3229649
Release:        5%{?dist}
5b07b8a
Summary:        Perl extension to get PID information from ps command
5b07b8a
License:        LGPLv2+
eed036d
URL:            https://metacpan.org/release/Unix-Process
eed036d
Source0:        https://cpan.metacpan.org/authors/id/J/JE/JETTERO/Unix-Process-%{version}.tar.gz
5b07b8a
# Mark occurrences of /bin/ps
5b07b8a
Patch0:         Unix-Process-1.3101-Replace-bin-ps.patch
5b07b8a
BuildArch:      noarch
5b07b8a
BuildRequires:  make
5b07b8a
BuildRequires:  perl-generators
5b07b8a
BuildRequires:  perl-interpreter
5b07b8a
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
5b07b8a
BuildRequires:  sed
5b07b8a
# Run-time:
5b07b8a
BuildRequires:  perl(Carp)
5b07b8a
BuildRequires:  perl(IPC::System::Simple)
5b07b8a
BuildRequires:  perl(strict)
5b07b8a
BuildRequires:  perl(warnings)
5b07b8a
BuildRequires:  procps-ng
5b07b8a
# Tests:
5b07b8a
BuildRequires:  perl(Test)
5b07b8a
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
5b07b8a
Requires:       procps-ng
5b07b8a
5b07b8a
%description
5b07b8a
This is a Perl module that can fetch ps command output fields.
5b07b8a
5b07b8a
%prep
5b07b8a
%setup -q -n Unix-Process-%{version}
5b07b8a
# Correct ps command location
5b07b8a
%patch0 -p1
5b07b8a
sed -i -e 's|XXX|%{_bindir}/ps|g' Makefile.PL Process.pm
5b07b8a
5b07b8a
%build
5b07b8a
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
5b07b8a
make %{?_smp_mflags}
5b07b8a
5b07b8a
%install
5b07b8a
make pure_install DESTDIR=$RPM_BUILD_ROOT
5b07b8a
%{_fixperms} $RPM_BUILD_ROOT/*
5b07b8a
5b07b8a
%check
5b07b8a
make test
5b07b8a
5b07b8a
%files
5b07b8a
# The README does not belong to this distribution
5b07b8a
%doc Changes
5b07b8a
%{perl_vendorlib}/*
5b07b8a
%{_mandir}/man3/*
5b07b8a
5b07b8a
%changelog
3229649
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3101-5
3229649
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3229649
d784060
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.3101-4
d784060
- Perl 5.28 rebuild
d784060
de16066
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3101-3
de16066
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
de16066
f78dae7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3101-2
f78dae7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f78dae7
5b07b8a
* Fri Jul 21 2017 Petr Pisar <ppisar@redhat.com> 1.3101-1
5b07b8a
- Specfile autogenerated by cpanspec 1.78.