~ubuntu-branches/ubuntu/wily/libservicelog/wily

« back to all changes in this revision

Viewing changes to libservicelog.spec.in

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-04-03 19:30:14 UTC
  • Revision ID: package-import@ubuntu.com-20140403193014-w4j3dvho6j1axd6k
Tags: upstream-1.1.14
ImportĀ upstreamĀ versionĀ 1.1.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%define name libservicelog
 
2
%define version @VERSION@
 
3
 
 
4
Name:           %{name}
 
5
Version:        %{version}
 
6
Release:        0%{?dist}
 
7
Summary:        Servicelog Database and Library
 
8
Group:          System Environment/Libraries
 
9
License:        LGPLv2
 
10
Vendor:         IBM Corp.
 
11
URL:            http://linux-diag.sourceforge.net/servicelog
 
12
Source0:        http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
 
13
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
14
ExclusiveArch:  ppc ppc64
 
15
BuildRequires:  sqlite-devel bison flex librtas-devel
 
16
Requires(pre):  /usr/sbin/groupadd
 
17
 
 
18
%description
 
19
The libservicelog package contains a library to create and maintain a
 
20
database for storing events related to system service.  This database
 
21
allows for the logging of serviceable and informational events, and for
 
22
the logging of service procedures that have been performed upon the system.
 
23
 
 
24
 
 
25
%package        devel
 
26
Summary:        Development files for %{name}
 
27
Group:          Development/Libraries
 
28
Requires:       %{name} = %{version}-%{release}
 
29
 
 
30
%description    devel
 
31
Contains header files for building with libservicelog.
 
32
 
 
33
 
 
34
%prep
 
35
%setup -q
 
36
 
 
37
%build
 
38
%configure --disable-static
 
39
%{__make} %{?_smp_mflags}
 
40
touch servicelog.db
 
41
install -D --mode=754 servicelog.db \
 
42
        $RPM_BUILD_ROOT/var/lib/servicelog/servicelog.db
 
43
 
 
44
%install
 
45
%{__rm} -rf $RPM_BUILD_ROOT
 
46
%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
47
 
 
48
%clean
 
49
%{__rm} -rf $RPM_BUILD_ROOT
 
50
 
 
51
%pre
 
52
/usr/sbin/groupadd -r service || echo "groupadd service failed"
 
53
 
 
54
%post -p /sbin/ldconfig
 
55
 
 
56
%postun -p /sbin/ldconfig
 
57
 
 
58
%files
 
59
%defattr(-,root,root,-)
 
60
%doc COPYING NEWS AUTHORS
 
61
%exclude %{_libdir}/*.la
 
62
%{_libdir}/libservicelog-@GENERIC_RELEASE@.so.*
 
63
%{_libdir}/libservicelog-*.so.*
 
64
%attr( 754, root, service ) %dir /var/lib/servicelog
 
65
%attr( 644, root, service ) /var/lib/servicelog/servicelog.db
 
66
%config /var/lib/servicelog/servicelog.db
 
67
 
 
68
%files devel
 
69
%defattr(-,root,root,-)
 
70
%{_libdir}/*.so
 
71
%{_includedir}/servicelog-1
 
72
%{_libdir}/*.la
 
73
%{_libdir}/pkgconfig/servicelog-1.pc
 
74
 
 
75
%changelog
 
76
* Tue Aug 20 2013 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.14
 
77
- Include servicelog.db and bootstrap.sh file into compression file list
 
78
 
 
79
* Thu Jan 10 2013 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.13
 
80
- Legalize SQL insert command input string
 
81
- repair_action : fix output format issue
 
82
- Minor typo fix
 
83
 
 
84
* Wed Sep 12 2012 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> 1.1.12
 
85
- Minor changes
 
86
 
 
87
* Sat Nov 07 2009 Jim Keniston <jkenisto at us.ibm.com>, Brad Peters 1.1.x
 
88
- Minor changes continued in the ensuing months
 
89
 
 
90
* Sat Aug 16 2008 Mike Strosaker <strosake at austin.ibm.com> 1.0.1
 
91
- Create /var/lib/servicelog/servicelog.db at install time
 
92
- Additional comments and code cleanup
 
93
- Fix issue with notification tools not being started
 
94
- Beautify printing of notification tools
 
95
 
 
96
* Tue Mar 04 2008 Mike Strosaker <strosake at austin.ibm.com> 1.0.0
 
97
- Initial creation of the package