citadel.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.62
  35. Release: 20051116
  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. Patch0: citadel.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040130, db >= 4.1, make, gcc
  46. PreReq: OpenPKG, openpkg >= 20040130
  47. BuildPreReq: zlib, ncurses, openssl
  48. PreReq: zlib, ncurses, openssl
  49. %if "%{with_ical}" == "yes"
  50. PreReq: libical
  51. %endif
  52. %if "%{with_ldap}" == "yes"
  53. PreReq: openldap
  54. %endif
  55. AutoReq: no
  56. AutoReqProv: no
  57. %description
  58. Since 1981, Citadel systems have brought people together like no
  59. other software has ever been capable of doing. Citadel/UX is a
  60. state-of-the-art messaging platform which can be used to build an
  61. online community that puts users in touch with each other without
  62. calling attention to itself.
  63. %track
  64. prog citadel = {
  65. version = %{version}
  66. url = http://www.citadel.org/index.php?option=com_content&task=view&id=20&Itemid=27
  67. regex = citadel-(__VER__)\.tar\.gz
  68. }
  69. %prep
  70. %setup -q -n citadel
  71. [ -d files ] && rmdir files
  72. %patch -p0
  73. %build
  74. CC="%{l_cc}" \
  75. CXX="%{l_cxx}" \
  76. CFLAGS="%{l_cflags -O} %{l_cppflags ncurses}" \
  77. CXXFLAGS="%{l_cxxflags -O} %{l_cppflags ncurses}" \
  78. CPPFLAGS="%{l_cppflags} %{l_cppflags ncurses}" \
  79. LDFLAGS="%{l_ldflags}" \
  80. LIBS="-lz" \
  81. ./configure \
  82. --prefix=%{l_prefix} \
  83. --with-db=%{l_prefix} \
  84. --with-ssl=%{l_prefix} \
  85. --with-ncurses \
  86. --with-zlib \
  87. --without-pam \
  88. %if "%{with_ical}" == "yes"
  89. --with-libical \
  90. %else
  91. --without-libical \
  92. %endif
  93. %if "%{with_ldap}" == "yes"
  94. --with-ldap \
  95. %else
  96. --without-ldap \
  97. %endif
  98. --without-kthread \
  99. --enable-autologin \
  100. --enable-chkpwd \
  101. --without-newt
  102. %{l_make} %{l_mflags -O}
  103. %install
  104. rm -rf $RPM_BUILD_ROOT
  105. %{l_shtool} mkdir -p -m 755 \
  106. $RPM_BUILD_ROOT%{l_prefix}/bin \
  107. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  108. $RPM_BUILD_ROOT%{l_prefix}/etc/citadel \
  109. $RPM_BUILD_ROOT%{l_prefix}/var/citadel \
  110. $RPM_BUILD_ROOT%{l_prefix}/libexec/citadel \
  111. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/bio \
  112. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/bitbucket \
  113. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/files \
  114. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/images \
  115. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/info \
  116. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/userpics \
  117. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/help \
  118. $RPM_BUILD_ROOT%{l_prefix}/share/citadel/messages \
  119. $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/spoolin \
  120. $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/spoolout \
  121. $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/systems
  122. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  123. chkpwd $RPM_BUILD_ROOT%{l_prefix}/sbin/
  124. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  125. help/[a-z]* $RPM_BUILD_ROOT%{l_prefix}/share/citadel/help/
  126. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  127. messages/[a-z]* $RPM_BUILD_ROOT%{l_prefix}/share/citadel/messages/
  128. %{l_shtool} install -c -m 744 %{l_value -s -a} \
  129. network/mail.aliases $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/
  130. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  131. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  132. '%attr(4755,%{l_susr},%{l_rgrp}) %{l_prefix}/sbin/chkpwd'
  133. %files -f files
  134. %clean
  135. rm -rf $RPM_BUILD_ROOT