You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.0 KiB
125 lines
4.0 KiB
6 months ago
|
Name: perl-Linux-Pid
|
||
|
Version: 0.04
|
||
|
Release: 18%{?dist}
|
||
|
Summary: Get the native PID and the PPID on Linux
|
||
|
|
||
|
Group: Development/Libraries
|
||
|
License: GPL+ or Artistic
|
||
|
URL: http://search.cpan.org/dist/Linux-Pid/
|
||
|
Source0: http://www.cpan.org/modules/by-module/Linux/Linux-Pid-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(threads)
|
||
|
BuildRequires: perl(threads::shared)
|
||
|
BuildRequires: perl(XSLoader)
|
||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||
|
|
||
|
%global __provides_exclude ^Pid\.so
|
||
|
|
||
|
%description
|
||
|
Linux::Pid gets the native PID and the PPID on Linux. It's useful with
|
||
|
multithreaded programs. Linux's C library returns different values of
|
||
|
the PID and the PPID from different threads. This module forces Perl
|
||
|
to call the underlying C functions getpid() and getppid().
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Linux-Pid-%{version}
|
||
|
|
||
|
|
||
|
%build
|
||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
||
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||
|
|
||
|
|
||
|
%check
|
||
|
make test
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc README Changes
|
||
|
%{perl_vendorarch}/auto/Linux
|
||
|
%{perl_vendorarch}/Linux
|
||
|
%{_mandir}/man3/Linux::Pid.3pm.gz
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-18
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||
|
|
||
|
* Tue Nov 20 2012 Petr Šabata <contyk@redhat.com> - 0.04-17
|
||
|
- Add missing buildtime dependencies
|
||
|
- Don't provide private shared libraries
|
||
|
|
||
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-16
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||
|
|
||
|
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.04-15
|
||
|
- Perl 5.16 rebuild
|
||
|
|
||
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-14
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||
|
|
||
|
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.04-13
|
||
|
- Perl mass rebuild
|
||
|
|
||
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-12
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||
|
|
||
|
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-11
|
||
|
- 661697 rebuild for fixing problems with vendorach/lib
|
||
|
|
||
|
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-10
|
||
|
- Mass rebuild with perl-5.12.0
|
||
|
|
||
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.04-9
|
||
|
- rebuild against perl 5.10.1
|
||
|
|
||
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-8
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||
|
|
||
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-7
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||
|
|
||
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-6
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||
|
|
||
|
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.04-5
|
||
|
Rebuild for new perl
|
||
|
|
||
|
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.04-4
|
||
|
- Autorebuild for GCC 4.3
|
||
|
|
||
|
* Sat Jan 12 2008 Xavier Bachelot <xavier@bachelot.org> - 0.04-3
|
||
|
- Remove '|| :' from %%check section.
|
||
|
- Remove uneeded BR:.
|
||
|
|
||
|
* Sun Dec 23 2007 Xavier Bachelot <xavier@bachelot.org> - 0.04-2
|
||
|
- Add missing BR.
|
||
|
|
||
|
* Sat Dec 22 2007 Xavier Bachelot <xavier@bachelot.org> - 0.04-1
|
||
|
- Update to 0.04.
|
||
|
|
||
|
* Tue May 15 2007 Xavier Bachelot <xavier@bachelot.org> - 0.03-2
|
||
|
- Add dist tag
|
||
|
- Clean up spec
|
||
|
|
||
|
* Wed Apr 06 2005 Xavier Bachelot <xavier@bachelot.org> - 0.03-1
|
||
|
- Initial build
|