Author: glen                         Date: Fri Mar  4 19:33:01 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- another horde application

---- Files affected:
SPECS:
   whups.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/whups.spec
diff -u /dev/null SPECS/whups.spec:1.1
--- /dev/null   Fri Mar  4 20:33:01 2005
+++ SPECS/whups.spec    Fri Mar  4 20:32:56 2005
@@ -0,0 +1,159 @@
+# $Revision$, $Date$
+%include       /usr/lib/rpm/macros.php
+
+%define _snap 2005-03-04
+%define _rel 2
+
+Summary:       The Web Horde User Problem Solver
+Name:          whups
+Version:       1.0
+Release:       %{?_snap:0.%(echo %{_snap} | tr -d -).}%{_rel}
+License:       BSD
+Group:         Networking/Utilities
+Source0:       
http://ftp.horde.org/pub/snaps/%{_snap}/%{name}-HEAD-%{_snap}.tar.gz
+# Source0-md5: 038beacf5be31cf9a009c23be0f57a8e
+# don't put snapshots to df
+NoSource:      0
+Source1:       %{name}.conf
+URL:           http://www.horde.org/whups/
+Requires:      apache >= 1.3.33-2
+Requires:      horde >= 3.0
+Requires:      php-mysql
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# horde accesses it directly in help->about
+%define                _noautocompressdoc  CREDITS
+%define                _noautoreq      'pear(Horde.*)'
+
+%define                hordedir        /usr/share/horde
+%define                _appdir         %{hordedir}/%{name}
+%define                _sysconfdir     /etc/horde.org
+%define                _apache1dir     /etc/apache
+%define                _apache2dir     /etc/httpd
+
+%description
+Whups is Horde's bug tracking/ticketing system. It is designed to be
+extremely flexible in letting users define kinds of tickets, different
+lifecycles (sets of states) and priorities for each kind of ticket,
+and mixing types of tickets into sets of queues. This design allows
+for very general and sophisticated multi-purpose uses of Whups. The
+code is near 1.0 quality and most features are fully implemented at
+this time.
+
+The Horde Project writes web applications in PHP and releases them
+under the GNU Public License. For more information (including help
+with IMP) please visit <http://www.horde.org/>.
+
+%prep
+%setup -q -n %{name}
+rm -f {lib,scripts,config,templates}/.htaccess
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
+       $RPM_BUILD_ROOT%{_appdir}/{docs,lib,locale,templates,themes,ticket}
+
+cp -pR *.php                   $RPM_BUILD_ROOT%{_appdir}
+for i in config/*.dist; do
+       cp -p $i $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$(basename $i .dist)
+done
+cp -pR config/*.xml            $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+
+echo "<?php ?>" >              $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.php
+cp -p config/conf.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.xml
+> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.php.bak
+
+cp -pR  lib/*                   $RPM_BUILD_ROOT%{_appdir}/lib
+cp -pR  locale/*                $RPM_BUILD_ROOT%{_appdir}/locale
+cp -pR  templates/*             $RPM_BUILD_ROOT%{_appdir}/templates
+cp -pR  themes/*                $RPM_BUILD_ROOT%{_appdir}/themes
+cp -pR  ticket/*                $RPM_BUILD_ROOT%{_appdir}/ticket
+
+ln -s %{_sysconfdir}/%{name}   $RPM_BUILD_ROOT%{_appdir}/config
+ln -s %{_defaultdocdir}/%{name}-%{version}/CREDITS 
$RPM_BUILD_ROOT%{_appdir}/docs
+
+install %{SOURCE1}             
$RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ ! -f %{_sysconfdir}/%{name}/conf.php.bak ]; then
+       install /dev/null -o root -g http -m660 
%{_sysconfdir}/%{name}/conf.php.bak
+fi
+
+# apache1
+if [ -d %{_apache1dir}/conf.d ]; then
+       ln -sf %{_sysconfdir}/apache-%{name}.conf 
%{_apache1dir}/conf.d/99_%{name}.conf
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
+       fi
+fi
+# apache2
+if [ -d %{_apache2dir}/httpd.conf ]; then
+       ln -sf %{_sysconfdir}/apache-%{name}.conf 
%{_apache2dir}/httpd.conf/99_%{name}.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+
+if [ "$1" = 1 ]; then
+%banner %{name} -e <<EOF
+IMPORTANT:
+If You are installing WHUPS for the first time, You may need to
+create the database tables. Look into directory
+%{_docdir}/%{name}-%{version}/scripts/sql
+to find out how to do this for your database.
+
+EOF
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       # apache1
+       if [ -d %{_apache1dir}/conf.d ]; then
+               rm -f %{_apache1dir}/conf.d/99_%{name}.conf
+               if [ -f /var/lock/subsys/apache ]; then
+                       /etc/rc.d/init.d/apache restart 1>&2
+               fi
+       fi
+       # apache2
+       if [ -d %{_apache2dir}/httpd.conf ]; then
+               rm -f %{_apache2dir}/httpd.conf/99_%{name}.conf
+               if [ -f /var/lock/subsys/httpd ]; then
+                       /etc/rc.d/init.d/httpd restart 1>&2
+               fi
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README docs/* scripts
+%attr(750,root,http) %dir %{_sysconfdir}/%{name}
+%attr(640,root,root) %config(noreplace) %{_sysconfdir}/apache-%{name}.conf
+%attr(660,root,http) %config(noreplace) %{_sysconfdir}/%{name}/conf.php
+%attr(660,root,http) %config(noreplace) %ghost 
%{_sysconfdir}/%{name}/conf.php.bak
+%attr(640,root,http) %config(noreplace) %{_sysconfdir}/%{name}/[!c]*.php
+%attr(640,root,http) %{_sysconfdir}/%{name}/*.xml
+
+%dir %{_appdir}
+%{_appdir}/*.php
+%{_appdir}/config
+%{_appdir}/docs
+%{_appdir}/lib
+%{_appdir}/locale
+%{_appdir}/templates
+%{_appdir}/themes
+%{_appdir}/ticket
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/03/04 19:32:56  glen
+- another horde application
+
================================================================

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to