File hyprutils.spec of Package hyprutils
Name: hyprutils
Version: 0.8.4+b2ae320
Release: 0
Summary: Hyprutils is a small C++ library for utilities used across the Hypr* ecosystem
License: BSD-3-Clause
URL: https://github.com/hyprwm/hyprutils
Source0: %{name}-%{version}.tar.gz
%if 0%{?suse_version}
BuildRequires: openSUSE-release
%endif
BuildRequires: pkgconfig(pixman-1)
BuildRequires: gcc-c++ >= 11
BuildRequires: cmake
%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
%{_libdir}/lib%{name}.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}/*/*.hpp
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}/*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog