Accepting request 696408 from home:jengelh:branches:Base:System

- Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/request/show/696408
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=33
This commit is contained in:
Dr. Werner Fink 2019-05-01 09:14:36 +00:00 committed by Git OBS Bridge
parent 8d17e1075e
commit eda398a727
2 changed files with 23 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Apr 20 12:09:49 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Implement shared library packaging guideline.
-------------------------------------------------------------------
Thu Aug 2 08:03:10 UTC 2018 - werner@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package blog
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -38,6 +38,13 @@ information from this slave to the real character device a ring
buffer is used to hold the information for writing it to an existing
logging file.
%package -n libblogger2
Summary: FIFO interface used by startproc
Group: System/Libraries
%description -n libblogger2
The libaray for the FIFO interface used by the LSB startproc command.
%package plymouth
Summary: Replaces plymouth by blogd
Group: System/Base
@ -58,7 +65,7 @@ messages upto to point at which the file systems becomes unavailable.
%package devel
Summary: Provides library and header for boot logging
Group: Development/Libraries/C and C++
Requires: blog = %{version}
Requires: libblogger2 = %{version}
%description devel
The libaray and the header file for the FIFO interface used to build
@ -76,24 +83,24 @@ make %{?_smp_mflags} CC="%__cc" \
BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old
%install
make %{?_smp_mflags} install \
%make_install \
MANPATH=%{_mandir} \
INSTBINFLAGS="-m 0744" \
LIBDIR=%{_libdir} \
INCDIR=%{_includedir} \
SYSDUNITS=%{_unitdir} \
BOOT_LOGFILE=%{_localstatedir}/log/boot.log \
BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old \
DESTDIR=%{buildroot}
BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old
%post
%{?regenerate_initrd_post}
test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || :
test -x /sbin/ldconfig && /sbin/ldconfig || :
%postun
test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || :
test -x /sbin/ldconfig && /sbin/ldconfig || :
%post -n libblogger2 -p /sbin/ldconfig
%postun -n libblogger2 -p /sbin/ldconfig
%posttrans
%{?regenerate_initrd_posttrans}
@ -108,7 +115,6 @@ test -x /sbin/ldconfig && /sbin/ldconfig || :
/sbin/isserial
/sbin/setconsole
/sbin/showconsole
%{_libdir}/libblogger.so.*
%doc %{_mandir}/man8/blogctl.8.gz
%doc %{_mandir}/man8/blogd.8.gz
%doc %{_mandir}/man8/blogger.8.gz
@ -116,6 +122,9 @@ test -x /sbin/ldconfig && /sbin/ldconfig || :
%doc %{_mandir}/man8/setconsole.8.gz
%doc %{_mandir}/man8/showconsole.8.gz
%files -n libblogger2
%{_libdir}/libblogger.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/libblogger.h