# # spec file for package hyprgraphics # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 Florian "sp1rit" # # 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 0 # The naming scheme in non-Mandriva-based distros %if 0%{!?mklibname:1} %define mklibname(ds) lib%{1}%{?2:%{2}}%{-s:-static}%{-d:-devel} %endif %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif %define libname %mklibname %{name} %{sover} %define devname %mklibname %{name} -d Name: hyprgraphics Version: 0.1.2 Release: %mkrel 1 Summary: Hyprland graphics / resource utilities License: BSD-3-Clause URL: https://github.com/hyprwm/hyprgraphics Source0: https://github.com/hyprwm/hyprgraphics/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkg-config BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(hyprutils) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libjxl) BuildRequires: pkgconfig(libjxl_cms) BuildRequires: pkgconfig(libjxl_threads) BuildRequires: pkgconfig(libmagic) BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(spng) BuildRequires: pkgconfig(pixman-1) %define _description %{expand: Hyprgraphics is a small C++ library with graphics / resource related utilities used across the hypr* ecosystem.} %description %{_description} %package -n %{libname} Summary: Hyprland graphics / resource utilities Group: System/Libraries %description -n %{libname} %{_description} %package -n %{devname} Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} %description -n %{devname} %{_description} This subpackage contains development files for %{name}. %prep %autosetup -p1 %build %cmake %cmake_build %install %cmake_install %ldconfig_scriptlets -n %{libname} %files -n %{libname} %{_libdir}/libhyprgraphics.so.%{sover} %{_libdir}/libhyprgraphics.so.%{version} %files -n %{devname} %license LICENSE %doc README.md %{_includedir}/%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Tue Dec 17 2024 Florian "sp1rit" - Initial packaging of hyprgraphics-0.1.1