template-specs: perl-Varnish-API.spec (NEW) - created using pldcpan

glen glen at pld-linux.org
Mon Apr 5 19:20:07 CEST 2010


Author: glen                         Date: Mon Apr  5 17:20:07 2010 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- created using pldcpan

---- Files affected:
template-specs:
   perl-Varnish-API.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: template-specs/perl-Varnish-API.spec
diff -u /dev/null template-specs/perl-Varnish-API.spec:1.1
--- /dev/null	Mon Apr  5 19:20:07 2010
+++ template-specs/perl-Varnish-API.spec	Mon Apr  5 19:20:02 2010
@@ -0,0 +1,65 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	tests		# perform testing. needs running varnishd
+
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	Varnish
+%define		pnam	API
+Summary:	Varnish::API - Perl extension for accessing varnish stats and logs
+Name:		perl-Varnish-API
+Version:	1.99_1
+Release:	1
+# Same as Perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/A/AB/ABERGMAN/Varnish-API-%{version}.tar.gz
+# Source0-md5:	d0acd25bc23f28fb74ff4d355a206db8
+URL:		http://search.cpan.org/dist/Varnish-API/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module allows access to the data that varnishlog and varnishstats
+can read.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Varnish/*.pm
+%dir %{perl_vendorarch}/auto/Varnish/API
+%{perl_vendorarch}/auto/Varnish/API/*.bs
+%{perl_vendorarch}/auto/Varnish/API/autosplit.ix
+%attr(755,root,root) %{perl_vendorarch}/auto/Varnish/API/*.so
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/04/05 17:20:02  glen
+- created using pldcpan
================================================================


More information about the pld-cvs-commit mailing list