]> git.pld-linux.org Git - packages/analog.git/blobdiff - analog.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/analog.git] / analog.spec
index 6ca463e21208c6152de6c9d4c16575c118f825ce..d9cfefd0d206a0dab6a42da5dda224687de4abd4 100644 (file)
@@ -1,16 +1,15 @@
 Summary:       WWW server logfile analysis program
 Summary(pl):   Analizator logów serwera www
 Name:          analog
-Version:       4.02
+Version:       5.03
 Release:       1
-Copyright:     distributable
-Group:         Utilities
-Group(pl):     Narzêdzia
-Source:                ftp://ftp.nhl.nl/pub/unix/analog/%{name}%{version}.tar.gz
-Patch0:                analog-config.patch
+License:       distributable
+Group:         Networking/Utilities
+Source0:       ftp://ftp.nhl.nl/pub/unix/analog/%{name}-%{version}.tar.gz
+Patch0:                %{name}-config.patch
 Requires:      webserver
 URL:           http://www.statslab.cam.ac.uk/~sret1/analog/
-BuildRoot:     /tmp/%{name}-%{version}-buildroot
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 WWW server logfile analysis program with lots of features.
@@ -21,49 +20,46 @@ Analizator log
 %package form
 Summary:       Form interface to analog
 Summary(pl):   Interfejs w postaci formularza do analoga
+Group:         Networking/Utilities
 Requires:      %{name} = %{version}
-Group:         Utilities
-Group(pl):     Narzêdzia
 
 %description form
-Form interface to the analog httpd log analysis program.  You should
+Form interface to the analog httpd log analysis program. You should
 regenerate the form file to customize it for your server by running
 'analog -form +O/home/httpd/html/anlgform.html' after you have
 modified /etc/analog.cfg.
 
 %description -l pl form
 Interfejs w postaci formularza do programu analog. Powiniene¶
-wygenerowaæ nowy plik formularza po ustawieniu odpowiednich
-opcji w /etc/analog.cfg poprzez wykonanie komendy:
-`analog -form +O/home/httpd/html/usage/anlgform.html`.
+wygenerowaæ nowy plik formularza po ustawieniu odpowiednich opcji w
+/etc/analog.cfg poprzez wykonanie polecenia: 'analog -form
++O/home/httpd/html/anlgform.html'
 
 %prep
-#%setup -q -n %{name}%{version}
-%setup -n %{name}%{version}
+%setup -q
 %patch0 -p1
 
 %build
-make CEXTRAFLAGS="$RPM_OPT_FLAGS" %{name}
+%{__make} CFLAGS="%{rpmcflags}" CEXTRAFLAGS="%{rpmcflags}" %{name}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/home/httpd/{icons,cgi-bin,html/usage} \
+       $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_datadir}/%{name}/lang} \
+       $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
 
-install -d     $RPM_BUILD_ROOT/home/httpd/{icons,cgi-bin,html/usage}
-install -d     $RPM_BUILD_ROOT%{_var}/state/%{name}
-install -d     $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
-install -d     $RPM_BUILD_ROOT%{_bindir}
-install -d      $RPM_BUILD_ROOT/etc
+install analog $RPM_BUILD_ROOT%{_bindir}
+install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
+install lang/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
+install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
+install images/* $RPM_BUILD_ROOT/home/httpd/icons
+install anlgform.html $RPM_BUILD_ROOT/home/httpd/html/usage
+install anlgform.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin
 
-install -s     analog          $RPM_BUILD_ROOT%{_bindir}
-install                analog.cfg      $RPM_BUILD_ROOT/etc/%{name}.cfg
-install                lang/*          $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
-install                analog.cfg      $RPM_BUILD_ROOT/etc
-install                images/*        $RPM_BUILD_ROOT/home/httpd/icons
-install                anlgform.html   $RPM_BUILD_ROOT/home/httpd/html/usage
-#install               anlgform.cgi    $RPM_BUILD_ROOT/home/httpd/cgi-bin
-touch                          $RPM_BUILD_ROOT/home/httpd/html/usage/analog.html
+touch $RPM_BUILD_ROOT/home/httpd/html/usage/analog.html
+
+gzip -9nf docs/*.txt lang/*.html
 
-gzip -9nf docs/* lang/*.html
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -72,15 +68,15 @@ rm -rf $RPM_BUILD_ROOT
 %doc docs/* lang/*.gz
 %attr(755,root,root) %dir %{_datadir}/analog/lang
 %attr(755,root,root) %dir %{_datadir}/analog
-%attr(775,root,http) %dir /var/state/analog
-%config(noreplace) %verify(not size mtime md5) /etc/analog.cfg
+%attr(775,root,http) %dir /var/lib/analog
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/analog.cfg
 %attr(755,root,root) %{_bindir}/analog
 %{_datadir}/analog/lang/*.*
 /home/httpd/icons/*.gif
 %attr(755,root,root) %dir /home/httpd/html/usage
 %verify(not size mtime md5) /home/httpd/html/usage/analog.html
 
-#%files form
-#%defattr(644,root,root,755)
-#%config(noreplace) %verify(not size mtime md5) /home/httpd/html/usage/anlgform.html
-#%attr(755,root,root) /home/httpd/cgi-bin/anlgform.cgi
+%files form
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not size mtime md5) /home/httpd/html/usage/anlgform.html
+%attr(755,root,root) /home/httpd/cgi-bin/anlgform.pl
This page took 0.0283 seconds and 4 git commands to generate.