]> git.pld-linux.org Git - packages/liblogging.git/blob - liblogging.spec
- new
[packages/liblogging.git] / liblogging.spec
1 Summary:        An easy to use logging library
2 Name:           liblogging
3 Version:        1.0.4
4 Release:        1
5 License:        BSD
6 Group:          Libraries
7 Source0:        http://download.rsyslog.com/liblogging/%{name}-%{version}.tar.gz
8 # Source0-md5:  034083ef1424a566fdeefc56a719691f
9 URL:            http://www.liblogging.org/
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12 %description
13 liblogging (the upstream project) is a collection of several
14 components. Namely: stdlog, journalemu, rfc3195.
15
16 %package stdlog
17 Summary:        An easy to use logging library - stdlog component
18 Group:          Libraries
19
20 %description stdlog
21 liblogging (the upstream project) is a collection of several
22 components. Namely: stdlog, journalemu, rfc3195. The stdlog component
23 of liblogging can be viewed as an enhanced version of the syslog(3)
24 API. It retains the easy semantics, but makes the API more
25 sophisticated "behind the scenes" with better support for multiple
26 threads and flexibility for different log destinations (e.g. syslog
27 and systemd journal).
28
29 %package stdlog-devel
30 Summary:        An easy to use logging library - stdlog development files
31 Group:          Development/Libraries
32 Requires:       %{name}-stdlog = %{version}-%{release}
33
34 %description stdlog-devel
35 This package contains development files for the %{name}-stdlog
36 package.
37
38 %prep
39 %setup -q
40
41 %build
42 %configure \
43         --disable-static \
44         --disable-rfc3195 \
45         --disable-journal
46
47 %{__make} V=1
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %{__rm} $RPM_BUILD_ROOT%{_bindir}/stdlogctl \
56         $RPM_BUILD_ROOT%{_mandir}/man1/stdlogctl.1*
57
58 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post stdlog -p /sbin/ldconfig
64 %postun stdlog -p /sbin/ldconfig
65
66 %files stdlog
67 %defattr(644,root,root,755)
68 %{_libdir}/liblogging-stdlog.so.*
69
70 %files stdlog-devel
71 %defattr(644,root,root,755)
72 %doc ChangeLog
73 %{_includedir}/liblogging
74 %{_libdir}/liblogging-stdlog.so
75 %{_pkgconfigdir}/liblogging-stdlog.pc
76 %{_mandir}/man3/stdlog.3*
This page took 0.066561 seconds and 3 git commands to generate.