[packages/hyprgraphics] new
atler
atler at pld-linux.org
Fri Dec 20 02:32:46 CET 2024
commit 9ad51c0b92387fb7f02509afb83f7cd9bfe10b8f
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Dec 20 00:39:52 2024 +0100
new
flags.patch | 10 ++++++++
hyprgraphics.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 78 insertions(+)
---
diff --git a/hyprgraphics.spec b/hyprgraphics.spec
new file mode 100644
index 0000000..2c62bdf
--- /dev/null
+++ b/hyprgraphics.spec
@@ -0,0 +1,68 @@
+Summary: Hyprland graphics / resource utilities
+Name: hyprgraphics
+Version: 0.1.1
+Release: 1
+License: BSD
+Group: Libraries
+#Source0Download: https://github.com/hyprwm/hyprgraphics/releases
+Source0: https://github.com/hyprwm/hyprgraphics/archive/v%{version}/%{name}-v%{version}.tar.gz
+# Source0-md5: e7be69a12ad3954819f4599779862366
+Patch0: flags.patch
+URL: https://hyprland.org/
+BuildRequires: cairo-devel
+BuildRequires: cmake >= 3.30
+BuildRequires: hyprutils-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libjxl-devel
+BuildRequires: libmagic-devel
+BuildRequires: libstdc++-devel >= 6:14
+BuildRequires: libwebp-devel
+BuildRequires: pixman-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hyprgraphics is a small C++ library with graphics / resource related
+utilities used across the hypr* ecosystem.
+
+%package devel
+Summary: Header files for hyprgraphics
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files for hyprgraphics.
+
+%prep
+%setup -q
+%patch -P 0 -p1
+
+%build
+%cmake -B build
+
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_libdir}/libhyprgraphics.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhyprgraphics.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhyprgraphics.so
+%{_includedir}/hyprgraphics
+%{_pkgconfigdir}/hyprgraphics.pc
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..8b27888
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,10 @@
+--- hyprgraphics-0.1.1/CMakeLists.txt.orig 2024-12-20 00:27:02.159131502 +0100
++++ hyprgraphics-0.1.1/CMakeLists.txt 2024-12-20 00:27:28.095045038 +0100
+@@ -26,7 +26,6 @@
+ message(STATUS "Configuring hyprgraphics in Debug")
+ add_compile_definitions(HYPRGRAPHICS_DEBUG)
+ else()
+- add_compile_options(-O3)
+ message(STATUS "Configuring hyprgraphics in Release")
+ endif()
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hyprgraphics.git/commitdiff/9ad51c0b92387fb7f02509afb83f7cd9bfe10b8f
More information about the pld-cvs-commit
mailing list