Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-varnish-401
dba-varnish-401.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-varnish-401.spec of Package dba-varnish-401
# # spec file for package dba-varnish-401 # %define maketest 0 %define real_name varnish %define version 4.0.1 %define vers 401 %define prefix /DBA/%{real_name}/%{version} %define dba_pcre 0 %define build_docutils 0 Name: dba-%{real_name}-%{vers} Summary: High-performance HTTP accelerator 4.0.1 Version: %{version} Release: 1 License: BSD Group: System Environment/Daemons URL: http://www.varnish-cache.org/ Source0: https://repo.varnish-cache.org/source/%{real_name}-%{version}.tar.gz Source1: docutils-0.7.tar.bz2 Source2: dba-%{real_name}-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?rhel_version} == 406 || 0%{?sles_version} == 10 %define dba_pcre 1 #!BuildIgnore: pcre-devel %else BuildRequires: pcre-devel %endif %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 pkgconfig readline-devel %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} BuildRequires: python-docutils %else %if 0%{?suse_version} >= 1200 BuildRequires: python-docutils %else %define build_docutils 1 %endif %endif %if %{dba_pcre} BuildRequires: dba-pcre-833-static %define pcrepath /DBA/pcre/8.33 %endif %if %{build_docutils} BuildRequires: python-devel %define docupath docutils-0.7 %endif %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} -a 1 %build %if %{dba_pcre} export PCRE_CFLAGS="-I%{pcrepath}/include" export PCRE_LIBS="-L%{pcrepath}/lib -lpcre" %endif %if %{build_docutils} %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} pushd ./%{docupath} export MYINSTDIR=`pwd`/install export PYTHONPATH="$PYTHONPATH:$MYINSTDIR%{python_sitearch}:$MYINSTDIR%{python_sitelib}" %{__mkdir_p} $MYINSTDIR %{__python} setup.py build %{__python} setup.py install --prefix=%{_prefix} --root=$MYINSTDIR popd %endif export CFLAGS="$CFLAGS -Wp,-D_FORTIFY_SOURCE=0" ./configure \ --prefix=%{prefix} \ --without-jemalloc \ %if %{build_docutils} --with-rst2man=$MYINSTDIR/usr/bin/rst2man.py \ %endif %if %{dba_pcre} --with-pcre-config=%{pcrepath}/bin/pcre-config \ %endif --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} V=1 %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" %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 etc/builtin.vcl %{buildroot}%{prefix}/conf/builtin.vcl %{__install} -D -m 0644 etc/example.vcl %{buildroot}%{prefix}/conf/example.vcl %post cd %{prefix}/.. %{__rm} -f 4.0.latest %{__ln_s} -f %{version} 4.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}/include %{prefix}/lib %{prefix}/sbin %{prefix}/share %changelog * Thu Jul 10 2014 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