diff --git a/.files b/.files
index efc9b36..834dc36 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index f6bf666..213362e 100644
--- a/.rev
+++ b/.rev
@@ -34,4 +34,12 @@
1072307
+
+ 5af746c055d307ab000497096632a575
+ 2022.07.20
+
+ dimstar_suse
+
+ 1073574
+
diff --git a/fixmath.changes b/fixmath.changes
index 828a2ce..7833605 100644
--- a/fixmath.changes
+++ b/fixmath.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Tue Mar 21 14:54:01 UTC 2023 - Danilo Spinella
+
+- Properly use optflags when building, bsc#1209201
+
+-------------------------------------------------------------------
Wed Mar 15 13:13:18 UTC 2023 - Jan Engelhardt
- Add forced symbol versioning to library [boo#1209301]
diff --git a/fixmath.spec b/fixmath.spec
index b031629..2f70f82 100644
--- a/fixmath.spec
+++ b/fixmath.spec
@@ -45,6 +45,7 @@ implementing the Q16.16 format.
Summary: Header files for fixmath, a fixed-point math library
Requires: %name = %version
Conflicts: %name < %version-%release
+BuildArch: noarch
%description devel
fixmath is a fixed-point math operations library written in C and
@@ -57,8 +58,8 @@ This package contains the headers.
%build
# Fix lto-no-text-in-archive rpmlint error
-export CFLAGS="${CFLAGS} -ffat-lto-objects"
-export CXXFLAGS="${CXXFLAGS} -ffat-lto-objects"
+export CFLAGS="%{optflags} -ffat-lto-objects"
+export CXXFLAGS="%{optflags} -ffat-lto-objects"
%if !0%{?is_opensuse} && 0%{?sle_version} < 150000
# Remove -fsanitize=undefined opts in SLE-12-SP5
sed -e '/set(sanitizer_opts/d' -i tests/tests.cmake