From 55599fc05cae8ef3dd8dfb11e75b5bdbf0ee5e3f Mon Sep 17 00:00:00 2001
From: dspinella <>
Date: Mar 17 2023 16:08:54 +0000
Subject: Update fixmath to version 2022.07.20 / rev 4 via SR 1072307
https://build.opensuse.org/request/show/1072307
by user dspinella + dimstar_suse
---
diff --git a/.files b/.files
index db09080..efc9b36 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 70d863d..f6bf666 100644
--- a/.rev
+++ b/.rev
@@ -26,4 +26,12 @@
* cmake-install.patch
1043164
+
+ db050754aebf742ce07875839a050391
+ 2022.07.20
+
+ dimstar_suse
+
+ 1072307
+
diff --git a/fixmath.changes b/fixmath.changes
index 174e660..828a2ce 100644
--- a/fixmath.changes
+++ b/fixmath.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Mar 15 13:13:18 UTC 2023 - Jan Engelhardt
+
+- Add forced symbol versioning to library [boo#1209301]
+- Update descriptions
+
+-------------------------------------------------------------------
Tue Dec 13 16:58:46 UTC 2022 - Danilo Spinella
- Build shared library instead of static one
@@ -15,4 +21,3 @@ Thu Sep 15 10:09:53 UTC 2022 - Danilo Spinella
Wed Jul 20 13:42:45 UTC 2022 - Danilo Spinella
- Initial packaging of version 2022.07.20
-
diff --git a/fixmath.spec b/fixmath.spec
index 8f13780..b031629 100644
--- a/fixmath.spec
+++ b/fixmath.spec
@@ -1,7 +1,7 @@
#
# spec file for package fixmath
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,13 +16,13 @@
#
-%define sover 1
Name: fixmath
Version: 2022.07.20
Release: 0
-Summary: Fixed point math operations library
+Summary: Fixed-point math operations library
License: MIT
URL: https://github.com/PetteriAimonen/libfixmath
+Group: Development/Libraries/C and C++
Source0: %{url}/archive/refs/heads/master.tar.gz#:/%{name}-%{version}.tar.gz
# PATCH-FIX-SUSE build shared lib instead of static one
Patch0: build-shared-library.patch
@@ -38,16 +38,19 @@ BuildRequires: cmake >= 3.13
%endif
%description
-fixmath is fix point math operations library.
+fixmath is a fixed-point math operations library written in C and
+implementing the Q16.16 format.
%package devel
-Summary: Header files for dragonbox, a float-to-string conversion library
-Group: Development/Languages/C and C++
+Summary: Header files for fixmath, a fixed-point math library
+Requires: %name = %version
+Conflicts: %name < %version-%release
%description devel
-fixmath is fix point math operations library.
+fixmath is a fixed-point math operations library written in C and
+implementing the Q16.16 format.
-This package contains the headers and the static library.
+This package contains the headers.
%prep
%autosetup -n lib%{name}-master -p1
@@ -60,16 +63,23 @@ export CXXFLAGS="${CXXFLAGS} -ffat-lto-objects"
# Remove -fsanitize=undefined opts in SLE-12-SP5
sed -e '/set(sanitizer_opts/d' -i tests/tests.cmake
%endif
-%cmake
+sv="$PWD/fixmath.sym"
+echo "FIXMATH_%version { global: *; };" >"$sv"
+%cmake -DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--version-script=$sv"
%cmake_build
%install
%cmake_install
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%{_libdir}/lib%{name}.so
+
%files devel
%doc README.md
%license LICENSE
%{_includedir}/libfixmath
-%{_libdir}/lib%{name}.so
%changelog