liblogging/liblogging.spec

81 lines
2.2 KiB
RPMSpec
Raw Normal View History

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.0.5-1mamba
- package created using the webbuild interface