c-client.spec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## c-client.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: c-client
  27. Summary: The c-client library
  28. URL: http://www.washington.edu/imap/
  29. Vendor: University of Washington
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: Mail
  33. License: University of Washington's Free-Fork License
  34. Version: 2001a
  35. Release: 20020422
  36. # list of sources
  37. Source0: ftp://ftp.cac.washington.edu/imap/imap-%{version}.tar.Z
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206, gcc
  42. PreReq: OpenPKG, openpkg >= 20020206
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. The c-client library provides an API to access IMAP servers.
  47. %prep
  48. %setup -q -n imap-%{version}
  49. %build
  50. os=""
  51. case "%{l_target}" in
  52. *-freebsd*)
  53. os=bsf
  54. ;;
  55. *-linux*)
  56. os=slx
  57. ;;
  58. *-solaris*)
  59. os=gso
  60. ;;
  61. *)
  62. echo "Unsupported platform" 1>&2
  63. exit 1
  64. ;;
  65. esac
  66. %{l_make} $os
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/include
  70. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib
  71. for h in linkage mail rfc822; do
  72. %{l_shtool} install -c -m 644 c-client/$h.h \
  73. $RPM_BUILD_ROOT%{l_prefix}/include/
  74. done
  75. %{l_shtool} install -c -m 644 c-client/c-client.a \
  76. $RPM_BUILD_ROOT%{l_prefix}/lib/libc-client4.a
  77. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  78. %files -f files
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT