SPECS: mantis.spec - separate package for admin pages (TODO comple...
glen
glen at pld-linux.org
Sat Sep 24 15:51:35 CEST 2005
Author: glen Date: Sat Sep 24 13:51:35 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- separate package for admin pages (TODO completed)
- please test as i don't use mantis myself
---- Files affected:
SPECS:
mantis.spec (1.25 -> 1.26)
---- Diffs:
================================================================
Index: SPECS/mantis.spec
diff -u SPECS/mantis.spec:1.25 SPECS/mantis.spec:1.26
--- SPECS/mantis.spec:1.25 Sat Sep 24 15:43:49 2005
+++ SPECS/mantis.spec Sat Sep 24 15:51:29 2005
@@ -2,14 +2,11 @@
# TIP:
# - After upgrade from version <= 0.18.x mysql database requires upgrade!
#
-# TODO
-# - put admin/ dir to separate -setup package which can be installed only at first time install
-
Summary: The Mantis bug tracker
Summary(pl): Mantis - system kontroli błędów
Name: mantis
Version: 0.19.2
-Release: 1.9
+Release: 1.11
License: GPL
Group: Development/Tools
Source0: http://dl.sourceforge.net/mantisbt/%{name}-%{version}.tar.gz
@@ -40,6 +37,22 @@
Mantis jest systemem kontroli błędów opartym na interfejsie WWW, bazie
MySQL oraz PHP.
+%package setup
+Summary: Mantis setup package
+Summary(pl): Pakiet do wstępnej konfiguracji Mantis
+Group: Applications/WWW
+PreReq: %{name} = %{epoch}:%{version}-%{release}
+
+%description setup
+Install this package to configure initial Mantis 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 Mantis po
+pierwszej instalacji. Potem należy go odinstalować, jako że
+pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
+
%prep
%setup -q -a1
%patch0 -p1
@@ -70,14 +83,20 @@
%post
if [ "$1" = 1 ]; then
- # TODO: use banner instead
- if [ "$LANG" = "pl_PL" ]; then
- echo "Aby uzyskać więcej informacji o Mantisie w Linuksie PLD przeczytaj: "
- echo " less %{_docdir}/%{name}-%{version}/PLD_Install_PL.txt.gz"
- else
- echo "For More information on Mantis on PLD Linux please read:"
- echo " less %{_docdir}/%{name}-%{version}/PLD_Install_EN.txt.gz"
- fi
+%banner -e %{name} <<EOF
+Install %{name}-setup if you need to setup initial Mantis
+configuration or configure mantis.
+EOF
+fi
+
+%post setup
+# TODO: use banner instead
+if [ "$LANG" = "pl_PL" ]; then
+ echo "Aby uzyskać więcej informacji o Mantisie w Linuksie PLD przeczytaj: "
+ echo " less %{_docdir}/%{name}-setup-%{version}/PLD_Install_PL.txt.gz"
+else
+ echo "For More information on Mantis on PLD Linux please read:"
+ echo " less %{_docdir}/%{name}-setup-%{version}/PLD_Install_EN.txt.gz"
fi
%triggerin -- apache1 >= 1.3.33-2
@@ -129,7 +148,6 @@
%files
%defattr(644,root,root,755)
%doc doc/{CREDITS,CUSTOMIZATION,ChangeLog,INSTALL,README,UPGRADING}
-%doc PLD*
%attr(750,root,http) %dir %{_sysconfdir}
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config_defaults.php
@@ -137,14 +155,12 @@
%dir %{_mantisdir}
%{_mantisdir}/config_inc.php
%{_mantisdir}/config_defaults_inc.php
-%{_mantisdir}/admin
%{_mantisdir}/core
%{_mantisdir}/css
%{_mantisdir}/graphs
%{_mantisdir}/images
%{_mantisdir}/javascript
%{_mantisdir}/lang
-%{_mantisdir}/sql
%{_mantisdir}/doc
%{_mantisdir}/adm_*
%{_mantisdir}/account*
@@ -170,12 +186,22 @@
%{_mantisdir}/veri*
%{_mantisdir}/view*
+%files setup
+%defattr(644,root,root,755)
+%doc PLD*
+%{_mantisdir}/admin
+%{_mantisdir}/sql
+
%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.26 2005/09/24 13:51:29 glen
+- separate package for admin pages (TODO completed)
+- please test as i don't use mantis myself
+
Revision 1.25 2005/09/24 13:43:49 glen
- fix config and doc
- fix %post (thx sparky)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mantis.spec?r1=1.25&r2=1.26&f=u
More information about the pld-cvs-commit
mailing list