[packages/hyprwayland-scanner] new

atler atler at pld-linux.org
Mon Jul 29 02:26:07 CEST 2024


commit c9ada5b6c8c7e89c9afccc277cce644e422eaae8
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 29 00:32:03 2024 +0200

    new

 flags.patch              | 10 ++++++++++
 hyprwayland-scanner.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
---
diff --git a/hyprwayland-scanner.spec b/hyprwayland-scanner.spec
new file mode 100644
index 0000000..d73a519
--- /dev/null
+++ b/hyprwayland-scanner.spec
@@ -0,0 +1,45 @@
+Summary:	A Hyprland implementation of wayland-scanner, in and for C++
+Name:		hyprwayland-scanner
+Version:	0.4.0
+Release:	1
+License:	BSD
+Group:		Development/Tools
+#Source0Download: https://github.com/hyprwm/hyprwayland-scanner/releases
+Source0:	https://github.com/hyprwm/hyprwayland-scanner/archive/v%{version}/%{name}-v%{version}.tar.gz
+# Source0-md5:	f62bdda98176fd36141c7001c84b007c
+Patch0:		flags.patch
+URL:		https://hyprland.org/
+BuildRequires:	cmake >= 3.19
+BuildRequires:	libstdc++-devel >= 6:11
+BuildRequires:	pkgconfig
+BuildRequires:	pugixml-devel
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Hyprland implementation of wayland-scanner, in and for C++.
+
+%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
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_bindir}/hyprwayland-scanner
+%{_libdir}/cmake/hyprwayland-scanner
+%{_pkgconfigdir}/hyprwayland-scanner.pc
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..a3a5e5f
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,10 @@
+--- hyprwayland-scanner-0.4.0/CMakeLists.txt.orig	2024-07-05 23:44:17.000000000 +0200
++++ hyprwayland-scanner-0.4.0/CMakeLists.txt	2024-07-28 19:44:00.204956759 +0200
+@@ -18,7 +18,6 @@
+     message(STATUS "Configuring hyprwayland-scanner in Debug with CMake")
+     add_compile_definitions(HYPRLAND_DEBUG)
+ else()
+-    add_compile_options(-O3)
+     message(STATUS "Configuring hyprwayland-scanner in Release with CMake")
+ endif()
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hyprwayland-scanner.git/commitdiff/c9ada5b6c8c7e89c9afccc277cce644e422eaae8



More information about the pld-cvs-commit mailing list