3efe69
# Run optional test
3efe69
%bcond_with perl_Devel_CheckLib_enables_optional_test
3efe69
3efe69
Name:           perl-Devel-CheckLib
3efe69
Version:        1.11
3efe69
Release:        5%{?dist}
3efe69
Summary:        Check that a library is available
3efe69
3efe69
License:        GPL+ or Artistic
3efe69
Group:          Development/Libraries
3efe69
URL:            http://search.cpan.org/dist/Devel-CheckLib/
3efe69
Source0:        http://www.cpan.org/modules/by-module/Devel/Devel-CheckLib-%{version}.tar.gz
3efe69
3efe69
BuildArch:      noarch
3efe69
3efe69
BuildRequires:  make
3efe69
BuildRequires:  perl-interpreter
3efe69
BuildRequires:  perl-generators
3efe69
BuildRequires:  perl(ExtUtils::MakeMaker)
3efe69
# Run-time:
3efe69
BuildRequires:  perl(Exporter)
3efe69
BuildRequires:  perl(File::Spec)
3efe69
BuildRequires:  perl(File::Temp) >= 0.16
3efe69
BuildRequires:  perl(Text::ParseWords)
3efe69
# Tests:
3efe69
BuildRequires:  perl(Cwd)
3efe69
BuildRequires:  perl(File::Spec::Functions)
3efe69
BuildRequires:  perl(IO::File)
3efe69
BuildRequires:  perl(IO::CaptureOutput) >= 1.0801
3efe69
BuildRequires:  perl(lib)
3efe69
BuildRequires:  perl(Test::More) >= 0.62
3efe69
%if %{with perl_Devel_CheckLib_enables_optional_test}
3efe69
# Optional tests
3efe69
BuildRequires:  perl(Mock::Config)
3efe69
%endif
3efe69
3efe69
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
3efe69
3efe69
%description
3efe69
Devel::CheckLib is a perl module that checks whether a particular C library
3efe69
and its headers are available.
3efe69
3efe69
%prep
3efe69
%setup -q -n Devel-CheckLib-%{version}
3efe69
3efe69
%build
3efe69
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
3efe69
make %{?_smp_mflags}
3efe69
3efe69
%install
3efe69
make pure_install DESTDIR=$RPM_BUILD_ROOT
3efe69
%{_fixperms} $RPM_BUILD_ROOT/*
3efe69
3efe69
%check
3efe69
make test
3efe69
3efe69
%files
3efe69
%doc CHANGES README TODO
3efe69
%{_bindir}/*
3efe69
%{perl_vendorlib}/Devel*
3efe69
%{_mandir}/man1/*.1*
3efe69
%{_mandir}/man3/*.3*
3efe69
3efe69
3efe69
%changelog
3efe69
* Fri Jul 13 2018 Petr Pisar <ppisar@redhat.com> - 1.11-5
3efe69
- Disable optional test
3efe69
3efe69
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-4
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3efe69
3efe69
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-3
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3efe69
3efe69
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.11-2
3efe69
- Perl 5.26 rebuild
3efe69
3efe69
* Thu Jun 01 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.11-1
3efe69
- Update to 1.11
3efe69
3efe69
* Tue Apr 11 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-1
3efe69
- Update to 1.10
3efe69
3efe69
* Sat Mar 25 2017 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.09-1
3efe69
- Update to 1.09 (bug #1435192).
3efe69
3efe69
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-3
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3efe69
3efe69
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-2
3efe69
- Perl 5.24 rebuild
3efe69
3efe69
* Sat Apr  9 2016 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.07-1
3efe69
- Update to 1.07.
3efe69
3efe69
* Sun Apr  3 2016 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.06-1
3efe69
- Update to 1.06.
3efe69
3efe69
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.05-2
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3efe69
3efe69
* Sat Sep 19 2015 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.05-1
3efe69
- Update to 1.05.
3efe69
3efe69
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-3
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3efe69
3efe69
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.03-2
3efe69
- Perl 5.22 rebuild
3efe69
3efe69
* Sat Mar 21 2015 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.03-1
3efe69
- Update to 1.03.
3efe69
3efe69
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.99-5
3efe69
- Perl 5.20 rebuild
3efe69
3efe69
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-4
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3efe69
3efe69
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-3
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3efe69
3efe69
* Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 0.99-2
3efe69
- Perl 5.18 rebuild
3efe69
3efe69
* Thu Apr  4 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99-1
3efe69
- Update to 0.99.
3efe69
3efe69
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-5
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3efe69
3efe69
* Thu Oct 18 2012 Petr Pisar <ppisar@redhat.com> - 0.98-4
3efe69
- Specify all dependencies
3efe69
- Package TODO
3efe69
3efe69
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-3
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3efe69
3efe69
* Sun Jun 17 2012 Petr Pisar <ppisar@redhat.com> - 0.98-2
3efe69
- Perl 5.16 rebuild
3efe69
3efe69
* Sat Mar 17 2012 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.98-1
3efe69
- Update to 0.98.
3efe69
3efe69
* Mon Feb 27 2012 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.97-1
3efe69
- Update to 0.97.
3efe69
3efe69
* Fri Feb  3 2012 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.96-1
3efe69
- Update to 0.96.
3efe69
3efe69
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-2
3efe69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3efe69
3efe69
* Sun Oct 23 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.95-1
3efe69
- Update to 0.95.
3efe69
3efe69
* Wed Oct 19 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.94-1
3efe69
- First build.