cadaver.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ##
  2. ## cadaver.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 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. # FIXME: cs: build process of cadaver 0.23.0 needs to be reviewed
  24. # Despite the fact '--with-included-neon' is defined, it seems to
  25. # pick up parts of the neon package. If the version of neon is
  26. # incompatible with cadaver, in this case neon <= 0.26.4, build
  27. # of cadaver fails.
  28. # package information
  29. Name: cadaver
  30. Summary: Command-Line WebDAV client
  31. URL: http://www.webdav.org/cadaver/
  32. Vendor: Joe Orton
  33. Packager: OpenPKG Foundation e.V.
  34. Distribution: OpenPKG Community
  35. Class: PLUS
  36. Group: Web
  37. License: GPL
  38. Version: 0.23.2
  39. Release: 20090125
  40. # list of sources
  41. Source0: http://www.webdav.org/cadaver/cadaver-%{version}.tar.gz
  42. Patch0: cadaver.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130
  47. PreReq: OpenPKG, openpkg >= 20040130
  48. BuildPreReq: ncurses, libxml, zlib, openssl, libiconv, readline, getopt
  49. PreReq: ncurses, libxml, zlib, openssl, libiconv, readline, getopt
  50. AutoReq: no
  51. AutoReqProv: no
  52. %description
  53. Cadaver is a command-line WebDAV client for Unix. It supports
  54. file upload, download, on-screen display, namespace operations
  55. (move/copy), collection creation and deletion, and locking
  56. operations.
  57. %track
  58. prog cadaver = {
  59. version = %{version}
  60. url = http://www.webdav.org/cadaver/
  61. regex = cadaver-(__VER__)\.tar\.gz
  62. }
  63. %prep
  64. %setup -q
  65. %patch -p0
  66. %build
  67. echo 'ac_cv_func_getopt_long=yes' >config.cache
  68. CC="%{l_cc}" \
  69. CFLAGS="%{l_cflags -O}" \
  70. CPPFLAGS="%{l_cppflags}" \
  71. LDFLAGS="%{l_ldflags}" \
  72. LIBS="-lgetopt -lssl -lcrypto" \
  73. XML2_CONFIG="%{l_prefix}/bin/xml2-config" \
  74. ./configure \
  75. --cache-file=./config.cache \
  76. --prefix=%{l_prefix} \
  77. --mandir=%{l_prefix}/man \
  78. --with-libxml2 \
  79. --with-libs=%{l_prefix} \
  80. --with-included-neon \
  81. --with-ssl \
  82. --disable-nls
  83. %{l_make} %{l_mflags -O}
  84. %install
  85. rm -rf $RPM_BUILD_ROOT
  86. %{l_make} %{l_mflags} install \
  87. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  88. mandir=$RPM_BUILD_ROOT%{l_prefix}/man
  89. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  90. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  91. %files -f files
  92. %clean
  93. rm -rf $RPM_BUILD_ROOT