citadel.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ##
  2. ## citadel.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: citadel
  26. Summary: Messaging and Collaboration Platform
  27. URL: http://www.citadel.org/
  28. Vendor: The Citadel development team
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: EVAL
  32. Group: Mail
  33. License: GNU
  34. Version: 6.54
  35. Release: 20050806
  36. # package options
  37. %option with_ical no
  38. %option with_ldap no
  39. # list of sources
  40. Source0: http://easyinstall.citadel.org/citadel-%{version}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130, db >= 4.1, make, gcc
  45. PreReq: OpenPKG, openpkg >= 20040130
  46. BuildPreReq: zlib, ncurses, openssl
  47. PreReq: zlib, ncurses, openssl
  48. %if "%{with_ical}" == "yes"
  49. PreReq: libical
  50. %endif
  51. %if "%{with_ldap}" == "yes"
  52. PreReq: openldap
  53. %endif
  54. AutoReq: no
  55. AutoReqProv: no
  56. %description
  57. Since 1981, Citadel systems have brought people together like no
  58. other software has ever been capable of doing. Citadel/UX is a
  59. state-of-the-art messaging platform which can be used to build an
  60. online community that puts users in touch with each other without
  61. calling attention to itself.
  62. %track
  63. prog citadel = {
  64. version = %{version}
  65. url = http://www.citadel.org/index.php?option=com_content&task=view&id=20&Itemid=27
  66. regex = citadel-(__VER__)\.tar\.gz
  67. }
  68. %prep
  69. %setup -q -n citadel
  70. [ -d files ] && rmdir files
  71. %build
  72. CC="%{l_cc}" \
  73. CXX="%{l_cxx}" \
  74. CFLAGS="%{l_cflags -O}" \
  75. CXXFLAGS="%{l_cxxflags -O}" \
  76. CPPFLAGS="%{l_cppflags}" \
  77. LDFLAGS="%{l_ldflags}" \
  78. LIBS="-lz" \
  79. ./configure \
  80. --prefix=%{l_prefix} \
  81. --with-db=%{l_prefix} \
  82. --with-ssl=%{l_prefix} \
  83. --with-ncurses \
  84. --with-zlib \
  85. --without-pam \
  86. %if "%{with_ical}" == "yes"
  87. --with-libical \
  88. %else
  89. --without-libical \
  90. %endif
  91. %if "%{with_ldap}" == "yes"
  92. --with-ldap \
  93. %else
  94. --without-ldap \
  95. %endif
  96. --without-kthread \
  97. --without-newt
  98. %{l_make} %{l_mflags -O}
  99. %install
  100. rm -rf $RPM_BUILD_ROOT
  101. %{l_shtool} mkdir -p -m 755 \
  102. $RPM_BUILD_ROOT%{l_prefix}/bin \
  103. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  104. $RPM_BUILD_ROOT%{l_prefix}/etc/citadel \
  105. $RPM_BUILD_ROOT%{l_prefix}/var/citadel \
  106. $RPM_BUILD_ROOT%{l_prefix}/libexec/citadel \
  107. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/bio \
  108. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/bitbucket \
  109. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/files \
  110. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/images \
  111. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/info \
  112. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/userpics \
  113. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/help \
  114. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/messages \
  115. $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/spoolin \
  116. $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/spoolout \
  117. $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/systems
  118. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  119. chkpwd $RPM_BUILD_ROOT%{l_prefix}/sbin/
  120. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  121. help/[a-z]* $RPM_BUILD_ROOT%{l_prefix}/share/citadel/help/
  122. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  123. messages/[a-z]* $RPM_BUILD_ROOT%{l_prefix}/share/citadel/messages/
  124. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  125. network/mail.aliases $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/
  126. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  127. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  128. '%attr(4755,%{l_susr},%{l_rgrp}) %{l_prefix}/sbin/chkpwd'
  129. %files -f files
  130. %clean
  131. rm -rf $RPM_BUILD_ROOT