File hyprwayland-scanner.spec of Package hyprwayland-scanner
Name: hyprwayland-scanner
Version: 0.4.5+git0_b3b0f1f
Release: 0
Summary: A Hyprland implementation of wayland-scanner, in and for C++
License: BSD-3-Clause
URL: https://github.com/hyprwm/hyprwayland-scanner
Source0: %{name}-%{version}.tar.gz
%if 0%{?suse_version}
BuildRequires: openSUSE-release
%endif
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++ >= 11
BuildRequires: cmake
BuildRequires: pkgconfig(pugixml)
%description
%{summary}.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
%{summary}.
%prep
%autosetup -p1
%build
%cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md
%{_bindir}/hyprwayland-scanner
%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/hyprwayland-scanner/*.cmake
%dir %{_libdir}/cmake/hyprwayland-scanner
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog