Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-varnish-304
dba-varnish-304.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-varnish-304.spec of Package dba-varnish-304
# # spec file for package dba-varnish-304 # %define maketest 0 %define real_name varnish %define version 3.0.4 %define vers 304 %define prefix /DBA/%{real_name}/%{version} Name: dba-%{real_name}-%{vers} Summary: High-performance HTTP accelerator 3.0.4 Version: %{version} Release: 1 License: BSD Group: System Environment/Daemons URL: http://www.varnish-cache.org/ Source0: http://downloads.sourceforge.net/varnish/%{real_name}-%{version}.tar.gz Source1: dba-%{real_name}-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e BuildRequires: ncurses-devel libxslt groff pcre-devel pkgconfig readline-devel %description This is the Varnish high-performance HTTP accelerator. Documentation wiki and additional information about Varnish is available on the following web site: http://www.varnish-cache.org/ %prep %setup -q -n %{real_name}-%{version} # Hack to get 32- and 64-bits tests run concurrently on the same build machine case `uname -m` in ppc64 | s390x | x86_64 | sparc64 ) sed -i ' s,9001,9011,g; s,9080,9090,g; s,9081,9091,g; s,9082,9092,g; s,9180,9190,g; ' bin/varnishtest/*.c bin/varnishtest/tests/*vtc ;; *) ;; esac mkdir examples cp bin/varnishd/default.vcl etc/zope-plone.vcl examples %build # No pkgconfig/libpcre.pc in rhel4 %if 0%{?rhel} == 4 export PCRE_CFLAGS=`pcre-config --cflags` export PCRE_LIBS=`pcre-config --libs` %endif %if 0%{?sles_version} == 9 export PCRE_CFLAGS="-I%{_includedir}" export PCRE_LIBS="-L%{_libdir} -lpcre" %endif ./configure \ --prefix=%{prefix} \ --disable-static # We have to remove rpath - not allowed in Fedora # (This problem only visible on 64 bit arches) sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g; s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool CFLAGS="%{optflags} -fno-strict-aliasing -Wl,-rpath,%{prefix}/lib" %{__make} %{?_smp_mflags} head -6 etc/default.vcl > redhat/default.vcl cat << EOF >> redhat/default.vcl backend default { .host = "127.0.0.1"; .port = "80"; } EOF tail -n +11 etc/default.vcl >> redhat/default.vcl %if 0%{?fedora}%{?rhel} == 0 || 0%{?rhel} <= 4 && 0%{?fedora} <= 8 # Old style daemon function sed -i 's,--pidfile \$pidfile,,g; s,status -p \$pidfile,status,g; s,killproc -p \$pidfile,killproc,g' \ redhat/varnish.initrc redhat/varnishlog.initrc redhat/varnishncsa.initrc %endif %check %if %maketest LD_LIBRARY_PATH="lib/libvarnish/.libs:lib/libvarnishcompat/.libs:lib/libvarnishapi/.libs:lib/libvcl/.libs" bin/varnishd/varnishd -b 127.0.0.1:80 -C -n /tmp/foo %{__make} check LD_LIBRARY_PATH="../../lib/libvarnish/.libs:../../lib/libvarnishcompat/.libs:../../lib/libvarnishapi/.libs:../../lib/libvcl/.libs" # Remove uneccessary doc src files mkdir doc.src mv doc/*.xml doc/*.xsl doc/Makefile* doc.src %endif %install export NO_BRP_CHECK_RPATH=true %{__mkdir_p} %{buildroot}%{prefix} %{__mkdir_p} %{buildroot}%{prefix}/conf %{__make} install DESTDIR=%{buildroot} INSTALL="install -p" # None of these for fedora find %{buildroot}/%{prefix}/ -name '*.la' -exec rm -f {} ';' %{__install} -D -m 0644 redhat/default.vcl %{buildroot}%{prefix}/conf/default.vcl %{__install} -D -m 0644 redhat/varnish.sysconfig %{buildroot}%{prefix}/conf/varnish.sysconfig %{__install} -D -m 0644 redhat/varnish.logrotate %{buildroot}%{prefix}/conf/varnish.logrotate %{__install} -D -m 0755 redhat/varnish.initrc %{buildroot}%{prefix}/conf/varnish.initrc if [ -d %{buildroot}%{prefix}/lib/varnish ]; then %{__cp} -av %{buildroot}%{prefix}/lib/varnish/* %{buildroot}%{prefix}/lib/ %{__rm} -rf %{buildroot}/lib/varnish fi %post cd %{prefix}/.. %{__rm} -f 3.0.latest %{__ln_s} -f %{version} 3.0.latest # add varnishapi.pc to pkgconfig directory if [ -d %{_libdir}/pkgconfig ]; then cd %{_libdir}/pkgconfig if [ -e varnishapi.pc ]; then %{__rm} -f varnishapi.pc fi %{__ln_s} -f %{prefix}/lib/pkgconfig/varnishapi.pc . fi %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %dir %{prefix} %{prefix}/bin %{prefix}/conf %{prefix}/etc %{prefix}/include %{prefix}/lib %{prefix}/sbin %{prefix}/share %changelog * Tue Jun 25 2013 Holger Manthey <holger.manthey@bertelsmann.de> - initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor