libsoup.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ##
  2. ## libsoup.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 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_major 2.27
  25. %define V_minor 92
  26. # package information
  27. Name: libsoup
  28. Summary: HTTP Client/Server Library
  29. URL: http://live.gnome.org/LibSoup
  30. Vendor: A. Graveley, D. Porter, M. De Icaza, J. Shaw, D. Winship
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: Network
  35. License: LGPL
  36. Version: %{V_major}.%{V_minor}
  37. Release: 20090910
  38. # package options
  39. %option with_ssl no
  40. # list of sources
  41. Source0: http://ftp.gnome.org/pub/GNOME/sources/libsoup/%{V_major}/libsoup-%{version}.tar.gz
  42. Patch0: libsoup.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130, pkgconfig
  47. PreReq: OpenPKG, openpkg >= 20040130
  48. BuildPreReq: glib2, libxml
  49. PreReq: glib2, libxml
  50. %if "%{with_ssl}" == "yes"
  51. BuildPreReq: openssl
  52. PreReq: openssl
  53. %endif
  54. AutoReq: no
  55. AutoReqProv: no
  56. %description
  57. Libsoup is an HTTP client/server library. It uses GObjects and the
  58. glib main loop and integrates well with GNOME and GTK+ applications.
  59. Since it is based only on glib, it can also be used in command
  60. line and daemon-based applications. It features both asynchronous
  61. (GMainLoop and callback-based) and synchronous APIs, automatically
  62. cached connections, SSL support using GnuTLS, and proxy support
  63. including authentication and SSL tunneling. Client support includes
  64. Digest, NTLM, and basic authentication, and server support includes
  65. Digest and Basic authentication.
  66. %track
  67. prog libsoup = {
  68. version = %{version}
  69. url = http://ftp.gnome.org/pub/GNOME/sources/libsoup/
  70. regex = >(\d+\.\d+)/<
  71. url = http://ftp.gnome.org/pub/GNOME/sources/libsoup/__NEWVER__/
  72. regex = libsoup-(__VER__)\.tar\.gz
  73. }
  74. %prep
  75. %setup -q
  76. %patch -p0
  77. %build
  78. CC="%{l_cc}" \
  79. CFLAGS="%{l_cflags -O}" \
  80. CPPFLAGS="%{l_cppflags}" \
  81. LDFLAGS="%{l_ldflags}" \
  82. ./configure \
  83. --prefix=%{l_prefix} \
  84. %if "%{with_ssl}" == "yes"
  85. --enable-ssl \
  86. %else
  87. --disable-ssl \
  88. %endif
  89. --without-gnome \
  90. --disable-gtk-doc \
  91. --disable-shared
  92. %{l_make} %{l_mflags -O}
  93. %install
  94. rm -rf $RPM_BUILD_ROOT
  95. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  96. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  97. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc >/dev/null 2>&1 || true
  98. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  99. %files -f files
  100. %clean
  101. rm -rf $RPM_BUILD_ROOT