commit a2cd7ef581e978c36240374c702660bb9d640b9d
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Aug 28 15:27:02 2014 +0300

    add source bcond

 varnish.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/varnish.spec b/varnish.spec
index d9ea97b..b0d621f 100644
--- a/varnish.spec
+++ b/varnish.spec
@@ -5,6 +5,7 @@
 # Conditional build:
 %bcond_without doc             # build documentation
 %bcond_without tests   # build without tests. binds daemon on 127.0.0.1 9080, 
9081, 9001 ports
+%bcond_without source  # build source package
 
 Summary:       Varnish - a high-performance HTTP accelerator
 Summary(pl.UTF-8):     Varnish - wydajny akcelerator HTTP
@@ -159,6 +160,7 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/secret
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/vmods/*.la
 
+%if %{with source}
 # prepare tree for VMOD build
 install -d 
$RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}/{include,bin/{varnishtest,varnishd},lib/libvmod_std}
 for a in $RPM_BUILD_ROOT%{_includedir}/%{name}/*.h; do
@@ -177,6 +179,7 @@ cp -p lib/libvmod_std/vmod.py 
$RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}/lib/l
 # add pkg config variable for eash access
 %{__sed} -i -e '/^vmoddir/a srcdir=%{_usrsrc}/%{name}-%{version}' \
        $RPM_BUILD_ROOT%{_pkgconfigdir}/varnishapi.pc
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -278,6 +281,8 @@ fi
 %{_libdir}/%{name}/libvgz.a
 %{_libdir}/%{name}/vmods/libvmod_std.a
 
+%if %{with source}
 %files source
 %defattr(644,root,root,755)
 %{_usrsrc}/%{name}-%{version}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/varnish.git/commitdiff/a2cd7ef581e978c36240374c702660bb9d640b9d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to