Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-serf-138-static
dba-serf-138-static.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-serf-138-static.spec of Package dba-serf-138-static
# # spec file for package dba-zlib-128-static # %define maketest 0 %define real_name serf %define version 1.3.8 %define vers 138 %define dba_uuid 1 %define prefix /DBA/%{real_name}/%{version} Name: dba-%{real_name}-%{vers}-static Summary: The Serf package contains a C-based HTTP client library 1.3.8 Version: %{version} Release: 1 Group: Applications/Internet License: GPLv2+ Url: https://serf.googlecode.com Source: https://serf.googlecode.com/files/%{real_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: automake autoconf libtool m4 patch scons python zlib-devel BuildRequires: dba-apr-util-154-static dba-apr-152-static dba-openssl-111t-static #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e %if %{?suse_version:1}0 %if 0%{?centos_version} || 0%{?rhel_version} %define dba_uuid 0 %endif BuildRequires: libexpat-devel BuildRequires: openldap2-devel Requires: expat %else BuildRequires: expat-devel BuildRequires: openldap-devel Requires: expat %endif %if %{dba_uuid} BuildRequires: dba-uuid-162-static %else BuildRequires: libuuid-devel %endif %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %description The Serf package contains a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It multiplexes connections, running the read/write communication asynchronously. Memory copies and transformations are kept to a minimum to provide high performance operation. %prep %setup -q -n %{real_name}-%{version} %build export APR=/DBA/apache/APR/1.5.2/bin/apr-1-config export APU=/DBA/apache/APU/1.5.4/bin/apu-1-config export APR_STATIC=1 export CFLAGS="$RPM_OPT_FLAGS -fPIC" sed -i "/incdir/s:MAJOR':&\n\nenv\['SHLIBVERSION'\]='0.\${MAJOR}.0':" SConstruct && sed -i "/Append/s:RPATH=libdir,::" SConstruct && # sed -i "/Default/s:lib_static,::" SConstruct && # sed -i "/Alias/s:install_static,::" SConstruct && # scons PREFIX=%{prefix} LIBDIR={%prefix}/lib %if %{dba_uuid} scons PREFIX=%{prefix} CFLAGS="$CFLAGS -I/DBA/uuid/1.6.2/include" LIBDIR=%{prefix}/lib APR=/DBA/apache/APR/1.5.2 APU=/DBA/apache/APU/1.5.4 APR_STATIC=1 OPENSSL=/DBA/openssl/1.1.1t LINKFLAGS="-L/DBA/uuid/1.6.2/lib" %else scons PREFIX=%{prefix} CFLAGS="$CFLAGS" LIBDIR=%{prefix}/lib APR=/DBA/apache/APR/1.5.2 APU=/DBA/apache/APU/1.5.4 APR_STATIC=1 OPENSSL=/DBA/openssl/1.1.1t %endif # scons PREFIX=%{prefix} LIBDIR={%prefix}/lib APR=/DBA/apache/APR/1.5.2 APU=/DBA/apache/APU/1.5.4 APR_STATIC=1 OPENSSL=/DBA/openssl/1.0.2h %install %{__mkdir_p} %{buildroot}%{prefix}/include/serf-1 %{__mkdir_p} %{buildroot}%{prefix}/lib/pkgconfig # scons PREFIX=%{prefix} LIBDIR=%{prefix}/lib install --install-sandbox=%{buildroot} %{__install} -D -m 0644 serf.h serf_bucket_types.h serf_bucket_util.h %{buildroot}%{prefix}/include/serf-1/ %{__install} -D -m 0644 serf-1.pc %{buildroot}%{prefix}/lib/pkgconfig/ %{__install} -D -m 0644 libserf-1.a %{buildroot}%{prefix}/lib/ %post # add pc files to pkgconfig directory if [ -d %{_libdir}/pkgconfig ]; then cd %{_libdir}/pkgconfig if [ -e serf.pc ]; then %{__rm} -f serf.pc fi %{__ln_s} -f %{prefix}/lib/pkgconfig/serf.pc . fi %clean rm -rf %buildroot %files %defattr(-,root,root) %dir %{prefix} %{prefix}/include %{prefix}/lib %changelog * Wed Feb 15 2023 Dennis Hampe <dennis.hampe@bertelsmann.de> - update openssl * Thu Sep 22 2022 Sebastian Roth <sebastian.roth@bertelsmann.de> - change openssl version to * Tue Jul 19 2016 Holger Manthey <holger.manthey@bertelsmann.de> - fix bug in serf-1.pc * Tue Jul 19 2016 Holger Manthey <holger.manthey@bertelsmann.de> - fix bug in serf-1.pc * Tue Jul 12 2016 Holger Manthey <holger.manthey@bertelsmann.de> - add fPIC Flag * Fri Jun 24 2016 Holger Manthey <holger.manthey@bertelsmann.de> - inital version
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