SPECS: horde-nag.spec (NEW) - new
glen
glen at pld-linux.org
Mon Aug 1 22:33:15 CEST 2005
Author: glen Date: Mon Aug 1 20:33:15 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
horde-nag.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/horde-nag.spec
diff -u /dev/null SPECS/horde-nag.spec:1.1
--- /dev/null Mon Aug 1 22:33:15 2005
+++ SPECS/horde-nag.spec Mon Aug 1 22:33:09 2005
@@ -0,0 +1,116 @@
+# $Revision$, $Date$
+# TODO
+# - rename nag.spec to tldp-nag.spec
+# - rename this spec to nag.spec
+
+%define _rc rc1
+%define _rel 4
+
+%include /usr/lib/rpm/macros.php
+Summary: Nag Task List Manager
+Name: nag
+Version: 2.0.2
+Release: %{_rc}.%{_rel}
+License: GPL v2
+Vendor: The Horde Project
+Group: Applications/WWW
+Source0: ftp://ftp.horde.org/pub/nag/%{name}-h3-%{version}-%{_rc}.tar.gz
+# Source0-md5: c6f572411894f706df19f8b649a11b2e
+Source1: %{name}.conf
+URL: http://www.horde.org/nag/
+BuildRequires: rpmbuild(macros) >= 1.226
+BuildRequires: tar >= 1:1.15.1
+Requires: apache >= 1.3.33-2
+Requires: apache(mod_access)
+Requires: horde >= 3.0
+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 _sysconfdir /etc/horde.org
+%define _appdir %{hordedir}/%{name}
+
+%description
+Nag is the Horde task list application. It stores todo items, things
+due later this week, etc. It is very similar in functionality to the
+Palm ToDo application.
+
+The Horde Project writes web applications in PHP and releases them
+under the GNU General Public License. For more information (including
+help with Gollem) please visit <http://www.horde.org/>.
+
+%prep
+%setup -q -n nag-h3-%{version}-%{_rc}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_sysconfdir}/%{name}} \
+ $RPM_BUILD_ROOT%{_appdir}/{docs,lib,locale,scripts,templates,themes}
+
+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
+echo "<?php ?>" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.php
+install 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
+
+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
+
+if [ "$1" = 1 ]; then
+%banner %{name} -e <<EOF
+IMPORTANT:
+If you are installing for the first time, You may need to
+create the Nag database tables. To do so run:
+zcat %{_docdir}/%{name}-%{version}/scripts/sql/nag.sql.gz | mysql horde
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc 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
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2005/08/01 20:33:09 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list