cc6308
Name:           libservicelog
cc6308
Version:        1.1.18
cc6308
Release:        1%{?dist}
cc6308
Summary:        Servicelog Database and Library
cc6308
cc6308
Group:          System Environment/Libraries
cc6308
License:        LGPLv2
cc6308
URL:            http://linux-diag.sourceforge.net/servicelog
cc6308
Source0:        http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
cc6308
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cc6308
cc6308
Requires(pre):       shadow-utils
cc6308
cc6308
BuildRequires:  sqlite-devel autoconf libtool bison librtas-devel flex
cc6308
cc6308
Obsoletes: libservicelog(ppc)
cc6308
# because of librtas-devel
cc6308
ExclusiveArch: ppc64 ppc64le
cc6308
cc6308
# Link with needed libraries
cc6308
Patch0: libservicelog-1.1.15-libs.patch
cc6308
cc6308
%description
cc6308
The libservicelog package contains a library to create and maintain a
cc6308
database for storing events related to system service.  This database
cc6308
allows for the logging of serviceable and informational events, and for
cc6308
the logging of service procedures that have been performed upon the system.
cc6308
cc6308
cc6308
%package        devel
cc6308
Summary:        Development files for %{name}
cc6308
Group:          Development/Libraries
cc6308
Requires:       %{name} = %{version}-%{release}
cc6308
Requires:       pkgconfig sqlite-devel
cc6308
cc6308
%description    devel
cc6308
Contains header files for building with libservicelog.
cc6308
cc6308
cc6308
%prep
cc6308
%setup -q
cc6308
%patch0 -p1 -b .libs
cc6308
cc6308
%build
cc6308
autoreconf -fiv
cc6308
%configure --disable-static
cc6308
%{__make} %{?_smp_mflags}
cc6308
cc6308
cc6308
%install
cc6308
%{__make} install DESTDIR=$RPM_BUILD_ROOT
cc6308
%{__rm} -f %{buildroot}%{_libdir}/*.la
cc6308
cc6308
%pre
cc6308
getent group service >/dev/null || /usr/sbin/groupadd -r service
cc6308
cc6308
%post -p /sbin/ldconfig
cc6308
cc6308
%postun
cc6308
/sbin/ldconfig
cc6308
cc6308
%files
cc6308
%doc COPYING AUTHORS
cc6308
%{_libdir}/libservicelog-*.so.*
cc6308
%dir %attr(755, root, service) /var/lib/servicelog
cc6308
%verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db
cc6308
%config(noreplace) /var/lib/servicelog/servicelog.db
cc6308
cc6308
%files devel
cc6308
%{_includedir}/servicelog-1
cc6308
%{_libdir}/*.so
cc6308
%{_libdir}/pkgconfig/servicelog-1.pc
cc6308
cc6308
cc6308
%changelog
cc6308
* Wed Aug 23 2017 Sinny Kumari <skumari@redhat.com> - 1.1.18-1
cc6308
- Resolves: #1456538 - Rebase to 1.1.18
cc6308
- Resolves: #1478455 - diag is not parsing the serviceable events properly
cc6308
- Remove libservicelog-1.1.17-string.patch, included in source tar 1.1.18
cc6308
cc6308
* Fri May 26 2017 Sinny Kumari <skumari@redhat.com> - 1.1.17-2
cc6308
- Resolves: #1452782 - libservicelog: 'servicelog_manage --status'\
cc6308
  fails to show status when it is executed after 'log_repair_action'\
cc6308
  on pSeries platform
cc6308
cc6308
* Thu Mar 23 2017 Sinny Kumari <skumari@redhat.com> - 1.1.17-1
cc6308
- Resolves: #1380651 - Rebase to 1.1.17
cc6308
cc6308
* Mon Mar 20 2017 Sinny Kumari <skumari@redhat.com> - 1.1.16-3
cc6308
- Related: #1380656 - Rebuild due to soname change in librtas package
cc6308
cc6308
* Wed Feb 08 2017 Sinny Kumari <skumari@redhat.com> - 1.1.16-2
cc6308
- Resolves: BZ#1382590 - Segmentation Fault while running log_repair_action
cc6308
cc6308
* Wed May 04 2016 Sinny Kumari <skumari@redhat.com> - 1.1.16-1
cc6308
- Resolves: BZ#1182029 - libservicelog package update
cc6308
- Resolves: BZ#1212991 - Installation of libservicelog creates a group gid 1000 called 'service'
cc6308
cc6308
* Mon Nov 10 2014 Jakub Čajka <jcajka@redhat.com> - 1.1.15-2
cc6308
- Related: #1161551 - librtas package update - rebuild
cc6308
cc6308
* Thu Sep 04 2014 Jakub Čajka <jcajka@redhat.com> - 1.1.15-1
cc6308
- Related: #1088494 - [7.1 FEAT] libservicelog package update - ppc64
cc6308
Rebase to 1.1.15
cc6308
cc6308
* Wed Aug 13 2014 Jakub Čajka <jcajka@redhat.com> - 1.1.14-1
cc6308
- Resolves: #1088494 - [7.1 FEAT] libservicelog package update - ppc64
cc6308
- Related: #1098216 - [7.1 FEAT] libservicelog - drop 32bit package - ppc64
cc6308
cc6308
* Wed Jan 08 2014 Phil Knirsch <pknirsch@redhat.com> - 1.1.13-3
cc6308
- Fixed build issue
cc6308
Resolves: rhbz#1048877
cc6308
cc6308
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.13-2
cc6308
- Mass rebuild 2013-12-27
cc6308
cc6308
* Sat May 18 2013 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.1.13
cc6308
- Update to latest upstream 1.1.13
cc6308
cc6308
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-4
cc6308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cc6308
cc6308
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-3
cc6308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cc6308
cc6308
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-2
cc6308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cc6308
cc6308
* Mon Aug 08 2011 Jiri Skala <jskala@redhat.com> - 1.1.11-1
cc6308
- update to latest upstream 1.1.11
cc6308
cc6308
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-5
cc6308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cc6308
cc6308
* Fri Jun 04 2010 Roman Rakus <rrakus@redhat.com> - 1.1.9-4
cc6308
- Properly handle servicelog.db
cc6308
cc6308
* Tue May 18 2010 Roman Rakus <rrakus@redhat.com> - 1.1.9-2
cc6308
- Link with needed libraries (sqlite, rtas, rtasevent)
cc6308
cc6308
* Tue May 11 2010 Roman Rakus <rrakus@redhat.com> - 1.1.9-1
cc6308
- Update to 1.1.9
cc6308
cc6308
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
cc6308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cc6308
cc6308
* Tue Mar 31 2009 Roman Rakus <rrakus@redhat.com> - 1.0.1-2
cc6308
- Added missing requires sqlite-devel in devel subpackage
cc6308
cc6308
* Fri Feb 20 2009 Roman Rakus <rrakus@redhat.com> - 1.0.1-1
cc6308
- Initial packaging