diff --git a/.files b/.files new file mode 100644 index 0000000..f3f208f Binary files /dev/null and b/.files differ diff --git a/.meta b/.meta new file mode 100644 index 0000000..d177e69 --- /dev/null +++ b/.meta @@ -0,0 +1,5 @@ + + + + + diff --git a/.rev b/.rev new file mode 100644 index 0000000..ac66a8b --- /dev/null +++ b/.rev @@ -0,0 +1,10 @@ + + + c69da487c3df7af7a946a91a950a2224 + 2022.07.20 + + dimstar_suse + Add new package fixmath, needed by Libreoffice 7.4 + 1001660 + + diff --git a/fixmath-2022.07.20.tar.gz b/fixmath-2022.07.20.tar.gz new file mode 120000 index 0000000..ce406a8 --- /dev/null +++ b/fixmath-2022.07.20.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeig2i2obpw5gjnkjj4qaa2tuhwna4ylpfirqfclm3f3cugp4zsfehi \ No newline at end of file diff --git a/fixmath.changes b/fixmath.changes new file mode 100644 index 0000000..b6f4f76 --- /dev/null +++ b/fixmath.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +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 new file mode 100644 index 0000000..81a4e52 --- /dev/null +++ b/fixmath.spec @@ -0,0 +1,75 @@ +# +# spec file for package fixmath +# +# Copyright (c) 2021 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define sover 1 +Name: fixmath +Version: 2022.07.20 +Release: 0 +Summary: Fixed point math operations library +License: MIT +URL: https://github.com/PetteriAimonen/libfixmath +Source0: %{url}/archive/refs/heads/master.tar.gz#:/%{name}-%{version}.tar.gz +# Use cmake3 package on SLE12 because cmake is too old (version 3.5) +%if !0%{?is_opensuse} && 0%{?sle_version} < 150000 +BuildRequires: cmake3-full >= 3.14 +# Requires C++17 +BuildRequires: gcc11-c++ +%else +BuildRequires: cmake >= 3.14 +BuildRequires: gcc-c++ +%endif + +%description +fixmath is fix point math operations library. + +%package devel +Summary: Header files for dragonbox, a float-to-string conversion library +Group: Development/Languages/C and C++ + +%description devel +fixmath is fix point math operations library. + +This package contains the headers and the static library. + +%prep +%autosetup -n lib%{name}-master + +%build +export CFLAGS="${CFLAGS} -ffat-lto-objects" +export CXXFLAGS="${CXXFLAGS} -ffat-lto-objects" +# Use g++-11 to build a C++17 codebase +%cmake \ +%if !0%{?is_opensuse} && 0%{?sle_version} < 150000 + -DCMAKE_CXX_COMPILER=/usr/bin/g++-11 \ +%endif + ; +%cmake_build + +%install +mkdir -p %{buildroot}%{_libdir} +cp build/liblibfixmath.a %{buildroot}%{_libdir} +mkdir -p %{buildroot}%{_includedir}/libfixmath +cp libfixmath/*.h libfixmath/*.hpp %{buildroot}%{_includedir}/libfixmath + +%files devel +%doc README.md +%license LICENSE +%{_includedir}/libfixmath +%{_libdir}/*.a + +%changelog