]> git.pld-linux.org Git - packages/awffull.git/blobdiff - awffull.spec
- converted to UTF-8
[packages/awffull.git] / awffull.spec
index 06793fc2fcb091ca7de891d2071f5fe2880695ee..25a243ccad16249501ceac0bb9b914ce505adec7 100644 (file)
@@ -1,13 +1,23 @@
+# TODO:
+# - install flags in %{datadir}/%{name} and make config for apache
+# - patch config in package and fix paths
 Summary:       Web server log analysis program
+Summary(pl.UTF-8):   Program do analizy logów serwera WWW
 Name:          awffull
-Version:       3.4.1
-Release:       0.1
-License:       GPL
+Version:       3.7.1
+Release:       1
+License:       GPL v2
 Group:         Applications/Networking
-URL:           http://www.stedee.id.au/awffull
 Source0:       http://www.stedee.id.au/files/%{name}-%{version}.tar.gz
-# Source0-md5: 9b1ff7694d62f42dcf44832a7e163ce5
+# Source0-md5: f1cf872a64780b9b83432840d6da18a0
+Source1:       %{name}.sysconfig
+Source2:       %{name}.cron
+Source3:       %{name}.crontab
+Patch0:                %{name}-no_css_overwrite_warning.patch
+URL:           http://www.stedee.id.au/awffull/
+BuildRequires: GeoIP-devel > 1.4.0-1
 BuildRequires: gd-devel
+BuildRequires: gettext-devel
 BuildRequires: pcre-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -16,8 +26,15 @@ AWFFull is a Web server log analysis program, forked from Webalizer.
 It adds a number of new features and improvements, such as extended
 frontpage history, resizable graphs, and a few more pie charts.
 
+%description -l pl.UTF-8
+AWFFull to program do analizy logów serwer WWW wywodzący się z
+Webalizera. Dodaje wiele nowych możliwości i ulepszeń, takich jak
+rozszerzona historia strony głównej, skalowalne wykresy i nieco więcej
+wykresów kołowych.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
@@ -25,14 +42,30 @@ frontpage history, resizable graphs, and a few more pie charts.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/{sysconfig,cron.d},%{_sbindir}}
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
+install %{name}_history_regen.pl $RPM_BUILD_ROOT%{_sbindir}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/%{name}.cron
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}
+
+%find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc ChangeLog COPYING INSTALL README TODO
-%doc %{_mandir}/man1/awffull*
-%attr(755,root,root) %{_bindir}/awffull
+%doc ChangeLog *README* TODO flags
+%attr(2755,root,stats) %dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_sbindir}/%{name}.cron
+%attr(755,root,root) %{_sbindir}/%{name}_history_regen.pl
+%{_mandir}/man1/awffull*
This page took 0.025631 seconds and 4 git commands to generate.