File waylandpp.spec of Package waylandpp

#
# spec file for package waylandpp
#
# Copyright (c) 2020 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:           waylandpp
Version:        1.x.+git.20250822T164504~545791c
Release:        4.1
Summary:        Wayland C++ bindings
License:        BSD-2-Clause AND GPL-3.0-or-later
Group:          Development/Libraries/C and C++
URL:            https://github.com/NilsBrause/waylandpp
Source0:        %name-%version.tar.xz
BuildRequires:  cmake >= 3.4
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  Mesa-libEGL-devel
BuildRequires:  pkgconfig(pugixml) >= 1.4
BuildRequires:  pkgconfig(wayland-client) >= 1.11.0
BuildRequires:  pkgconfig(wayland-cursor)
BuildRequires:  pkgconfig(wayland-egl)
%if 0%{?sle_version} == 150100
BuildRequires:  Mesa-KHR-devel
%endif

%description
Wayland C++ bindings

%package devel
Summary:        Development files for lib%name
Group:          Development/Libraries/C and C++
Requires:       lib%name%{sover} = %version

%description    devel
The %name-devel package contains libraries and header files for
developing applications that use lib%name.

%package     -n lib%name%{sover}
Summary:        Wayland C++ bindings
Group:          System/Libraries

%description -n lib%name%{sover}
Wayland C++ bindings

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake
%cmake_build

%install
%cmake_install

%post   -n lib%name%{sover} -p /sbin/ldconfig
%postun -n lib%name%{sover} -p /sbin/ldconfig

%files
%_bindir/*
%_libdir/pkgconfig/wayland-scanner++.pc

%files -n lib%name%{sover}
%license LICENSE
%_libdir/lib*.so.%{sover}*

%files devel
%_includedir/*
#%_datadir/*
%_libdir/pkgconfig/*.pc
%_libdir/lib*.so
%_libdir/cmake
%exclude %_libdir/pkgconfig/wayland-scanner++.pc

%changelog
* Sat Sep 13 2025 obs-service-tar-scm@invalid
- Update to version 1.x.+git.20250822T164504~545791c:
  * CMake: Use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR.
  * New CMake options for protocol usage and library installation.
  * Add missing cstdint include for GCC 14
  * [example] Add an example on using the clipboard.
  * [examples] Correctly set cursort hotspot.
  * [README] Don't document standard CMake variables. Document default values.
* Mon Apr 25 2022 olaf@aepfle.de
- update to 1.0.0 (4321ed5)
  * Server support
* Wed Apr 13 2022 olaf@aepfle.de
- update to 0.2.10 (ec8fe37)
  * fix ABI breakage introduced in 0.2.9
* Mon Jan 31 2022 olaf@aepfle.de
- update to 0.2.9 (e5bc48c)
  * Protocol update to 1.25
* Mon Aug 17 2020 Dirk Mueller <dmueller@suse.com>
- update to 0.2.8:
  * released version, includes the cherry picks
- remove 695c0881101435a57d24c84d04cbcb79eec49903.patch (upstream)
* Fri Jun  5 2020 olaf@aepfle.de
- Add 695c0881101435a57d24c84d04cbcb79eec49903.patch to fix build
* Mon Oct 14 2019 olaf@aepfle.de
- Update to version 0.2.7 (4007255)
  * a lot of internal cleanups, build system improvements
- Remove waylandpp.patch
* Wed Mar 20 2019 olaf@aepfle.de
- Initial version 0.2.5
openSUSE Build Service is sponsored by