SPECS: ApacheJServ.spec - fixed packaged files
glen
glen at pld-linux.org
Thu Dec 29 15:07:08 CET 2005
Author: glen Date: Thu Dec 29 14:07:07 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fixed packaged files
---- Files affected:
SPECS:
ApacheJServ.spec (1.49 -> 1.50)
---- Diffs:
================================================================
Index: SPECS/ApacheJServ.spec
diff -u SPECS/ApacheJServ.spec:1.49 SPECS/ApacheJServ.spec:1.50
--- SPECS/ApacheJServ.spec:1.49 Thu Dec 29 13:40:38 2005
+++ SPECS/ApacheJServ.spec Thu Dec 29 15:07:02 2005
@@ -12,7 +12,7 @@
Summary(pl): Silnik serwletów ze wsparciem dla wiodącego serwera WWW
Name: ApacheJServ
Version: 1.1.2
-Release: 0.68
+Release: 0.79
License: freely distributable & usable (JServ), LGPL (JSDK)
Group: Networking/Daemons
Source0: http://java.apache.org/jserv/dist/%{name}-%{version}.tar.gz
@@ -46,7 +46,7 @@
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
Requires: %{name} = %{version}-%{release}
-Requires: rc-scripts
+Requires: rc-scripts >= 0.4.0.19
Provides: group(jserv)
Provides: jsdk20
Provides: jserv
@@ -58,7 +58,6 @@
%define httpdconf %(%{apxs} -q SYSCONFDIR 2>/dev/null)
%define _sysconfdir /etc/jserv
%define logdir /var/log/jserv
-%define servletdir %{_datadir}/jserv/servlets
%define _noautocompressdoc package-list
%description
@@ -151,7 +150,7 @@
%{!?debug:--disable-debugging} \
--with-apxs=%{apxs} \
--with-logdir=%{logdir} \
- --with-servlets=%{servletdir} \
+ --with-servlets=%{_datadir}/jserv/servlets \
%{!?with_gcj:GCJ=javac GCJFLAGS= CLASSPATH=`pwd` JAVAC_OPT="-source 1.4"} \
%{!?with_gcj:--with-javac=%{_bindir}/javac --with-java=%{_bindir}/java --with-jdk-home=%{_libdir}/java} \
%{?with_gcj:--with-javac=%{_bindir}/gcj --with-jar=%{_bindir}/fastjar} \
@@ -180,6 +179,8 @@
> $RPM_BUILD_ROOT%{httpdconf}/jserv.secret.key
> $RPM_BUILD_ROOT%{_sysconfdir}/jserv.secret.key
+install -d $RPM_BUILD_ROOT%{_datadir}/jserv/servlets
+
### GNU JSDK-classes
install classpathx_servlet-%{jsdkversion}/servlet-2.0.jar $RPM_BUILD_ROOT%{_javadir}
@@ -198,7 +199,6 @@
%useradd -u 154 -g jserv -d /etc/jserv -c "JServ User" jserv
%post
-set -x
if [ ! -s %{_sysconfdir}/jserv.secret.key ]; then
if [ -s %{httpdconf}/jserv.secret.key ]; then
cat %{httpdconf}/jserv.secret.key > %{_sysconfdir}/jserv.secret.key
@@ -225,7 +225,6 @@
fi
%post -n apache1-mod_jserv
-set -x
if [ ! -s %{httpdconf}/jserv.secret.key ]; then
if [ -s %{_sysconfdir}/jserv.secret.key ]; then
cat %{_sysconfdir}/jserv.secret.key > %{httpdconf}/jserv.secret.key
@@ -244,28 +243,29 @@
%files
%defattr(644,root,root,755)
%doc LICENSE README
-%dir %{_sysconfdir}
+%dir %attr(750,root,jserv) %{_sysconfdir}
%attr(640,root,jserv) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jserv.secret.key
%attr(640,root,jserv) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jserv.properties
%attr(640,root,jserv) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zone.properties
%attr(754,root,root) /etc/rc.d/init.d/jserv
%{_javadir}/ApacheJServ.jar
%{_javadir}/servlet-2.0.jar
+%dir %{_datadir}/jserv
+%dir %attr(750,root,jserv) %{_datadir}/jserv/servlets
%if 0
-%dir %{servletdir}
-%{servletdir}/Hello.java
-%{servletdir}/Hello.class
-%{servletdir}/IsItWorking.java
-%{servletdir}/IsItWorking.class
+%{_datadir}/jserv/servlets/Hello.java
+%{_datadir}/jserv/servlets/Hello.class
+%{_datadir}/jserv/servlets/IsItWorking.java
+%{_datadir}/jserv/servlets/IsItWorking.class
%endif
+%attr(770,root,jserv) %dir %{logdir}
%files -n apache1-mod_jserv
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/mod_jserv.so
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{httpdconf}/conf.d/80_mod_jserv.conf
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{httpdconf}/jserv.secret.key
-%attr(770,root,http) %dir %{logdir}
%files doc
%defattr(644,root,root,755)
@@ -278,6 +278,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.50 2005/12/29 14:07:02 glen
+- fixed packaged files
+
Revision 1.49 2005/12/29 12:40:38 glen
- make just two packages: apache module and jserv runner
making also automatic restart goes too crazy and probably nobody needs it anyway
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ApacheJServ.spec?r1=1.49&r2=1.50&f=u
More information about the pld-cvs-commit
mailing list