]> git.pld-linux.org Git - packages/cronolog.git/blob - cronolog.spec
- rel 4
[packages/cronolog.git] / cronolog.spec
1 Summary:        A flexible log file rotation program for Apache
2 Summary(pl):    Program do elastycznej rotacji logów serwera Apache
3 Name:           cronolog
4 Version:        1.6.2
5 Release:        4
6 License:        Apache license
7 Group:          Networking/Daemons
8 Source0:        http://www.cronolog.org/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  a44564fd5a5b061a5691b9a837d04979
10 Patch0:         http://cronolog.org/patches/%{name}-jumbo-patch.txt
11 URL:            http://www.cronolog.org/
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 "cronolog" is a simple program that reads log messages from its input
16 and writes them to a set of output files, the names of which are
17 constructed using template and the current date and time. The template
18 uses the same format specifiers as the Unix date command (which are
19 the same as the standard C strftime library function).
20
21 %description -l pl
22 "cronolog" jest prostym programem czytaj±cym logi i zapisuj±cym je do
23 plików wyj¶ciowych, których nazwy mo¿na tworzyæ u¿ywaj±c szablonu oraz
24 bie¿±cego czasu i daty. Szablony korzystaj± z tego samego formatu co
25 polecenie date systemu Unix (który jest taki sam jak dla standardowej
26 funkcji C strftime). Dziêki u¿yciu mechanizmu "piped logs", program
27 ten mo¿e byæ stosowany do rotacji logów, która nie wymaga
28 restartowania serwera Apache.
29
30 %prep
31 %setup -q
32 %patch0 -p1
33
34 %build
35 %configure2_13
36
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
52
53 %postun
54 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
55
56 %files
57 %defattr(644,root,root,755)
58 %doc AUTHORS ChangeLog README NEWS TODO
59 %attr(755,root,root) %{_sbindir}/cronolog
60 %attr(755,root,root) %{_sbindir}/cronosplit
61 %{_mandir}/man1/*.1*
62 %{_infodir}/*.info*
This page took 0.055277 seconds and 3 git commands to generate.