public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/webalizer] epel9: - spec file cleanups (#226536):
@ 2026-11-08  8:17 jorton
  0 siblings, 0 replies; only message in thread
From: jorton @ 2026-11-08  8:17 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/webalizer
            Branch : epel9
            Commit : 9014047c74c2405e6400a85cb4f798aa7d51e39c
            Author : jorton <jorton@fedoraproject.org>
            Date   : 2007-03-19T10:16:15+00:00
            Stats  : +29/-28 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/webalizer/c/9014047c74c2405e6400a85cb4f798aa7d51e39c?branch=epel9

            Log:
            - spec file cleanups (#226536):
convert to UTF-8
fix BuildRoot, Summary
add Requires(pre) for shadow-utils, remove Prereqs
trim BuildRequires to png-devel, db4-devel
use smp_mflags in make
use sysconfdir macro throughout
preserve file timestamps on installation

---
diff --git a/webalizer.spec b/webalizer.spec
index b483eea..3f1f371 100644
--- a/webalizer.spec
+++ b/webalizer.spec
@@ -2,20 +2,17 @@
 %define patchlevel 10
 
 Name: webalizer
-Summary: A flexible Web server log file analysis program.
+Summary: A flexible Web server log file analysis program
 Group: Applications/Internet
-Version: %{ver}_%{patchlevel}
-Release: 31
+Version: 2.01_10
+Release: 32
 URL: http://www.mrunix.net/webalizer/
 License: GPL
-Buildroot: %{_tmppath}/%{name}-root
-
 Source0: ftp://ftp.mrunix.net/pub/webalizer/%{name}-%{ver}-%{patchlevel}-src.tar.bz2
 Source1: webalizer.conf
 Source2: webalizer.cron
 Source3: webalizer-httpd.conf
-
-Patch0:  webalizer-2.01-06-rh.patch
+Patch0: webalizer-2.01-06-rh.patch
 Patch1: dns-db1.patch
 Patch2: webalizer-2.01_10-lfs.patch
 Patch3: webalizer-2.01-10-overflow.patch
@@ -31,15 +28,9 @@ Patch12: webalizer-2.01-10-agent-gecko.patch
 Patch13: webalizer-2.01-10-agent-apple.patch
 Patch14: webalizer-2.01-10-agent-compatible.patch
 Patch15: webalizer-2.01-10-agent-default.patch
-
-BuildPrereq: gd-devel
-BuildPrereq: zlib-devel
-BuildPrereq: libpng-devel
-BuildPrereq: db4-devel
-
-Prereq: shadow-utils
-Prereq: fileutils
-
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: gd-devel, db4-devel
+Requires(pre): /usr/sbin/useradd
 Requires: webserver, crontabs
 
 %description
@@ -73,7 +64,7 @@ CPPFLAGS="-I%{_includedir}/db4" ; export CPPFLAGS
 CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -D_LARGEFILE64_SOURCE" ; export CFLAGS
 %configure --enable-dns --with-dblib=/lib
 
-make
+make %{?_smp_mflags}
 
 %install
 rm -fr $RPM_BUILD_ROOT
@@ -81,19 +72,19 @@ rm -fr $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT%{_bindir} \
          $RPM_BUILD_ROOT/%{_mandir}/man1 \
          $RPM_BUILD_ROOT/var/www/usage \
-         $RPM_BUILD_ROOT/etc/cron.daily
+         $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
 
 mkdir -p $RPM_BUILD_ROOT/var/lib/webalizer
 
 %makeinstall
-install -m 644 $RPM_SOURCE_DIR/webalizer.conf $RPM_BUILD_ROOT/etc
-install -m 644 *.png $RPM_BUILD_ROOT/var/www/usage
-install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/00webalizer
+install -p -m 644 $RPM_SOURCE_DIR/webalizer.conf $RPM_BUILD_ROOT%{_sysconfdir}
+install -p -m 644 *.png $RPM_BUILD_ROOT/var/www/usage
+install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/00webalizer
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
-install -m 644 $RPM_SOURCE_DIR/webalizer-httpd.conf \
+install -p -m 644 $RPM_SOURCE_DIR/webalizer-httpd.conf \
         $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/webalizer.conf
 
-rm -f $RPM_BUILD_ROOT/etc/webalizer.conf.sample
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/webalizer.conf.sample
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -107,14 +98,24 @@ rm -rf $RPM_BUILD_ROOT
 %doc README
 %{_mandir}/man1/webalizer.1*
 %{_bindir}/*
-%config /etc/webalizer.conf
-%config(noreplace) /etc/cron.daily/00webalizer
-%config(noreplace) /etc/httpd/conf.d/webalizer.conf
+%config %{_sysconfdir}/webalizer.conf
+%config(noreplace) %{_sysconfdir}/cron.daily/00webalizer
+%config(noreplace) %{_sysconfdir}/httpd/conf.d/webalizer.conf
 %attr(-, webalizer, root) %dir /var/www/usage
 %attr(-, webalizer, root) %dir /var/lib/webalizer
 %attr(-, webalizer, root) /var/www/usage/*.png
 
 %changelog
+* Mon Mar 19 2007 Joe Orton <jorton@redhat.com> 2.01_10-32
+- spec file cleanups (#226536):
+ * convert to UTF-8
+ * fix BuildRoot, Summary
+ * add Requires(pre) for shadow-utils, remove Prereqs
+ * trim BuildRequires to png-devel, db4-devel
+ * use smp_mflags in make
+ * use sysconfdir macro throughout
+ * preserve file timestamps on installation
+
 * Mon Jan 29 2007 Joe Orton <jorton@redhat.com> 2.01_10-31
 - rebuild to pick up new db4 soname
 
@@ -264,7 +265,7 @@ rm -rf $RPM_BUILD_ROOT
 * Sun Sep 16 2001 Than Ngo <than@redhat.com> 2.01_06-12
 - add patch from author to fix Webalizer dumps core when MangleAgents is set to 1
 
-* Mon Jul 16 2001 Trond Eivind Glomsr�d <teg@redhat.com>
+* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
 - Remove empty post
 - Mark the crontab file as config(noreplace) 
 
@@ -312,7 +313,7 @@ rm -rf $RPM_BUILD_ROOT
 - changed graph output to png instead of gif
 - changed path to apache root (/var/www)
 
-* Mon Nov 08 1999 Bernhard Rosenkr�nzer <bero@redhat.com>
+* Mon Nov 08 1999 Bernhard Rosenkränzer <bero@redhat.com>
 - handle RPM_OPT_FLAGS
 
 * Tue Sep 28 1999 Preston Brown <pbrown@redhat.com>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-08  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08  8:17 [rpms/webalizer] epel9: - spec file cleanups (#226536): jorton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox