[liblogging] Initial import

Tomas Heinrich theinric at fedoraproject.org
Sun May 18 13:19:03 UTC 2014


commit f483160dc924a87e67b114f3df7f5f5fd5dddcc1
Author: Tomas Heinrich <theinric at redhat.com>
Date:   Sun May 18 11:28:34 2014 +0200

    Initial import

 .gitignore      |    1 +
 liblogging.spec |   78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f66f59d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/liblogging-1.0.4.tar.gz
diff --git a/liblogging.spec b/liblogging.spec
new file mode 100644
index 0000000..5b7d42b
--- /dev/null
+++ b/liblogging.spec
@@ -0,0 +1,78 @@
+Name:    liblogging
+Version: 1.0.4
+Release: 1%{?dist}
+Summary: An easy to use logging library
+License: BSD
+Group:   System Environment/Libraries
+URL:     http://www.liblogging.org/
+Source0: http://download.rsyslog.com/liblogging/liblogging-%{version}.tar.gz
+
+%package stdlog
+Summary: An easy to use logging library - stdlog component
+Group:   System Environment/Libraries
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: dos2unix
+
+%package stdlog-devel
+Summary: An easy to use logging library - stdlog development files
+Group:   Development/Libraries
+Requires: %{name}-stdlog%{_isa} = %{version}-%{release}
+Requires: pkgconfig
+
+%description
+liblogging (the upstream project) is a collection of several components.
+Namely: stdlog, journalemu, rfc3195.
+
+%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).
+
+%description stdlog-devel
+This package contains development files for the %{name}-stdlog package.
+
+%prep
+%setup -q
+
+%build
+%configure \
+  --disable-journal \
+  --disable-rfc3195 \
+  --disable-static \
+  --enable-stdlog \
+
+make V=1 %{?_smp_mflags}
+dos2unix COPYING
+
+%install
+make DESTDIR=%{buildroot} install
+# not packing stdlogctl yet
+rm -f \
+  %{buildroot}%{_bindir}/stdlogctl \
+  %{buildroot}%{_libdir}/liblogging-stdlog.la \
+  %{buildroot}%{_mandir}/man1/stdlogctl.1 \
+
+%post stdlog -p /sbin/ldconfig
+
+%postun stdlog -p /sbin/ldconfig
+
+%files stdlog
+%defattr(-,root,root,-)
+%doc COPYING ChangeLog
+%{_libdir}/liblogging-stdlog.so.*
+
+%files stdlog-devel
+%defattr(-,root,root,-)
+%{_includedir}/liblogging
+%{_libdir}/liblogging-stdlog.so
+%{_libdir}/pkgconfig/liblogging-stdlog.pc
+%{_mandir}/man3/stdlog.3.gz
+
+%changelog
+* Sun May 18 2014 Tomas Heinrich <theinric at redhat.com> 1.0.4-1
+- initial import
diff --git a/sources b/sources
index e69de29..c9ecd6e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+034083ef1424a566fdeefc56a719691f  liblogging-1.0.4.tar.gz


More information about the scm-commits mailing list