gsoap.spec 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##
  2. ## gsoap.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2016 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_dist 2.8.31
  25. %define V_subdir 2.8
  26. # package information
  27. Name: gsoap
  28. Summary: C/C++ Generator for SOAP Client/Server
  29. URL: http://gsoap2.sourceforge.net/
  30. Vendor: Robert A. van Engelen
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: RPC
  35. License: gSOAP and GPL
  36. Version: %{V_dist}
  37. Release: 20160502
  38. # list of sources
  39. Source0: http://download.sourceforge.net/gsoap2/gsoap_%{V_dist}.zip
  40. Patch0: gsoap.patch
  41. # build information
  42. BuildPreReq: OpenPKG, openpkg >= 20160101, make, gcc, gcc::with_cxx = yes, flex, bison
  43. PreReq: OpenPKG, openpkg >= 20160101
  44. %description
  45. Conforming to all SOAP 1.1 and 1.2 as well as the WSDL 1.1 standard,
  46. the gSOAP toolkit provides a unique SOAP to C/C++ language binding
  47. for the development of SOAP web services and clients. Relieving the
  48. user from the typical burden of WSDL and SOAP details, the gSOAP
  49. compiler generates efficient XML serializers for native and user
  50. defined C and C++ data types.
  51. %track
  52. prog gsoap = {
  53. version = %{version}
  54. url = https://sourceforge.net/projects/gsoap2/files/gSOAP/
  55. regex = gsoap_(__VER__)\.zip
  56. }
  57. %prep
  58. %setup -q -n gsoap-%{V_subdir}
  59. %patch -p0
  60. %build
  61. CC="%{l_cc}" \
  62. CXX="%{l_cxx}" \
  63. CFLAGS="%{l_cflags -O}" \
  64. CXXLAGS="%{l_cxxflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix}
  67. rm -f soapcpp2/stdsoap2_cpp.cpp
  68. %{l_make} %{l_mflags}
  69. %install
  70. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  71. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  72. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  73. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  74. %{l_files_std}
  75. %files -f files
  76. %clean