7e2aab
Name:          libservicelog
e831b6
Version:       1.1.19
7e2aab
Release:       2%{?dist}
7e2aab
Summary:       Servicelog Database and Library
7e2aab
7e2aab
Group:       System Environment/Libraries
7e2aab
#v29_notify_gram.c v29_notify_gram.h are GPLv2+
7e2aab
License:       LGPLv2 and GPLv2+
e831b6
URL:           https://github.com/power-ras/%{name}
e831b6
Source:        https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
7e2aab
# Link with needed libraries
7e2aab
Patch0: libservicelog-1.1.9-libs.patch
7e2aab
7e2aab
BuildRequires: sqlite-devel autoconf libtool bison librtas-devel flex
7e2aab
Requires(pre): shadow-utils
7e2aab
7e2aab
# because of librtas-devel
7e2aab
ExclusiveArch: ppc %{power64}
7e2aab
7e2aab
%description
7e2aab
The libservicelog package contains a library to create and maintain a
7e2aab
database for storing events related to system service.  This database
7e2aab
allows for the logging of serviceable and informational events, and for
7e2aab
the logging of service procedures that have been performed upon the system.
7e2aab
7e2aab
7e2aab
%package       devel
7e2aab
Summary:       Development files for %{name}
7e2aab
Group:         Development/Libraries
7e2aab
Requires:      %{name}%{?_isa} = %{version}-%{release}
7e2aab
Requires:      pkgconfig sqlite-devel
7e2aab
7e2aab
%description   devel
7e2aab
Contains header files for building with libservicelog.
7e2aab
7e2aab
7e2aab
%prep
7e2aab
%setup -q
7e2aab
%patch0 -p1 -b .libs
7e2aab
7e2aab
%build
7e2aab
autoreconf -fiv
7e2aab
%configure --disable-static
7e2aab
# disable "-Werror=format-security" checking gcc option until we fix
7e2aab
# these errors are fixed in upstream code.
7e2aab
CFLAGS="%{optflags} -fPIC -DPIC"
7e2aab
CFLAGS=`echo $CFLAGS | sed 's/-Werror=format-security//'`
7e2aab
make CFLAGS="$CFLAGS" %{?_smp_mflags}
7e2aab
7e2aab
7e2aab
%install
7e2aab
make install DESTDIR=%{buildroot}
7e2aab
rm -f %{buildroot}%{_libdir}/*.la
7e2aab
7e2aab
7e2aab
%pre
7e2aab
getent group service >/dev/null || /usr/sbin/groupadd -r service
7e2aab
7e2aab
%post -p /sbin/ldconfig
7e2aab
7e2aab
%postun -p /sbin/ldconfig
7e2aab
7e2aab
%files
7e2aab
%{!?_licensedir:%global license %%doc}
7e2aab
%license COPYING
7e2aab
%doc AUTHORS
7e2aab
%{_libdir}/libservicelog-*.so.*
7e2aab
%dir %attr(755, root, service) /var/lib/servicelog
7e2aab
%config(noreplace) %verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db
7e2aab
7e2aab
%files devel
7e2aab
%{_includedir}/servicelog-1
7e2aab
%{_libdir}/*.so
7e2aab
%{_libdir}/pkgconfig/servicelog-1.pc
7e2aab
7e2aab
7e2aab
%changelog
e831b6
* Tue Jun 01 2021 Than Ngo <than@redhat.com> - 1.1.19-2
e831b6
- Related: #1844430, fix URL
e831b6
e831b6
* Tue Jun 01 2021 Than Ngo <than@redhat.com> - 1.1.19-1
e831b6
- Resolves: #1844430, rebase to 1.1.19
e831b6
7e2aab
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.18-2
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7e2aab
7e2aab
* Fri Oct 13 2017 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.1.18-1
7e2aab
- Rebase to 1.1.18
7e2aab
7e2aab
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.17-3
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7e2aab
7e2aab
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.17-2
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7e2aab
7e2aab
* Tue Apr 04 2017 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.1.17-1
7e2aab
- Rebase to 1.1.17
7e2aab
7e2aab
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.16-4
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7e2aab
7e2aab
* Mon Jul 11 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.16-3
7e2aab
- spec file cleanups
7e2aab
- Use %%license
7e2aab
7e2aab
* Sat Apr  9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.16-2
7e2aab
- Rebuild for librtas soname bump
7e2aab
7e2aab
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.1.16-1
7e2aab
- Update to latest upstream 1.1.16
7e2aab
7e2aab
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.15-4
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7e2aab
7e2aab
* Wed Sep 30 2015 Jaromir Capik <jcapik@redhat.com> - 1.1.15-3
7e2aab
- Creating the 'service' group as a system one (#1212938)
7e2aab
7e2aab
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.15-2
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7e2aab
7e2aab
* Mon Sep 22 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.1.15
7e2aab
- Update to latest upstream 1.1.15
7e2aab
7e2aab
* Fri Aug 01 2014 Brent Baude <bbaude@redhat.com> - 1.1.14-8
7e2aab
- NVR bump for Fedora 21 build on merged koji
7e2aab
7e2aab
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-7
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7e2aab
7e2aab
* Mon Jun 02 2014 Jakub Čajka <jcajka@redhat.com> - 1.1.14-6
7e2aab
- Spec file clean up
7e2aab
7e2aab
* Mon Mar 10 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.1.14-5
7e2aab
- Fix CFLAGS
7e2aab
7e2aab
* Fri Mar 07 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.1.14-4
7e2aab
- Disable "-Werror=format-security" gcc option
7e2aab
7e2aab
* Thu Oct 10 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.1.14-3
7e2aab
- Add ppc64le architecture
7e2aab
7e2aab
* Mon Sep 16 2013 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.1.14-2
7e2aab
- Fix build issue
7e2aab
7e2aab
* Wed Aug 21 2013 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.1.14
7e2aab
- Update to latest upstream 1.1.14
7e2aab
7e2aab
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.13-2
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7e2aab
7e2aab
* Sat May 18 2013 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.1.13
7e2aab
- Update to latest upstream 1.1.13
7e2aab
7e2aab
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-4
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7e2aab
7e2aab
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-3
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7e2aab
7e2aab
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-2
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7e2aab
7e2aab
* Mon Aug 08 2011 Jiri Skala <jskala@redhat.com> - 1.1.11-1
7e2aab
- update to latest upstream 1.1.11
7e2aab
7e2aab
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-5
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7e2aab
7e2aab
* Fri Jun 04 2010 Roman Rakus <rrakus@redhat.com> - 1.1.9-4
7e2aab
- Properly handle servicelog.db
7e2aab
7e2aab
* Tue May 18 2010 Roman Rakus <rrakus@redhat.com> - 1.1.9-2
7e2aab
- Link with needed libraries (sqlite, rtas, rtasevent)
7e2aab
7e2aab
* Tue May 11 2010 Roman Rakus <rrakus@redhat.com> - 1.1.9-1
7e2aab
- Update to 1.1.9
7e2aab
7e2aab
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
7e2aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7e2aab
7e2aab
* Tue Mar 31 2009 Roman Rakus <rrakus@redhat.com> - 1.0.1-2
7e2aab
- Added missing requires sqlite-devel in devel subpackage
7e2aab
7e2aab
* Fri Feb 20 2009 Roman Rakus <rrakus@redhat.com> - 1.0.1-1
7e2aab
- Initial packaging