Hi!
I found there no matching spec for OSS-10.1/SLES10. The attached one is
a modified spec from otrs-2.1.2. Maybe someone might have fun with it.
--
Liebe Gruesse, with best regards
Stephan Lauffer
[ University of Education Freiburg - Germany ]
[ http://www.ph-freiburg.de/zik/ ]
[ Fon/ Fax: +49 761 682 -459/ -486 ]
# --
# RPM spec file for SUSE SLES10 or OpenSUSE-10.1 of the OTRS package
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id: suse-otrs-10.0.spec,v 1.3 2006/10/18 08:52:13 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --
#
# please send bugfixes or comments to bugs+rpm@otrs.org
#
# --
Summary: The Open Ticket Request System.
Name: otrs
Version: 2.1.2
License: GNU GENERAL PUBLIC LICENSE Version 2, June 1991
Group: Applications/Mail
Provides: otrs
Requires: perl perl-DBI perl-GD perl-GDGraph perl-GDTextUtil perl-Net-DNS perl-Digest-MD5 apache2 apache2-mod_perl mysql-client perl-Msql-Mysql-modules mysql-shared fetchmail procmail
Autoreqprov: on
Release: 01
Source0: otrs-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define DestRoot /opt/otrs
%description
The Open Ticket Request System (http://otrs.org/) is a web based ticket system.
Feedback: feedback@otrs.org
Authors:
--------
Carsten Gross <carsten at siski.de>
Christian Schoepplein <cs at otrs.de>
Franz Breu
Fred van Dijk <fvandijk at marklin.nl>
Lars MÜLLER <lars at m5r.de>
Nicolas Goralski <ngoralski at oceanet-technology.com>
Richard Kammermayer <rk at otrs.de>
Stefan Rother <sr at otrs.de>
Thomas Raith <tr at otrs.de>
Vladimir Gerdjikov <gerdjikov at gerdjikovs.net>
Martin Edenhofer <me at otrs.de>
OTRS is an Open source Ticket Request System with many features to manage
customer telephone calls and e-mails. It is distributed under the GNU
General Public License (GPL) and tested on Linux, Solaris, AIX, FreeBSD,
OpenBSD and Mac OS 10.x. Do you receive many e-mails and want to answer
them with a team of agents? You're going to love the OTRS!
Feature list:
Web-Interface:
- Agent web interface for viewing and working on all customer requests
- Admin web interface for changing system things
- Customer web interface for viewing and sending infos to the agents
- Webinterface with themes support
- Multi language support (Brazilian Portuguese, Bulgarian, Dutch, English,
Finnish, French, German, Italian and Spanish)
- customize the output templates (dtl) release independently
- Webinterface with attachment support
- easy and logical to use
Email-Interface:
- PGP support
- SMIME support
- MIME support (attachments)
- dispatching of incoming email via email addess or x-header
- autoresponders for customers by incoming emails (per queue)
- email-notification to the agent by new tickets, follow ups or lock timeouts
Ticket:
- custom queue view and queue view of all requests
- Ticket locking
- Ticket replies (standard responses)
- Ticket autoresponders per queue
- Ticket history, evolution of ticket status and actions taken on ticket
- abaility to add notes (with different note types) to a ticket
- Ticket zoom feature
- Tickets can be bounced or forwarded to other email addresses
- Ticket can be moved to a different queue (this is helpful if emails are
for a specific subject)
- Ticket priority
- Ticket time accounting
- Ticket merge feature
- Ticket ACL support
- content Fulltext search
System:
- creation and configuration of user accounts, and groups
- creation of standard responses
- Signature configuration per queue
- Salutation configuration per queue
- email-notification of administrators
- email-notification sent to problem reporter (by create, locked, deleted,
moved and closed)
- submitting update-info (via email or webinterface).
- deadlines for trouble tickets
- ASP (activ service providing) support
- TicketHook free setable like 'Call#', 'MyTicket#', 'Request#' or 'Ticket#'
- Ticket number format free setable
- different levels of permissions/access-rights.
- central database, Support of different SQL databases (e. g. MySQL, PostgeSQL, ...)
- user authentication agains database or ldap directory
- easy to develope you own addon's (OTRS API)
- easy to write different frontends (e. g. X11, console, ...)
- own package manager (e. g. for application modules like webmail, calendar or
filemanager)
- a fast and usefull application
SuSE series: ap
%prep
%setup
%build
# copy config file
cp Kernel/Config.pm.dist Kernel/Config.pm
cd Kernel/Config/ && for foo in *.dist; do cp $foo `basename $foo .dist`; done && cd ../../
# copy all crontab dist files
for foo in var/cron/*.dist; do mv $foo var/cron/`basename $foo .dist`; done
# copy all .dist files
cp .procmailrc.dist .procmailrc
cp .fetchmailrc.dist .fetchmailrc
cp .mailfilter.dist .mailfilter
%install
# delete old RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
# set DESTROOT
export DESTROOT=%{DestRoot}
# create RPM_BUILD_ROOT DESTROOT
mkdir -p $RPM_BUILD_ROOT/$DESTROOT
# copy files
cp -R . $RPM_BUILD_ROOT/$DESTROOT
# install init-Script and rc.config entry
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
mkdir -p $RPM_BUILD_ROOT/%{_var}/adm/fillup-templates
mkdir -p $RPM_BUILD_ROOT/etc/apache2/conf.d
mkdir -p $RPM_BUILD_ROOT/var
# replace apache with apache2
sed "s/rcapache/rcapache2/" scripts/suse-rcotrs-config > /tmp.otrs.$$ && mv /tmp.otrs.$$ scripts/suse-rcotrs-config
sed "s/apache/apache2/" scripts/suse-rcotrs > /tmp.otrs.$$ && mv /tmp.otrs.$$ scripts/suse-rcotrs
install -m 644 scripts/suse-rcotrs-config $RPM_BUILD_ROOT/etc/sysconfig/otrs
install -m 755 scripts/suse-rcotrs $RPM_BUILD_ROOT/etc/init.d/otrs
rm -f $RPM_BUILD_ROOT/sbin/otrs
ln -s ../../etc/init.d/otrs $RPM_BUILD_ROOT/usr/sbin/rcotrs
install -m 644 scripts/apache2-httpd-new.include.conf $RPM_BUILD_ROOT/etc/apache2/conf.d/otrs.conf
install -m 644 var/logo-otrs.png $RPM_BUILD_ROOT/$DESTROOT/var/logo-otrs.png
# set permission
export OTRSUSER=otrs
useradd $OTRSUSER || :
useradd wwwrun || :
groupadd www || :
$RPM_BUILD_ROOT/$DESTROOT/bin/SetPermissions.sh $RPM_BUILD_ROOT/opt/otrs $OTRSUSER wwwrun www www
%pre
export DESTROOT=%{DestRoot}
# remember about the installed version
if test -e $DESTROOT/RELEASE; then
cat $DESTROOT/RELEASE|grep VERSION|sed 's/VERSION = //'|sed 's/ /-/g' > /tmp/otrs-old.tmp
fi
# useradd
export OTRSUSER=otrs
echo -n "Check OTRS user (/etc/passwd)... "
if getent passwd $OTRSUSER > /dev/null ; then
echo "\"$OTRSUSER\" exists."
# update groups
usermod -g www $OTRSUSER
# update home dir
usermod -d /opt/otrs $OTRSUSER
else
echo "\"$OTRSUSER\" does not exist. Creating user $OTRSUSER..."
useradd $OTRSUSER -d $DESTROOT -s /bin/false -g nogroup -c 'OTRS System User' && echo "$OTRSUSER added."
fi
%post
export DESTROOT=%{DestRoot}
# sysconfig
%{fillup_and_insserv -s otrs START_OTRS}
# if it's a major-update backup old version templates (maybe not compatible!)
if test -e /tmp/otrs-old.tmp; then
TOINSTALL=`echo %{version}| sed 's/..$//'`
OLDOTRS=`cat /tmp/otrs-old.tmp`
if echo $OLDOTRS | grep -v "$TOINSTALL" > /dev/null; then
echo "backup old (maybe not compatible) templates (of $OLDOTRS)"
for i in $DESTROOT/Kernel/Output/HTML/Standard/*.rpmnew;
do BF=`echo $i|sed 's/.rpmnew$//'`; mv -v $BF $BF.backup_maybe_not_compat_to.$OLDOTRS; mv $i $BF;
done
fi
rm -rf /tmp/otrs-old.tmp
fi
# OTRS 2.0 -> OTRS 2.1
# remove old ticket config file
if test -e $DESTROOT/Kernel/Config/Files/Ticket.pm; then
mv $DESTROOT/Kernel/Config/Files/Ticket.pm $DESTROOT/Kernel/Config/Files/Ticket.pm.not_longer_used
fi;
# remove old ticket postmaster config file
if test -e $DESTROOT/Kernel/Config/Files/TicketPostMaster.pm; then
mv $DESTROOT/Kernel/Config/Files/TicketPostMaster.pm $DESTROOT/Kernel/Config/Files/TicketPostMaster.pm.not_longer_used;
fi
# remove old faq config file
if test -e $DESTROOT/Kernel/Config/Files/FAQ.pm; then
mv $DESTROOT/Kernel/Config/Files/FAQ.pm $DESTROOT/Kernel/Config/Files/FAQ.pm.not_longer_used;
fi
# note
HOST=`hostname -f`
echo ""
echo "Next steps: "
echo ""
echo "[SuSEconfig]"
echo " Execute 'SuSEconfig' to configure the webserver."
echo ""
echo "[start Apache and MySQL]"
echo " Execute 'rcapache2 restart' and 'rcmysql start' in case they don't run."
echo ""
echo "[install the OTRS database]"
echo " Use a webbrowser and open this link:"
echo " http://$HOST/otrs/installer.pl"
echo ""
echo "[OTRS services]"
echo " Start OTRS 'rcotrs start-force' (rcotrs {start|stop|status|restart|start-force|stop-force})."
echo ""
echo "Have fun!"
echo ""
echo " Your OTRS Team"
echo " http://otrs.org/"
echo ""
%clean
rm -rf $RPM_BUILD_ROOT
%files
%config(noreplace) /etc/sysconfig/otrs
%config /etc/apache2/conf.d/otrs.conf
%config /etc/init.d/%{name}
%{_sbindir}/rc%{name}
%config(noreplace) %{DestRoot}/Kernel/Config.pm
%config(noreplace) %{DestRoot}/Kernel/Config/GenericAgent.pm
%config(noreplace) %{DestRoot}/var/log/TicketCounter.log
%config(noreplace) %{DestRoot}/.procmailrc
%config(noreplace) %{DestRoot}/.fetchmailrc
%config(noreplace) %{DestRoot}/.mailfilter
%config(noreplace) %{DestRoot}/Kernel/Output/HTML/Standard/*.dtl
%config(noreplace) %{DestRoot}/Kernel/Output/HTML/Lite/*.dtl
%config(noreplace) %{DestRoot}/Kernel/Language/*.pm
%config(noreplace) %{DestRoot}/var/cron/*
%dir %{DestRoot}
%{DestRoot}/RELEASE
%{DestRoot}/ARCHIVE
%{DestRoot}/.procmailrc.dist
%{DestRoot}/.fetchmailrc.dist
%{DestRoot}/.mailfilter.dist
%dir %{DestRoot}/Kernel/
%dir %{DestRoot}/Kernel/Config/
%{DestRoot}/Kernel/Config.pm.dist
%{DestRoot}/Kernel/Config/Files/
%{DestRoot}/Kernel/Config/GenericAgent.pm.dist
%{DestRoot}/Kernel/Config/GenericAgent.pm.examples
%{DestRoot}/Kernel/Config/Defaults.pm
%{DestRoot}/Kernel/Language.pm
%dir %{DestRoot}/Kernel/Language/
%{DestRoot}/Kernel/Modules*
%dir %{DestRoot}/Kernel/Output/
%dir %{DestRoot}/Kernel/Output/HTML/
%dir %{DestRoot}/Kernel/Output/HTML/Standard/
%dir %{DestRoot}/Kernel/Output/HTML/Lite/
%{DestRoot}/Kernel/Output/HTML/*.pm
%{DestRoot}/Kernel/System*
%{DestRoot}/bin*
%{DestRoot}/scripts*
%dir %{DestRoot}/var/
%dir %{DestRoot}/var/article/
%{DestRoot}/var/httpd/
%dir %{DestRoot}/var/sessions/
%dir %{DestRoot}/var/spool/
%dir %{DestRoot}/var/cron/
%dir %{DestRoot}/var/tmp/
%dir %{DestRoot}/var/pics/stats/
%{DestRoot}/var/logo-otrs.png
%{DestRoot}/Kernel/cpan-lib*
%doc %{DestRoot}/INSTAL*
%doc %{DestRoot}/UPGRADING
%doc %{DestRoot}/TODO
%doc %{DestRoot}/COPYING
%doc %{DestRoot}/CHANGES
%doc %{DestRoot}/READM*
%doc %{DestRoot}/doc*
%doc %{DestRoot}/CREDITS
%changelog
* Mon Oct 30 2006 - lauffer@ph-freiburg.de
- added SLES10 and OpenSUSE-10.1 support
* Thu Oct 18 2006 - martin+rpm@otrs.org
- added rename of old /opt/otrs/Kernel/Config/Files/(Ticket|TicketPostMaster|FAQ).pm files
* Sun Mar 25 2006 - martin+rpm@otrs.org
- added SUSE 10.0 support