|
|
@@ -0,0 +1,156 @@
|
|
|
+##
|
|
|
+## citadel.spec -- OpenPKG RPM Specification
|
|
|
+## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
|
|
|
+## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
|
|
|
+## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
|
|
|
+##
|
|
|
+## Permission to use, copy, modify, and distribute this software for
|
|
|
+## any purpose with or without fee is hereby granted, provided that
|
|
|
+## the above copyright notice and this permission notice appear in all
|
|
|
+## copies.
|
|
|
+##
|
|
|
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
|
|
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
|
|
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
|
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
+## SUCH DAMAGE.
|
|
|
+##
|
|
|
+
|
|
|
+# package information
|
|
|
+Name: citadel
|
|
|
+Summary: Messaging and collaboration platform for BBS and groupware applications
|
|
|
+URL: http://www.citadel.org/
|
|
|
+Vendor: The Citadel development team
|
|
|
+Packager: The OpenPKG Project
|
|
|
+Distribution: OpenPKG
|
|
|
+Class: EVAL
|
|
|
+Group: Mail
|
|
|
+License: GNU
|
|
|
+Version: 6.20p1
|
|
|
+Release: 20040402
|
|
|
+
|
|
|
+# package options
|
|
|
+%option with_ical no
|
|
|
+%option with_ldap no
|
|
|
+
|
|
|
+# list of sources
|
|
|
+Source0: http://uncensored.citadel.org/pub/citadel/citadel-ux-%{version}.tar.gz
|
|
|
+Patch0: citadel.patch
|
|
|
+
|
|
|
+# build information
|
|
|
+Prefix: %{l_prefix}
|
|
|
+BuildRoot: %{l_buildroot}
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20040130, db >= 4.1, make, gcc, zlib, ncurses, openssl
|
|
|
+PreReq: OpenPKG, openpkg >= 20040130
|
|
|
+%if "%{with_ical}" == "yes"
|
|
|
+PreReq: libical
|
|
|
+%endif
|
|
|
+%if "%{with_ldap}" == "yes"
|
|
|
+PreReq: openldap
|
|
|
+%endif
|
|
|
+AutoReq: no
|
|
|
+AutoReqProv: no
|
|
|
+
|
|
|
+%description
|
|
|
+ Since 1981, Citadel systems have brought people together like no
|
|
|
+ other software has ever been capable of doing. Citadel/UX is a
|
|
|
+ state-of-the-art messaging platform which can be used to build an
|
|
|
+ online community that puts users in touch with each other without
|
|
|
+ calling attention to itself.
|
|
|
+
|
|
|
+%track
|
|
|
+ prog citadel = {
|
|
|
+ version = %{version}
|
|
|
+ url = http://uncensored.citadel.org/pub/citadel/
|
|
|
+ regex = citadel-ux-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
+
|
|
|
+%prep
|
|
|
+ %setup -q -n citadel
|
|
|
+ %patch
|
|
|
+ [ -d files ] && rmdir files
|
|
|
+
|
|
|
+%build
|
|
|
+ CC="%{l_cc}" \
|
|
|
+ CXX="%{l_cxx}" \
|
|
|
+ CFLAGS="%{l_cflags -O}" \
|
|
|
+ CXXFLAGS="%{l_cxxflags -O}" \
|
|
|
+ CPPFLAGS="%{l_cppflags}" \
|
|
|
+ LDFLAGS="%{l_ldflags}" \
|
|
|
+ ./configure \
|
|
|
+ --prefix=%{l_prefix} \
|
|
|
+ --with-db=%{l_prefix} \
|
|
|
+ --with-ssl=%{l_prefix} \
|
|
|
+ --with-ncurses \
|
|
|
+ --with-zlib \
|
|
|
+ --without-pam \
|
|
|
+%if "%{with_ical}" == "yes"
|
|
|
+ --with-libical \
|
|
|
+%else
|
|
|
+ --without-libical \
|
|
|
+%endif
|
|
|
+%if "%{with_ldap}" == "yes"
|
|
|
+ --with-ldap \
|
|
|
+%else
|
|
|
+ --without-ldap \
|
|
|
+%endif
|
|
|
+ --without-kthread \
|
|
|
+ --without-newt
|
|
|
+ %{l_make} %{l_mflags -O}
|
|
|
+
|
|
|
+%install
|
|
|
+ rm -rf $RPM_BUILD_ROOT
|
|
|
+ %{l_shtool} mkdir -p -m 755 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/sbin \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/citadel \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/citadel \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/citadel \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/bio \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/bitbucket \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/files \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/images \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/info \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/userpics \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/help \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/messages \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/spoolin \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/spoolout \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/systems
|
|
|
+
|
|
|
+ %{l_shtool} install -c -m 744 %{l_value -s -a} \
|
|
|
+ utilsmenu \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/
|
|
|
+
|
|
|
+ %{l_shtool} install -c -m 744 %{l_value -s -a} \
|
|
|
+ chkpwd \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/sbin/
|
|
|
+
|
|
|
+ %{l_shtool} install -c -m 744 %{l_value -s -a} \
|
|
|
+ help/[a-z]* \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/help/
|
|
|
+
|
|
|
+ %{l_shtool} install -c -m 744 %{l_value -s -a} \
|
|
|
+ messages/[a-z]* \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/citadel/messages/
|
|
|
+
|
|
|
+ %{l_shtool} install -c -m 744 %{l_value -s -a} \
|
|
|
+ network/filterlist network/mail.aliases network/mailinglists network/rnews.xref \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/citadel/network/
|
|
|
+
|
|
|
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
|
|
|
+ '%attr(4755,%{l_susr},%{l_rgrp}) %{l_prefix}/sbin/chkpwd'
|
|
|
+
|
|
|
+%files -f files
|
|
|
+
|
|
|
+%clean
|
|
|
+ rm -rf $RPM_BUILD_ROOT
|
|
|
+
|