Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-haproxy-176
dba-haproxy-176.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-haproxy-176.spec of Package dba-haproxy-176
%define real_name haproxy %define version 1.7.6 %define vers 176 %define prefix /DBA/%{real_name}/%{version} %define with_dbassl 0 %define with_lua 1 %define with_pcre 1 Name: dba-%{real_name}-%{vers} Summary: HAProxy reverse proxy for high availability environments version 1.7.6 Version: %{version} Release: 1 Group: System Environment/Daemons License: GPLv2+ URL: http://www.haproxy.org/ Source0: http://www.haproxy.org/download/1.7/src/haproxy-%{version}.tar.gz Source1: %{real_name}.service Source2: %{real_name}.cfg Source3: %{real_name}.logrotate Source4: %{real_name}.sysconfig Source5: halog.1 Source6: set_haproxy_1.7.latest.sh Patch0: halog-unused-variables.patch Patch1: iprange-return-type.patch BuildRoot: %{_tmppath}/%{real_name}-%{version}-build Requires: socat #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c #!BuildIgnore: nspr dba-geoip-148 dba-geoip-160 # BuildRequires: lua-devel BuildRequires: zlib-devel %if 0%{?rhel_version} == 406 %define with_lua 0 %endif %if 0%{?sles_version} == 11 %define with_lua 1 %define with_dbassl 1 # BuildRequires: lua-devel BuildRequires: dba-lua-530-static %define luadir /DBA/lua/5.3.0 %else %if %{with_lua} BuildRequires: dba-lua-530-static %define luadir /DBA/lua/5.3.0 %endif %endif %if %{with_dbassl} BuildRequires: dba-openssl-101u-static %define ssldir /DBA/openssl/1.0.1u %else BuildRequires: openssl-devel %endif %if %{with_pcre} BuildRequires: dba-pcre-833-static %define pcrepath /DBA/pcre/8.33 %else BuildRequires: pcre-devel %endif %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %description HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments. Indeed, it can: - route HTTP requests depending on statically assigned cookies - spread load among several servers while assuring server persistence through the use of HTTP cookies - switch to backup servers in the event a main one fails - accept connections to special ports dedicated to service monitoring - stop accepting connections without breaking existing ones - add, modify, and delete HTTP headers in both directions - block requests matching particular patterns - report detailed status to authenticated users from a URI intercepted from the application %prep %setup -q -n %{real_name}-%{version} %patch0 -p0 %patch1 -p0 %build regparm_opts= %ifarch %ix86 x86_64 regparm_opts="USE_REGPARM=1" %endif %if %{with_pcre} export ADDINC="$ADDINC -I%{pcrepath}/include" export ADDLIB="$ADDLIB -L%{pcrepath}/lib -lpcre" export PCRECONFIG=%{pcrepath}/bin/pcre-config %endif %if %{with_lua} export LUA_LIB=%{luadir}/lib export LUA_INC=%{luadir}/include export ADDINC="$ADDINC -I%{luadir}/include" export ADDLIB="$ADDLIB -L%{luadir}/lib -llua" %endif %if %{with_dbassl} export ADDINC="$ADDINC -I%{ssldir}/include" export ADDLIB="$ADDLIB -L%{ssldir}/lib" %endif %if 0%{?sles_version} == 11 export ADDINC="$ADDINC -DLUA_C89_NUMBERS -ldl" %endif # CFLAGS="$RPM_OPT_FLAGS" %{__make} %{?_smp_mflags} CPU="generic" TARGET="linux2628" USE_OPENSSL=1 ADDINC="$ADDINC" ADDLIB="$ADDLIB" USE_STATIC_PCRE=1 USE_ZLIB=1 USE_LUA=%{with_lua} ${regparm_opts} USE_LINUX_TPROXY=1 pushd contrib/halog %{__make} ${halog} OPTIMIZE="%{optflags}" popd pushd contrib/iprange %{__make} iprange OPTIMIZE="%{optflags}" popd %install %{__make} install-bin DESTDIR=%{buildroot} PREFIX=%{prefix} TARGET="linux2628" %{__make} install-man DESTDIR=%{buildroot} PREFIX=%{prefix} %{__mkdir_p} %{buildroot}%{prefix}/bin %{__mkdir_p} %{buildroot}%{prefix}/conf %{__mkdir_p} %{buildroot}%{prefix}/data %{__mkdir_p} %{buildroot}%{prefix}/init # # %{__mkdir_p} %{buildroot}%{prefix}/man/man1 %{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{prefix}/init/%{real_name}.service %{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{prefix}/conf/%{real_name}.cfg %{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{prefix}/init/%{real_name}.log %{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{prefix}/init/%{real_name}.syscfg # # %{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{prefix}/man1/halog.1 %{__install} -p -m 0755 ./contrib/halog/halog %{buildroot}%{prefix}/bin/halog %{__install} -p -m 0755 ./contrib/iprange/iprange %{buildroot}%{prefix}/bin/iprange %{__install} -p -m 0644 ./examples/errorfiles/* %{buildroot}%{prefix}/data for httpfile in $(find ./examples/errorfiles/ -type f) do %{__install} -p -m 0644 $httpfile %{buildroot}%{prefix}/data/ done %{__rm} -rf ./examples/errorfiles/ find ./examples/* -type f ! -name "*.cfg" -exec %{__rm} -f "{}" \; for textfile in $(find ./ -type f -name '*.txt') do %{__mv} $textfile $textfile.old iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old %{__rm} -f $textfile.old done %{__install} -m 0755 %{SOURCE6} %{buildroot}%{prefix}/bin/set_haproxy_1.7.latest.sh %post cd %{prefix}/.. %{prefix}/bin/set_haproxy_1.7.latest.sh %files %defattr(-,root,root) %dir %{prefix} %{prefix}/* %changelog * Mon May 29 2017 Holger Manthey <holger.manthey@bertelsmann.de> - initial package
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