-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibservicelog.spec.in
115 lines (90 loc) · 3.54 KB
/
libservicelog.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
%define name libservicelog
%define version @PACKAGE_VERSION@
Name: %{name}
Version: %{version}
Release: 1%{?dist}
Summary: Servicelog Database and Library
Group: System Environment/Libraries
License: LGPLv2
Vendor: IBM Corp.
URL: http://linux-diag.sourceforge.net/libservicelog
Source0: http://downloads.sourceforge.net/linux-diag/%{name}/%{version}/%{name}-%{version}.tar.gz
ExclusiveArch: ppc ppc64 ppc64le
BuildRequires: sqlite-devel bison flex librtas-devel libtool automake
Requires(pre): /usr/sbin/groupadd
%description
The libservicelog package contains a library to create and maintain a
database for storing events related to system service. This database
allows for the logging of serviceable and informational events, and for
the logging of service procedures that have been performed upon the system.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: pkgconfig sqlite-devel
Requires: %{name} = %{version}-%{release}
%description devel
Contains header files for building with libservicelog.
%prep
%setup -q
%build
./bootstrap.sh
%configure --disable-static
%{__make} %{?_smp_mflags}
touch servicelog.db
install -D --mode=754 servicelog.db \
$RPM_BUILD_ROOT/var/lib/servicelog/servicelog.db
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%pre
getent group service >/dev/null || /usr/sbin/groupadd -r service
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING AUTHORS README
%exclude %{_libdir}/*.la
%{_libdir}/libservicelog-@[email protected].*
%{_libdir}/libservicelog-*.so.*
%attr( 754, root, service ) %dir /var/lib/servicelog
%config(noreplace) %verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/servicelog-1
%{_libdir}/*.la
%{_libdir}/pkgconfig/servicelog-1.pc
%changelog
* Tue Aug 22 2017 Ankit Kumar <[email protected]> 1.1.18
- Sqlite bind call validation
- Added libservicelog test cases
- Print machine serial number
- Fixed few regression issues
* Wed Mar 22 2017 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.17
- NULL check before calling strdup
- Fixed various bugs
* Tue Mar 15 2016 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.16
- Fixed security issues like buffer overflow, memory allocation validation
- Fixed sqlite bind issue
- Fixed several build warnings
* Thu Aug 14 2014 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.15
- Cleanup build tools (configure.ac and Makefile.am)
* Tue Aug 20 2013 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.14
- Include servicelog.db and bootstrap.sh file into compression file list
* Thu Jan 10 2013 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.13
- Legalize SQL insert command input string
- repair_action : fix output format issue
- Minor typo fix
* Wed Sep 12 2012 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.12
- Minor changes
* Sat Nov 07 2009 Jim Keniston <jkenisto at us.ibm.com>, Brad Peters 1.1.x
- Minor changes continued in the ensuing months
* Sat Aug 16 2008 Mike Strosaker <strosake at austin.ibm.com> 1.0.1
- Create /var/lib/servicelog/servicelog.db at install time
- Additional comments and code cleanup
- Fix issue with notification tools not being started
- Beautify printing of notification tools
* Tue Mar 04 2008 Mike Strosaker <strosake at austin.ibm.com> 1.0.0
- Initial creation of the package