From 274644f3ff68d5db112a59d6f18a0167d22b19df998f30283fede068488d618d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 18 Dec 2024 01:02:50 +0000 Subject: [PATCH] dependency for hyprland >= 0.46.0 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/hyprgraphics?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + _service | 17 ++++++++ hyprgraphics-0.1.1.tar.xz | 3 ++ hyprgraphics.changes | 4 ++ hyprgraphics.spec | 85 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 hyprgraphics-0.1.1.tar.xz create mode 100644 hyprgraphics.changes create mode 100644 hyprgraphics.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..c9115fc --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + + https://github.com/hyprwm/hyprgraphics + git + @PARENT_TAG@ + v(.*) + @PARENT_TAG@ + enable + + + + *.tar + xz + + + diff --git a/hyprgraphics-0.1.1.tar.xz b/hyprgraphics-0.1.1.tar.xz new file mode 100644 index 0000000..d12bfd0 --- /dev/null +++ b/hyprgraphics-0.1.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dbd42f38546c79adb4793abb567408724e374fc303040ed9c58846334f31f8f +size 410668 diff --git a/hyprgraphics.changes b/hyprgraphics.changes new file mode 100644 index 0000000..cdbb14f --- /dev/null +++ b/hyprgraphics.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Dec 17 13:15:53 UTC 2024 - Florian "sp1rit" + +- Initial packaging of hyprgraphics-0.1.1 diff --git a/hyprgraphics.spec b/hyprgraphics.spec new file mode 100644 index 0000000..40e6e2e --- /dev/null +++ b/hyprgraphics.spec @@ -0,0 +1,85 @@ +# +# 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 + +Name: hyprgraphics +Version: 0.1.1 +Release: 0 +Summary: Hyprland graphics / resource utilities +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprgraphics +Source0: %{name}-%{version}.tar.xz +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(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 lib%{name}%{sover} +Summary: Hyprland graphics / resource utilities +Group: System/Libraries + +%description -n lib%{name}%{sover} %{_description} + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries/C and C++ +Requires: lib%{name}%{sover} = %{version} + +%description devel %{_description} + +This subpackage contains development files for %{name}. + +%prep +%autosetup -p1 + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%ldconfig_scriptlets -n lib%{name}%{sover} + +%files -n lib%{name}%{sover} +%{_libdir}/libhyprgraphics.so.%{sover} +%{_libdir}/libhyprgraphics.so.%{version} + +%files devel +%license LICENSE +%doc README.md +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog