Accepting request 700250 from Base:System

- Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/request/show/700250
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2019-05-06 11:19:49 +00:00 committed by Git OBS Bridge
commit a48adb8238
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 Thu Aug 2 08:03:10 UTC 2018 - werner@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package blog # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 buffer is used to hold the information for writing it to an existing
logging file. 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 %package plymouth
Summary: Replaces plymouth by blogd Summary: Replaces plymouth by blogd
Group: System/Base Group: System/Base
@ -58,7 +65,7 @@ messages upto to point at which the file systems becomes unavailable.
%package devel %package devel
Summary: Provides library and header for boot logging Summary: Provides library and header for boot logging
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: blog = %{version} Requires: libblogger2 = %{version}
%description devel %description devel
The libaray and the header file for the FIFO interface used to build 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 BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old
%install %install
make %{?_smp_mflags} install \ %make_install \
MANPATH=%{_mandir} \ MANPATH=%{_mandir} \
INSTBINFLAGS="-m 0744" \ INSTBINFLAGS="-m 0744" \
LIBDIR=%{_libdir} \ LIBDIR=%{_libdir} \
INCDIR=%{_includedir} \ INCDIR=%{_includedir} \
SYSDUNITS=%{_unitdir} \ SYSDUNITS=%{_unitdir} \
BOOT_LOGFILE=%{_localstatedir}/log/boot.log \ BOOT_LOGFILE=%{_localstatedir}/log/boot.log \
BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old \ BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old
DESTDIR=%{buildroot}
%post %post
%{?regenerate_initrd_post} %{?regenerate_initrd_post}
test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || : test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || :
test -x /sbin/ldconfig && /sbin/ldconfig || :
%postun %postun
test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || : 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 %posttrans
%{?regenerate_initrd_posttrans} %{?regenerate_initrd_posttrans}
@ -108,7 +115,6 @@ test -x /sbin/ldconfig && /sbin/ldconfig || :
/sbin/isserial /sbin/isserial
/sbin/setconsole /sbin/setconsole
/sbin/showconsole /sbin/showconsole
%{_libdir}/libblogger.so.*
%doc %{_mandir}/man8/blogctl.8.gz %doc %{_mandir}/man8/blogctl.8.gz
%doc %{_mandir}/man8/blogd.8.gz %doc %{_mandir}/man8/blogd.8.gz
%doc %{_mandir}/man8/blogger.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/setconsole.8.gz
%doc %{_mandir}/man8/showconsole.8.gz %doc %{_mandir}/man8/showconsole.8.gz
%files -n libblogger2
%{_libdir}/libblogger.so.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/libblogger.h %{_includedir}/libblogger.h