-# $Id: junkbuster-rh.spec,v 1.29 2002/03/03 19:21:22 hal9 Exp $
+# $Id: junkbuster-rh.spec,v 1.32 2002/03/05 12:34:24 morcego Exp $
#
# Written by and Copyright (C) 2001 the SourceForge
# IJBSWA team. http://ijbswa.sourceforge.net
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# $Log: junkbuster-rh.spec,v $
+# Revision 1.32 2002/03/05 12:34:24 morcego
+# - Changing section internaly on the manpage from 1 to 8
+# - We now require packages, not files, to avoid issues with apt
+#
+# Revision 1.31 2002/03/04 18:06:09 morcego
+# SPECFILE: fixing permissing of the init script (broken by the last change)
+#
+# Revision 1.30 2002/03/04 16:18:03 morcego
+# General cleanup of the rh specfile.
+#
+# %changelog
+# * Mon Mar 04 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
+# + junkbuster-2.9.11-2
+# - General specfile fixup, using the best recomended practices, including:
+# - Adding -q to %%setup
+# - Using macros whereever possible
+# - Not using wildchars on %%files section
+# - Doubling the percentage char on changelog and comments, to
+# avoid rpm expanding them
+#
# Revision 1.29 2002/03/03 19:21:22 hal9
# Init script fails if shell is /bin/false.
#
Vendor: http://ijbswa.sourceforge.net
Name: junkbuster
Version: 2.9.11
-Release: 2
+Release: 5
Source0: http://www.waldherr.org/%{name}/ijbswa-%{version}.tar.gz
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Group: Networking/Utilities
URL: http://ijbswa.sourceforge.net/
Obsoletes: junkbuster-raw junkbuster-blank
-Prereq: /usr/sbin/useradd , /sbin/chkconfig , /sbin/service
-BuildRequires: perl gzip
+# Prereq: /usr/sbin/useradd , /sbin/chkconfig , /sbin/service
+Prereq: shadow-utils, chkconfig, initscripts
+BuildRequires: perl gzip sed docbook-utils
Conflicts: junkbuster-raw junkbuster-blank
%description
%build
%configure
make
+make redhat-dok
## Explicitily stripping is not recomended.
## This is handled altomaticaly by RPM, and can couse troubles if
#gzip README AUTHORS ChangeLog %{name}.1 || /bin/true
install -s -m 744 %{name} %{buildroot}%{_sbindir}/%{name}
-cp -f %{name}.1 %{buildroot}%{_mandir}/man8/%{name}.8
+
+## We need to change the man section internaly on the manpage
+## -- morcego (sugestion by Hal Burgiss)
+#cp -f %{name}.1 %{buildroot}%{_mandir}/man8/%{name}.8
+sed -e 's@^.TH JUNKBUSTER 1@.TH JUNKBUSTER 8@g' %{name}.1 > %{buildroot}%{_mandir}/man8/%{name}.8
cp -f *.action %{buildroot}%{ijbconf}/
cp -f re_filterfile %{buildroot}%{ijbconf}/re_filterfile
cp -f trust %{buildroot}%{ijbconf}/trust
%doc README AUTHORS ChangeLog
# Where are the webserver/{developer,user}-manual files ?
%doc doc/text/developer-manual.txt doc/text/user-manual.txt
+%doc doc/webserver/developer-manual
+%doc doc/webserver/user-manual
#%doc %{name}.weekly %{name}.monthly AUTHORS
%dir %{ijbconf}
%config %{ijbconf}/templates/untrusted
%config %{_sysconfdir}/logrotate.d/%{name}
-%config %{_sysconfdir}/rc.d/init.d/%{name}
+%config %attr(0744,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
%{_mandir}/man8/%{name}.8*
%changelog
+* Tue Mar 05 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
++ junkbuster-2.9.11-5
+- Added "make redhat-dok" to the build process
+- Added docbook-utils to BuildRequires
+
+* Tue Mar 05 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
++ junkbuster-2.9.11-4
+- Changing man section in the manpage from 1 to 8
+- We now require packages, not files, to avoid issues with apt
+
+* Mon Mar 04 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
++ junkbuster-2.9.11-3
+- Fixing permissions of the init script
+
* Mon Mar 04 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
+ junkbuster-2.9.11-2
- General specfile fixup, using the best recomended practices, including:
- Doubling the percentage char on changelog and comments, to
avoid rpm expanding them
-
* Sun Mar 03 2002 Hal Burgiss <hal@foobox.net>
- /bin/false for shell causes init script to fail. Reverting.