Blame SPECS/perl-Linux-Pid.spec

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