Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libcotp for openSUSE:Factory checked 
in at 2023-11-09 21:35:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcotp (Old)
 and      /work/SRC/openSUSE:Factory/.libcotp.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcotp"

Thu Nov  9 21:35:43 2023 rev:10 rq:1124372 version:2.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libcotp/libcotp.changes  2023-05-02 
16:38:30.313015330 +0200
+++ /work/SRC/openSUSE:Factory/.libcotp.new.17445/libcotp.changes       
2023-11-09 21:35:55.802063994 +0100
@@ -1,0 +2,7 @@
+Thu Nov  9 09:18:52 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 2.0.2:
+  * Improved CMakeLists
+  * Drop link_options, leave it up to every distro
+
+-------------------------------------------------------------------

Old:
----
  v2.0.1.tar.gz
  v2.0.1.tar.gz.asc

New:
----
  v2.0.2.tar.gz
  v2.0.2.tar.gz.asc

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

Other differences:
------------------
++++++ libcotp.spec ++++++
--- /var/tmp/diff_new_pack.xQeiNs/_old  2023-11-09 21:35:56.342083932 +0100
+++ /var/tmp/diff_new_pack.xQeiNs/_new  2023-11-09 21:35:56.346084079 +0100
@@ -21,7 +21,7 @@
 %global debug_package %{nil}
 %endif
 Name:           libcotp
-Version:        2.0.1
+Version:        2.0.2
 Release:        0
 Summary:        C library for generating TOTP and HOTP
 License:        Apache-2.0


++++++ v2.0.1.tar.gz -> v2.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcotp-2.0.1/.circleci/config.yml 
new/libcotp-2.0.2/.circleci/config.yml
--- old/libcotp-2.0.1/.circleci/config.yml      2023-05-02 14:53:29.000000000 
+0200
+++ new/libcotp-2.0.2/.circleci/config.yml      2023-10-26 08:10:04.000000000 
+0200
@@ -8,7 +8,7 @@
       - checkout
       - run:
           command: |
-            apt update && apt -y install git gcc clang cmake libcriterion-dev 
libbaseencode-dev libgcrypt20-dev
+            apt update && apt -y install git gcc clang cmake libcriterion-dev 
libgcrypt20-dev
             mkdir build && cd "$_"
             cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON ..
             make && make install
@@ -23,7 +23,7 @@
       - checkout
       - run:
           command: |
-            apt update && apt -y install git gcc clang cmake libcriterion-dev 
libbaseencode-dev libgcrypt20-dev
+            apt update && apt -y install git gcc clang cmake libcriterion-dev 
libgcrypt20-dev
             mkdir build && cd "$_"
             cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON ..
             make && make install
@@ -36,4 +36,4 @@
   build:
     jobs:
       - debian
-      - ubuntu
\ No newline at end of file
+      - ubuntu
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcotp-2.0.1/CMakeLists.txt 
new/libcotp-2.0.2/CMakeLists.txt
--- old/libcotp-2.0.1/CMakeLists.txt    2023-05-02 14:53:29.000000000 +0200
+++ new/libcotp-2.0.2/CMakeLists.txt    2023-10-26 08:10:04.000000000 +0200
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.16)
-project(cotp VERSION "2.0.1" LANGUAGES "C")
+project(cotp VERSION "2.0.2" LANGUAGES "C")
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
 
@@ -8,6 +8,8 @@
 find_package(PkgConfig REQUIRED)
 find_package(Gcrypt 1.8.0 REQUIRED)
 
+option(BUILD_SHARED_LIBS "Build libcotp as a shared library" ON)
+
 include_directories(${GCRYPT_INCLUDE_DIR} ${BASEENCODE_INCLUDE_DIRS})
 
 link_directories(${GCRYPT_LIBRARY_DIRS} ${BASEENCODE_LIBRARY_DIRS})
@@ -32,9 +34,21 @@
 
 add_link_options(-Wl,--no-add-needed -Wl,--as-needed -Wl,-z,relro,-z,now)
 
-add_library(cotp SHARED ${SOURCE_FILES})
+add_library(cotp ${SOURCE_FILES})
 
 target_link_libraries(cotp ${GCRYPT_LIBRARIES})
+target_include_directories(cotp
+        PUBLIC
+            ${CMAKE_CURRENT_SOURCE_DIR}/src
+        PRIVATE
+            ${GCRYPT_INCLUDE_DIR}
+            ${BASEENCODE_INCLUDE_DIRS})
+target_compile_options(cotp PRIVATE
+        -Wall -Wextra -O3 -Wformat=2 -Wmissing-format-attribute 
-fstack-protector-strong -Wundef -Wmissing-format-attribute
+        -fdiagnostics-color=always -Wstrict-prototypes -Wunreachable-code 
-Wchar-subscripts -Wwrite-strings -Wpointer-arith -Wbad-function-cast
+        -Wcast-align -Werror=format-security 
-Werror=implicit-function-declaration -Wno-sign-compare -Wno-format-nonliteral 
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3)
+target_link_directories(cotp PRIVATE
+        ${GCRYPT_LIBRARY_DIRS} ${BASEENCODE_LIBRARY_DIRS})
 
 set_target_properties(cotp PROPERTIES VERSION ${CMAKE_PROJECT_VERSION} 
SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR})
 

Reply via email to