| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- ##
- ## citadel.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.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
- URL: http://www.citadel.org/
- Vendor: The Citadel development team
- Packager: OpenPKG
- Distribution: OpenPKG
- Class: EVAL
- Group: Mail
- License: GNU
- Version: 6.54
- Release: 20050806
- # package options
- %option with_ical no
- %option with_ldap no
- # list of sources
- Source0: http://easyinstall.citadel.org/citadel-%{version}.tar.gz
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, db >= 4.1, make, gcc
- PreReq: OpenPKG, openpkg >= 20040130
- BuildPreReq: zlib, ncurses, openssl
- PreReq: zlib, ncurses, openssl
- %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://www.citadel.org/index.php?option=com_content&task=view&id=20&Itemid=27
- regex = citadel-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -n citadel
- [ -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}" \
- LIBS="-lz" \
- ./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} \
- 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/mail.aliases $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
|