]> git.pld-linux.org Git - packages/varnish.git/commitdiff
add source bcond
authorElan Ruusamäe <glen@delfi.ee>
Thu, 28 Aug 2014 12:27:02 +0000 (15:27 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 28 Aug 2014 12:27:02 +0000 (15:27 +0300)
varnish.spec

index d9ea97be62994a8d4eaf8087dfdd72df0c661dd5..b0d621f70166453fa548f33f9b7b2e791562f23a 100644 (file)
@@ -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
This page took 0.111275 seconds and 4 git commands to generate.