Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:infrastructure
cronolog
cronolog.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cronolog.spec of Package cronolog
# # spec file for package cronolog # # Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: cronolog Version: 1.7.0 %define realver 1.7.0-beta Release: 10 Summary: Web log rotation program for Apache Group: System/Base License: GPL-2.0-only URL: https://github.com/fordmason/cronolog Source0: %{name}-%{realver}.tar.gz Patch0: cronolog-1.7.0-strncat-compilefix.patch Patch1: cronolog_avoid_empty_filename.patch Patch2: cronolog_-_cronosplit.patch Patch3: cronolog_manpage.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} PreReq: %{install_info_prereq} %endif %description cronolog is a simple filter program that reads log file entries from standard input and writes each entry to the output file specified by a filename template and the current date and time. When the expanded filename changes, the current file is closed and a new one opened. cronolog is intended to be used in conjunction with a Web server, such as Apache, to split the access log into daily or monthly logs. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build %configure make %install make install DESTDIR=%{buildroot} sed -i 's|/www/sbin|/usr/sbin|g' %{buildroot}/%{_mandir}/man1/* mkdir -p %{buildroot}/%{_bindir} mv %{buildroot}/%{_sbindir}/cronosplit %{buildroot}/%{_bindir} rm -f %{buildroot}%{_infodir}/dir %if 0%{?suse_version} %post %install_info --info-dir=%{_infodir} %{_infodir}/cronolog.info.gz %preun %install_info_delete --info-dir=%{_infodir} %{_infodir}/cronolog.info.gz %endif %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %{_sbindir}/* %{_bindir}/* %{_mandir}/man1/* %{_infodir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor