]>
Commit | Line | Data |
---|---|---|
cf91f418 | 1 | Summary: A flexible log file rotation program for Apache |
670bb484 | 2 | Summary(pl.UTF-8): Program do elastycznej rotacji logów serwera Apache |
cf91f418 | 3 | Name: cronolog |
12e8e053 | 4 | Version: 1.6.2 |
f32d4ed6 | 5 | Release: 4 |
12e8e053 | 6 | License: Apache license |
7 | Group: Networking/Daemons | |
30fc335f | 8 | Source0: http://www.cronolog.org/download/%{name}-%{version}.tar.gz |
23e56521 | 9 | # Source0-md5: a44564fd5a5b061a5691b9a837d04979 |
30fc335f | 10 | Patch0: http://cronolog.org/patches/%{name}-jumbo-patch.txt |
23e56521 | 11 | URL: http://www.cronolog.org/ |
12e8e053 | 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 | ||
cbc0ff13 JR |
21 | %description -l pl.UTF-8 |
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 | |
30fc335f | 28 | restartowania serwera Apache. |
12e8e053 | 29 | |
30 | %prep | |
fd6dc6df | 31 | %setup -q |
30fc335f | 32 | %patch0 -p1 |
12e8e053 | 33 | |
34 | %build | |
9a51fac8 | 35 | %configure2_13 |
f70e8e73 | 36 | |
12e8e053 | 37 | %{__make} |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
f70e8e73 | 42 | %{__make} install \ |
9a51fac8 | 43 | DESTDIR=$RPM_BUILD_ROOT |
12e8e053 | 44 | |
f32d4ed6 | 45 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
30fc335f | 46 | |
12e8e053 | 47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
9a51fac8 JB |
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 | ||
12e8e053 | 56 | %files |
57 | %defattr(644,root,root,755) | |
dd81b951 | 58 | %doc AUTHORS ChangeLog README NEWS TODO |
f70e8e73 JB |
59 | %attr(755,root,root) %{_sbindir}/cronolog |
60 | %attr(755,root,root) %{_sbindir}/cronosplit | |
9a51fac8 | 61 | %{_mandir}/man1/*.1* |
23e04406 | 62 | %{_infodir}/*.info* |