[packages/perl-Devel-CheckLib] - new

baggins baggins at pld-linux.org
Tue Dec 29 00:12:06 CET 2015


commit 695a03a116e3de3a203a4cce9dd95e9ed9d4ecc1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Dec 29 00:11:50 2015 +0100

    - new

 perl-Devel-CheckLib.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
---
diff --git a/perl-Devel-CheckLib.spec b/perl-Devel-CheckLib.spec
new file mode 100644
index 0000000..b34fd9e
--- /dev/null
+++ b/perl-Devel-CheckLib.spec
@@ -0,0 +1,57 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Devel
+%define		pnam	CheckLib
+%include	/usr/lib/rpm/macros.perl
+Summary:	Devel::CheckLib - check that a library is available
+Name:		perl-Devel-CheckLib
+Version:	1.05
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	c4792a4487ba54eb269f4783bf3a2fe6
+URL:		http://search.cpan.org/dist/Devel-CheckLib/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(IO::CaptureOutput) >= 1.0801
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Devel::CheckLib is a perl module that checks whether a particular C
+library and its headers are available.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# remove deprecated script and its man page
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/use-devel-checklib
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/use-devel-checklib.1*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README TODO
+%{perl_vendorlib}/Devel/CheckLib.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Devel-CheckLib.git/commitdiff/695a03a116e3de3a203a4cce9dd95e9ed9d4ecc1



More information about the pld-cvs-commit mailing list