%define name eventlog %define version 0.2.12 %define release %mkrel 2 %define major 0 %define libname %mklibname %{name} %{major} Name: %{name} Version: %{version} Release: %{release} Summary: Syslog-ng v2 support library License: BSD Group: System/Libraries URL: http://www.balabit.com/products/syslog_ng/ Source: http://www.balabit.com/downloads/files/eventlog/0.2/%{name}_%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version} %description The EventLog library aims to be a replacement of the simple syslog() API provided on UNIX systems. The major difference between EventLog and syslog is that EventLog tries to add structure to messages. EventLog provides an interface to build, format and output an event record. The exact format and output method can be customized by the administrator via a configuration file. This package is the runtime part of the library. %package -n %{libname} Group: Development/Other License: GPL Summary: Replacement for syslog API %description -n %{libname} The EventLog library aims to be a replacement of the simple syslog() API provided on UNIX systems. The major difference between EventLog and syslog is that EventLog tries to add structure to messages. EventLog provides an interface to build, format and output an event record. The exact format and output method can be customized by the administrator via a configuration file. This package is the runtime part of the library. %package -n %{libname}-devel Group: Development/Other License: GPL Summary: Replacement for syslog API Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{libname}-devel The EventLog library aims to be a replacement of the simple syslog() API provided on UNIX systems. The major difference between EventLog and syslog is that EventLog tries to add structure to messages. EventLog provides an interface to build, format and output an event record. The exact format and output method can be customized by the administrator via a configuration file. This package contains the development files. %prep %setup -q %build %configure2_5x %make %install rm -rf %{buildroot} %makeinstall %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING CREDITS NEWS PORTS README VERSION %{_libdir}/libevtlog*so.* %files -n %{libname}-devel %defattr (-,root,root) %{_includedir}/eventlog %{_libdir}/libevtlog.a %{_libdir}/libevtlog.la %{_libdir}/libevtlog.so %{_libdir}/pkgconfig/eventlog.pc %changelog * Fri Jan 11 2013 umeabot <umeabot> 0.2.12-2.mga3 + Revision: 349799 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jun 29 2011 rapsys <rapsys> 0.2.12-1.mga2 + Revision: 115980 - Fix build - Add the spec file - Created package structure for eventlog.