easysoap/easysoap.spec

Fri, 16 Jan 2009 10:58:21 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 10:58:21 +0100
changeset 92
645923d1e875
parent 42
23f1d7d13217
permissions
-rw-r--r--

Correct and improve code logic, buildconf, and packaging. In particular:
1. Use descriptive variable names <var>libs instead of just <var>.
2. Although Nokia states in all Qt builds that 'NOTE: When linking
against OpenSSL, you can override the default library names
through OPENSSL_LIBS.' and even gives an example, their own
configuration logic rejects such an attempt. Correct this by
hard coding the OpenSSL library string in the configure script.
3. Consistently use the whitespace substitution [\t ] throughout.
4. Patch the buggy INCPATH of SQL plugin Qmake project files.
5. Add the 'x11' configuration variable to the qtconfig Qmake
project using the src/gui/gui.pro file as a model. This is
needed for qtconfig although not in other tools, because
the qtconfig buildconf indirectly includes qt_x11_p.h which
is dependent on X11 headers.
6. Avoid 'ld.so: fatal: hardware capability unsupported: SSE2 AMD_3DNow'
on platforms for which the config.tests/unix/[3dnow|sse2] succeed
although unsopported at run time by testing for the x86-64
instruction set at build time and regulating hardware capabilities.
7. Correctly install the desinger plugin by explicitly building it.
8. Remove custom plugin installation logic which is unnecessary.
9. Correct removal of temporary paths from shared object files.

michael@41 1 ##
michael@41 2 ## easysoap.spec -- OpenPKG RPM Package Specification
michael@41 3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@41 4 ##
michael@41 5 ## Permission to use, copy, modify, and distribute this software for
michael@41 6 ## any purpose with or without fee is hereby granted, provided that
michael@41 7 ## the above copyright notice and this permission notice appear in all
michael@41 8 ## copies.
michael@41 9 ##
michael@41 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@41 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@41 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@41 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@41 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@41 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@41 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@41 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@41 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@41 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@41 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@41 21 ## SUCH DAMAGE.
michael@41 22 ##
michael@41 23
michael@41 24 # package information
michael@41 25 Name: easysoap
michael@41 26 Summary: SOAP Implemention in C++
michael@41 27 URL: http://easysoap.sourceforge.net/
michael@41 28 Vendor: David Crowley
michael@41 29 Packager: OpenPKG Foundation e.V.
michael@41 30 Distribution: OpenPKG Community
michael@41 31 Class: EVAL
michael@41 32 Group: RPC
michael@41 33 License: LGPL
michael@41 34 Version: 0.8.0
michael@42 35 Release: 20090106
michael@41 36
michael@41 37 # list of sources
michael@41 38 Source0: http://switch.dl.sourceforge.net/easysoap/EasySoap++-%{version}.tar.gz
michael@41 39 Patch0: easysoap.patch
michael@41 40
michael@41 41 # build information
michael@41 42 Prefix: %{l_prefix}
michael@41 43 BuildRoot: %{l_buildroot}
michael@85 44 BuildPreReq: OpenPKG, openpkg >= 20040130
michael@85 45 PreReq: OpenPKG, openpkg >= 20040130
michael@85 46 BuildPreReq: make, gcc, gcc::with_cxx = yes
michael@85 47 BuildPreReq: expat, openssl
michael@85 48 PreReq: expat, openssl
michael@41 49 AutoReq: no
michael@41 50 AutoReqProv: no
michael@41 51
michael@41 52 %description
michael@41 53 EasySoap++ is a lightweight SOAP implementation written in C++. It
michael@41 54 implements most of the SOAP specification, and interoperates well
michael@41 55 with many other soap implementations.
michael@41 56
michael@41 57 %track
michael@41 58 prog easysoap = {
michael@41 59 version = %{version}
michael@41 60 url = http://prdownloads.sourceforge.net/easysoap/
michael@41 61 regex = EasySoap\+\+-(__VER__)\.tar\.gz
michael@41 62 }
michael@41 63
michael@41 64 %prep
michael@41 65 %setup -q -n EasySoap++-%{version}
michael@41 66 %{l_shtool} subst \
michael@41 67 -e 's;\(SUBDIRS *= *include src\).*;\1;' \
michael@41 68 Makefile.in
michael@41 69 %patch -p0
michael@42 70 chmod +x conftools/install-sh
michael@41 71
michael@41 72 %build
michael@41 73 CC="%{l_cc}" \
michael@41 74 CXX="%{l_cxx}" \
michael@41 75 CFLAGS="%{l_cflags -O}" \
michael@41 76 CXXFLAGS="%{l_cxxflags -O}" \
michael@41 77 CPPFLAGS="%{l_cppflags}" \
michael@41 78 LDFLAGS="%{l_ldflags}" \
michael@41 79 ./configure \
michael@41 80 --prefix=%{l_prefix} \
michael@41 81 --disable-shared
michael@41 82 %{l_make} %{l_mflags}
michael@41 83
michael@41 84 %install
michael@41 85 rm -rf $RPM_BUILD_ROOT
michael@41 86 %{l_shtool} mkdir -f -p -m 755 \
michael@41 87 $RPM_BUILD_ROOT%{l_prefix}/lib \
michael@41 88 $RPM_BUILD_ROOT%{l_prefix}/include/easysoap
michael@41 89 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@41 90 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@41 91
michael@41 92 %files -f files
michael@41 93
michael@41 94 %clean
michael@41 95 rm -rf $RPM_BUILD_ROOT
michael@41 96

mercurial