[packages/hyprutils] new
atler
atler at pld-linux.org
Mon Jul 29 02:20:50 CEST 2024
commit 82036af7b20cb13a071c9567689f47ad15bec34a
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jul 29 00:26:17 2024 +0200
new
flags.patch | 10 ++++++++++
hyprutils.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+)
---
diff --git a/hyprutils.spec b/hyprutils.spec
new file mode 100644
index 0000000..a8eb4b1
--- /dev/null
+++ b/hyprutils.spec
@@ -0,0 +1,62 @@
+Summary: Hyprland utilities library used across the ecosystem
+Name: hyprutils
+Version: 0.2.1
+Release: 1
+License: BSD
+Group: Libraries
+#Source0Download: https://github.com/hyprwm/hyprutils/releases
+Source0: https://github.com/hyprwm/hyprutils/archive/v%{version}/%{name}-v%{version}.tar.gz
+# Source0-md5: ec061f36549f0fdd52a2b069c5273423
+Patch0: flags.patch
+URL: https://hyprland.org/
+BuildRequires: cmake >= 3.19
+BuildRequires: libstdc++-devel >= 6:11
+BuildRequires: pixman-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hyprutils is a small C++ library for utilities used across the Hypr*
+ecosystem.
+
+%package devel
+Summary: Header files for hyprutils
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files for hyprutils.
+
+%prep
+%setup -q
+%patch0 -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}/libhyprutils.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhyprutils.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhyprutils.so
+%{_includedir}/hyprutils
+%{_pkgconfigdir}/hyprutils.pc
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..b8c5a97
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,10 @@
+--- hyprutils-0.2.1/CMakeLists.txt.orig 2024-07-27 18:47:29.000000000 +0200
++++ hyprutils-0.2.1/CMakeLists.txt 2024-07-28 18:05:45.130800953 +0200
+@@ -24,7 +24,6 @@
+ message(STATUS "Configuring hyprutils in Debug")
+ add_compile_definitions(HYPRLAND_DEBUG)
+ else()
+- add_compile_options(-O3)
+ message(STATUS "Configuring hyprutils in Release")
+ endif()
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hyprutils.git/commitdiff/82036af7b20cb13a071c9567689f47ad15bec34a
More information about the pld-cvs-commit
mailing list