4 Commits

Author SHA256 Message Date
95079cff48 Accepting request 1311690 from X11:Utilities
OBS-URL: https://build.opensuse.org/request/show/1311690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slop?expand=0&rev=9
2025-10-16 15:39:26 +00:00
047e697471 - update to 7.7:
* Fixed glew not linking correctly in CMake.
  * Rectangle drawing now syncs with display rather than waiting 10 ms arbitrarily.
  * Can now build with C++17

OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/slop?expand=0&rev=21
2025-10-16 11:28:35 +00:00
ace8a72abe Accepting request 1251848 from X11:Utilities
OBS-URL: https://build.opensuse.org/request/show/1251848
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slop?expand=0&rev=8
2025-03-10 19:19:21 +00:00
d5a93abf67 - Add build fix for factory:
* slop-glew_config_compat.patch
- Spec cleanup

OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/slop?expand=0&rev=19
2025-03-10 16:38:33 +00:00
5 changed files with 63 additions and 18 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec45f9a69d7a24df621f5c634d202451ddca987d550cf588c5c427b99106fb6b
size 198605

3
slop-7.7.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a69a6e5c41d7fff1c6aa35b367a5c5a6dc98e621fa9a1908808d6308c2b40f4e
size 198570

View File

@@ -0,0 +1,31 @@
From b8263adf2af85c53ceda77d28756baf7b1a9c5e4 Mon Sep 17 00:00:00 2001
From: Christophe Marin <christophe@krop.fr>
Date: Mon, 10 Mar 2025 15:50:43 +0100
Subject: [PATCH] Work around incompatibility between CMake and glew
CMake FindGLEW.cmake module and glew CMake config files are incompatible and cause
build errors.
To work around the issue, we first look for the glew config files and fall back to
CMake's module.
---
CMakeLists.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Index: slop-7.7/CMakeLists.txt
===================================================================
--- slop-7.7.orig/CMakeLists.txt
+++ slop-7.7/CMakeLists.txt
@@ -70,7 +70,12 @@ find_package(X11 REQUIRED)
find_package(XExt REQUIRED)
if ( SLOP_OPENGL )
- find_package(GLEW REQUIRED)
+ find_package(glew CONFIG)
+ if(glew_FOUND)
+ set(GLEW_LIBRARIES GLEW::glew)
+ else()
+ find_package(GLEW REQUIRED)
+ endif()
find_package(OpenGL REQUIRED)
find_package(GLX REQUIRED)
find_package(XRender REQUIRED)

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sun Sep 14 17:01:56 UTC 2025 - Andrea Manzini <andrea.manzini@suse.com>
- update to 7.7:
* Fixed glew not linking correctly in CMake.
* Rectangle drawing now syncs with display rather than waiting 10 ms arbitrarily.
* Can now build with C++17
-------------------------------------------------------------------
Mon Mar 10 14:56:28 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Add build fix for factory:
* slop-glew_config_compat.patch
- Spec cleanup
-------------------------------------------------------------------
Mon Apr 25 14:10:20 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package slop
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,25 +18,27 @@
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: slop
%define lname libslopy7_6
Version: 7.6
%define lname libslopy7_7
Version: 7.7
Release: 0
Summary: Tool to query for a screen region selection
License: GPL-3.0-or-later
Group: Productivity/Graphics/Other
URL: https://github.com/naelstrof/slop
Source0: https://github.com/naelstrof/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE
Patch0: slop-glew_config_compat.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gengetopt
BuildRequires: glm-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(imlib2)
BuildRequires: pkgconfig(xrandr)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
slop (Select Operation) queries for a selection from the user and prints
@@ -56,39 +58,36 @@ This library implements the slop utility's functionality to mark a
region ont the screen.
%package devel
Summary: Development files for the slop library
Summary: Development pkg for the slop library
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
Header files for the slop library.
Development files for the slop library.
%prep
%setup -q
%autosetup -p1
%build
%cmake
make %{?_smp_mflags}
%cmake_build
%install
pushd build/
%make_install
popd
%cmake_install
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{lname}
%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/*.1*
%{_mandir}/man1/*.1%{?ext_man}
%files -n %{lname}
%{_libdir}/libslopy.so.7*
%files devel
%{_includedir}/*
%{_includedir}/slop.hpp
%{_libdir}/libslopy.so
%changelog