[packages/liblogging] - new

baggins baggins at pld-linux.org
Wed Apr 12 20:41:59 CEST 2017


commit 426b64a6f63371505e104a88fcef92c282351926
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Apr 12 20:41:42 2017 +0200

    - new

 liblogging.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
---
diff --git a/liblogging.spec b/liblogging.spec
new file mode 100644
index 0000000..ed8f79f
--- /dev/null
+++ b/liblogging.spec
@@ -0,0 +1,76 @@
+Summary:	An easy to use logging library
+Name:		liblogging
+Version:	1.0.4
+Release:	1
+License:	BSD
+Group:		Libraries
+Source0:	http://download.rsyslog.com/liblogging/%{name}-%{version}.tar.gz
+# Source0-md5:	034083ef1424a566fdeefc56a719691f
+URL:		http://www.liblogging.org/
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+liblogging (the upstream project) is a collection of several
+components. Namely: stdlog, journalemu, rfc3195.
+
+%package stdlog
+Summary:	An easy to use logging library - stdlog component
+Group:		Libraries
+
+%description stdlog
+liblogging (the upstream project) is a collection of several
+components. Namely: stdlog, journalemu, rfc3195. The stdlog component
+of liblogging can be viewed as an enhanced version of the syslog(3)
+API. It retains the easy semantics, but makes the API more
+sophisticated "behind the scenes" with better support for multiple
+threads and flexibility for different log destinations (e.g. syslog
+and systemd journal).
+
+%package stdlog-devel
+Summary:	An easy to use logging library - stdlog development files
+Group:		Development/Libraries
+Requires:	%{name}-stdlog = %{version}-%{release}
+
+%description stdlog-devel
+This package contains development files for the %{name}-stdlog
+package.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--disable-static \
+	--disable-rfc3195 \
+	--disable-journal
+
+%{__make} V=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/stdlogctl \
+	$RPM_BUILD_ROOT%{_mandir}/man1/stdlogctl.1*
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post stdlog -p /sbin/ldconfig
+%postun stdlog -p /sbin/ldconfig
+
+%files stdlog
+%defattr(644,root,root,755)
+%{_libdir}/liblogging-stdlog.so.*
+
+%files stdlog-devel
+%defattr(644,root,root,755)
+%doc ChangeLog
+%{_includedir}/liblogging
+%{_libdir}/liblogging-stdlog.so
+%{_pkgconfigdir}/liblogging-stdlog.pc
+%{_mandir}/man3/stdlog.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liblogging.git/commitdiff/426b64a6f63371505e104a88fcef92c282351926



More information about the pld-cvs-commit mailing list