File managelogs.spec of Package managelogs
# vim: set sw=3 ts=3 noet:
#
# spec file for package managelogs
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: managelogs
Version: 2.2.1
Release: 0
%define soname 2
Summary: Log Processing Program
License: Apache-2.0
Group: Productivity/Networking/Web/Utilities
# http://prdownloads.sourceforge.net/managelogs/managelogs-{version}.tar.gz
Source: managelogs-%{version}.tar.bz2
Source99: managelogs-rpmlintrc
Url: http://www.tekwire.net/joomla/projects/managelogs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libapr1-devel
BuildRequires: libbz2-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: zlib-devel
Requires: liblogmanager%{soname} = %{version}-%{release}
# needed for check:
BuildRequires: ps
%description
managelogs is a log processing program to be used in conjunction with Apache's
piped logfile feature. It is an alternative to the well known rotatelogs and
cronolog programs. Its primary purpose is to solve the "log filesystem full"
issue by purging the oldest log files when the total log size exceeds a given
value. It can also write compressed files, maintain symbolic links to the
current and archive log files, and setuid to a given user. It maintains its
state across Apache restarts, and allows writing to several output channels,
each one having its own configuration.
Authors:
--------
Francois Laupretre <francois@tekwire.net>
%package -n liblogmanager%{soname}
Summary: Log Processing Library
Group: System/Libraries
%description -n liblogmanager%{soname}
managelogs is a log processing program to be used in conjunction with Apache's
piped logfile feature. It is an alternative to the well known rotatelogs and
cronolog programs. Its primary purpose is to solve the "log filesystem full"
issue by purging the oldest log files when the total log size exceeds a given
value. It can also write compressed files, maintain symbolic links to the
current and archive log files, and setuid to a given user. It maintains its
state across Apache restarts, and allows writing to several output channels,
each one having its own configuration.
%package -n liblogmanager-devel
Summary: Log Processing Library
Group: Development/Libraries/C and C++
Requires: liblogmanager%{soname} = %{version}-%{release}
%description -n liblogmanager-devel
managelogs is a log processing program to be used in conjunction with Apache's
piped logfile feature. It is an alternative to the well known rotatelogs and
cronolog programs. Its primary purpose is to solve the "log filesystem full"
issue by purging the oldest log files when the total log size exceeds a given
value. It can also write compressed files, maintain symbolic links to the
current and archive log files, and setuid to a given user. It maintains its
state across Apache restarts, and allows writing to several output channels,
each one having its own configuration.
%prep
%setup -q
%__chmod 0644 ACKNOWLEDGEMENTS AUTHORS ChangeLog COPYING NEWS NOTICE README TODO
%build
%configure \
--with-apr="%{_usr}/bin/apr-1-config"
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__rm "%{buildroot}%{_libdir}"/lib*.la
%check
%__make check
%post -n liblogmanager%{soname} -p /sbin/ldconfig
%postun -n liblogmanager%{soname} -p /sbin/ldconfig
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc ACKNOWLEDGEMENTS AUTHORS ChangeLog COPYING NEWS NOTICE README TODO
%{_bindir}/managelogs
%{_mandir}/man8/managelogs.8%{ext_man}
%files -n liblogmanager%{soname}
%defattr(-,root,root)
%{_libdir}/liblogmanager.so.%{soname}
%{_libdir}/liblogmanager.so.%{soname}.*
%files -n liblogmanager-devel
%defattr(-,root,root)
%{_includedir}/logmanager.h
%{_libdir}/liblogmanager.so
%{_libdir}/liblogmanager.a
%changelog