diff --git a/README.md b/README.md index 516061f..5b83fe0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # liblogging +Liblogging offers an enhanced replacement for the syslog() call, but retains its ease of use. In a nutshell, it permits sytem administrators to direct application log output to different destinations without requiring the app developer to do any work for this. Liblogging is released under a 2-clause BSD license and as such can be used in any application. + diff --git a/liblogging.spec b/liblogging.spec new file mode 100644 index 0000000..f468b4f --- /dev/null +++ b/liblogging.spec @@ -0,0 +1,80 @@ +Name: liblogging +Version: 1.0.5 +Release: 1mamba +Summary: An easy to use logging library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.liblogging.org/ +Source: http://download.rsyslog.com/liblogging/liblogging-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libsystemd-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Liblogging offers an enhanced replacement for the syslog() call, but retains its ease of use. In a nutshell, it permits sytem administrators to direct application log output to different destinations without requiring the app developer to do any work for this. Liblogging is released under a 2-clause BSD license and as such can be used in any application. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: System/Management +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/liblogging-stdlog.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/liblogging +%{_includedir}/liblogging/stdlog.h +%{_libdir}/liblogging-stdlog.a +%{_libdir}/liblogging-stdlog.la +%{_libdir}/liblogging-stdlog.so +%{_libdir}/pkgconfig/liblogging-stdlog.pc +%{_mandir}/man3/stdlog.3* +%doc ChangeLog README + +%files tools +%defattr(-,root,root) +%{_bindir}/stdlogctl +%{_mandir}/man1/stdlogctl.1* + +%changelog +* Fri Mar 06 2015 Silvan Calarco 1.0.5-1mamba +- package created using the webbuild interface