2 Commits

2 changed files with 13 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Mar 22 14:42:57 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
- Add %check section
- Remove Group: declaration, no longer used
-------------------------------------------------------------------
Mon Feb 26 13:35:17 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -30,7 +30,6 @@ Version: 3.2
Release: 0
Summary: A high level imperative/OO programming language
License: MIT
Group: Development/Languages/Other
URL: https://squirrel-lang.org/
Source: https://downloads.sourceforge.net/squirrel/squirrel_%{tarver}_stable.tar.gz
Source1: squirrel-config.cmake.in
@@ -39,7 +38,7 @@ Source11: squirrel.rpmlintrc
Patch1: c++11.patch
# Generated from S:10 in %%prep, so update that if patch no longer applies
Patch10: sover.patch
BuildRequires: cmake
BuildRequires: cmake >= 3.5
BuildRequires: gcc-c++
BuildRequires: sed
@@ -89,7 +88,8 @@ cp %SOURCE1 .
%build
%cmake \
-DDISABLE_STATIC=1 \
-DLONG_OUTPUT_NAMES=1
-DLONG_OUTPUT_NAMES=1 \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
make %{?_smp_mflags}
%install
@@ -99,6 +99,9 @@ make %{?_smp_mflags}
ln -s /usr/bin/squirrel3 %{buildroot}%{_bindir}/sqrl
%endif
%check
%ctest
%post -n libsquirrel%{sover} -p /sbin/ldconfig
%postun -n libsquirrel%{sover} -p /sbin/ldconfig