Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libcbor.16778 for 
openSUSE:Leap:15.2:Update checked in at 2021-08-10 06:06:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2:Update/libcbor.16778 (Old)
 and      /work/SRC/openSUSE:Leap:15.2:Update/.libcbor.16778.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcbor.16778"

Tue Aug 10 06:06:35 2021 rev:1 rq:910157 version:0.5.0

Changes:
--------
New Changes file:

--- /dev/null   2021-07-22 10:06:18.349420535 +0200
+++ /work/SRC/openSUSE:Leap:15.2:Update/.libcbor.16778.new.1899/libcbor.changes 
2021-08-10 06:06:36.335891648 +0200
@@ -0,0 +1,17 @@
+-------------------------------------------------------------------
+Fri Jun 25 07:50:27 UTC 2021 - Bernhard Wiedemann <bwiedem...@suse.com>
+
+- Add libcbor-0.5.0-fix-lib.patch to not build shared lib twice
+  and make package build reproducible (boo#1102408)
+
+-------------------------------------------------------------------
+Fri Sep 28 18:57:09 UTC 2018 - Jan Engelhardt <jeng...@inai.de>
+
+- Rename %SONAME to %sover to better reflect its use.
+- Expand summary, compact and trim bias from description.
+
+-------------------------------------------------------------------
+Thu Apr 26 08:55:27 UTC 2018 - t.gru...@katodev.de
+
+- Initial release 0.5.0
+ 

New:
----
  libcbor-0.5.0-fix-lib.patch
  libcbor-0.5.0.tar.gz
  libcbor.changes
  libcbor.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libcbor.spec ++++++
#
# spec file for package libcbor
#
# Copyright (c) 2018 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#

%define sover  0
%define lname   libcbor%{sover}
Name:           libcbor
Version:        0.5.0
Release:        0
Summary:        Library for parsing Concise Binary Object Representation (CBOR)
License:        MIT
Group:          Development/Libraries/C and C++
URL:            http://libcbor.org
Source0:        
https://github.com/PJK/libcbor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         libcbor-0.5.0-fix-lib.patch
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  libcmocka-devel
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  python3-breathe
BuildRequires:  python3-Sphinx
BuildRequires:  python3-Sphinx-doc
BuildRequires:  python3-sphinx_rtd_theme
BuildRequires:  python3-packaging
BuildRequires:  python3-ujson
BuildRequires:  valgrind

%description
libcbor is a C99 library for parsing and generating CBOR (RFC 7049),
a general-purpose schema-less binary data format.

It supports flexible memory management, UTF-8, streams & incremental
processing, and has a layered architecture.
 
%package -n %{lname}
Summary:        Library for parsing Concise Binary Object Representation (CBOR)
Group:          System/Libraries

%description -n %{lname}
libcbor is a C99 library for parsing and generating CBOR (RFC 7049),
a general-purpose schema-less binary data format.

It supports flexible memory management, UTF-8, streams & incremental
processing, and has a layered architecture.

%package        devel
Summary:        Development files for libcbor
Group:          Development/Libraries/C and C++
Requires:       %{lname} = %{version}

%description devel
libcbor is a C library for parsing and generating CBOR.
The libcbor-devel contains libraries and header files for libcbor.

%prep
%autosetup -p1
sed -i 
's|${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig|${CMAKE_INSTALL_LIBDIR}/pkgconfig|'
 src/CMakeLists.txt

%build
mkdir -p doc/build/doxygen
doxygen
make %{?_smp_mflags} -C doc man
%cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON
make %{?_smp_mflags}

%install
%cmake_install
mkdir -p %{buildroot}%{_mandir}/man1
cp doc/build/man/* %{buildroot}%{_mandir}/man1

%post -n %{lname} -p /sbin/ldconfig

%postun -n %{lname} -p /sbin/ldconfig

%files -n %{lname}
%doc README.md
%{_mandir}/*/*
%{_libdir}/libcbor.so.%{sover}
%{_libdir}/libcbor.so.%{sover}.?.?

%files devel
%{_includedir}/cbor.h
%dir %{_includedir}/cbor
%{_includedir}/cbor/*.h
%dir %{_includedir}/cbor/internal
%{_includedir}/cbor/internal/*.h
%{_libdir}/libcbor.so
%{_libdir}/pkgconfig/libcbor.pc
%license LICENSE.md

%changelog
++++++ libcbor-0.5.0-fix-lib.patch ++++++
https://github.com/PJK/libcbor/pull/72

>From 965d41b53d47d1bde4a4902c512ce64462fb920f Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedem...@suse.de>
Date: Sun, 7 Oct 2018 05:23:07 +0200
Subject: [PATCH] Do not build two shared libraries

Without this patch, when building with make -j1
cmake would create and install two shared libraries
libcbor.so and libcbor.so.0.0.0
instead of creating libcbor.so as a symlink.
This broke verification of reproducible builds.

See https://reproducible-builds.org/ for why this matters.

Also, (like before) do not install libcbor.a
because static linking is bad for maintainability
(all programs have to be re-built with fixed libraries)
---
 src/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: libcbor-0.5.0/src/CMakeLists.txt
===================================================================
--- libcbor-0.5.0.orig/src/CMakeLists.txt
+++ libcbor-0.5.0/src/CMakeLists.txt
@@ -11,7 +11,7 @@ if (NOT DEFINED CMAKE_MACOSX_RPATH)
        set(CMAKE_MACOSX_RPATH 0)
 endif()
 
-add_library(cbor ${SOURCES})
+add_library(cbor STATIC ${SOURCES})
 add_library(cbor_shared SHARED ${SOURCES})
 
 set_target_properties(cbor_shared PROPERTIES OUTPUT_NAME cbor VERSION "0.0.0" 
SOVERSION 0)
@@ -20,7 +20,7 @@ configure_file(libcbor.pc.in libcbor.pc
 
 #http://www.cmake.org/Wiki/CMake:Install_Commands
 
-install(TARGETS cbor  cbor_shared
+install(TARGETS cbor_shared
        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
        RUNTIME DESTINATION bin)

Reply via email to