SPECS (DEVEL): cowiki.spec - added setup subpackage
glen
glen at pld-linux.org
Mon Nov 7 21:02:15 CET 2005
Author: glen Date: Mon Nov 7 20:02:15 2005 GMT
Module: SPECS Tag: DEVEL
---- Log message:
- added setup subpackage
---- Files affected:
SPECS:
cowiki.spec (1.8.2.7 -> 1.8.2.8)
---- Diffs:
================================================================
Index: SPECS/cowiki.spec
diff -u SPECS/cowiki.spec:1.8.2.7 SPECS/cowiki.spec:1.8.2.8
--- SPECS/cowiki.spec:1.8.2.7 Mon Nov 7 19:51:53 2005
+++ SPECS/cowiki.spec Mon Nov 7 21:02:10 2005
@@ -10,7 +10,7 @@
%else
%define _source http://www.cowiki.org/download/%{name}-%{version}.tar.gz
%endif
-%define _rel 0.2
+%define _rel 0.9
Summary: Web collaboration tool
Summary(pl): Narzędzie do współpracy i współtworzenia w sieci
@@ -53,6 +53,22 @@
towarzyszącą dokumentację XML burzy mózgów bez potrzeby koncentrowania
się na skomplikowanej składni strukturalnej.
+%package setup
+Summary: coWiki setup package
+Summary(pl): Pakiet do wstępnej konfiguracji coWiki
+Group: Applications/WWW
+PreReq: %{name} = %{epoch}:%{version}-%{release}
+
+%description setup
+Install this package to configure initial coWiki installation. You
+should uninstall this package when you're done, as it considered
+insecure to keep the setup files in place.
+
+%description setup -l pl
+Ten pakiet należy zainstalować w celu wstępnej konfiguracji coWiki po
+pierwszej instalacji. Potem należy go odinstalować, jako że
+pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
+
%prep
%setup -q %{?_snap:-n %{name}-%{version}-interim-%{_snap}}
%patch0 -p1
@@ -67,10 +83,15 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/cache/%{name}}
-cp -a htdocs includes $RPM_BUILD_ROOT%{_appdir}
+cp -a htdocs includes misc $RPM_BUILD_ROOT%{_appdir}
install core.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/core.conf
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+# for setup
+install LICENSE $RPM_BUILD_ROOT%{_appdir}/htdocs/setup
+install core.conf-dist $RPM_BUILD_ROOT%{_appdir}/includes/cowiki/core.conf-dist
+touch $RPM_BUILD_ROOT%{_appdir}/htdocs/install.seal
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -91,6 +112,18 @@
rm -f /var/cache/%{name}/*
fi
+%post setup
+chgrp http %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki}
+chmod g+w %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki}
+rm -f %{_appdir}/htdocs/install.seal
+
+%postun setup
+if [ "$1" = "0" ]; then
+ chgrp root %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki}
+ chmod g-w %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki}
+ touch %{_appdir}/htdocs/install.seal
+fi
+
%triggerin -- apache1 >= 1.3.33-2
%apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
@@ -116,15 +149,43 @@
%attr(751,root,root) %dir %{_sysconfdir}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/core.conf
-%{_appdir}
+
+%dir %{_appdir}
+%{_appdir}/misc
+%dir %{_appdir}/includes
+%dir %{_appdir}/includes/cowiki
+%{_appdir}/includes/cowiki/class
+%{_appdir}/includes/cowiki/locale
+%{_appdir}/includes/cowiki/plugin
+%{_appdir}/includes/cowiki/*.php
+%dir %{_appdir}/htdocs
+%{_appdir}/htdocs/img
+%{_appdir}/htdocs/tpl
+%{_appdir}/htdocs/*.txt
+%{_appdir}/htdocs/*.php
+%{_appdir}/htdocs/favicon.ico
+%{_appdir}/htdocs/include.path
+
%dir %attr(770,root,http) /var/cache/%{name}
+# setup seal
+%config(noreplace,missingok) %verify(not md5 mtime size) %{_appdir}/htdocs/install.seal
+
+%files setup
+%defattr(644,root,root,755)
+%{_appdir}/htdocs/setup
+%{_appdir}/htdocs/install.pending
+%{_appdir}/includes/cowiki/core.conf-dist
+
%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.8.2.8 2005/11/07 20:02:10 glen
+- added setup subpackage
+
Revision 1.8.2.7 2005/11/07 18:51:53 glen
- R dom
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/cowiki.spec?r1=1.8.2.7&r2=1.8.2.8&f=u
More information about the pld-cvs-commit
mailing list