SHA256
1
0
forked from pool/hyprcursor

Accepting request 1158609 from home:sp1rit

dependency for X11:Wayland/hyprland

depends on 1158608

OBS-URL: https://build.opensuse.org/request/show/1158609
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/hyprcursor?expand=0&rev=1
This commit is contained in:
Jan Engelhardt 2024-03-17 09:00:17 +00:00 committed by Git OBS Bridge
commit 4fcba6fcb2
7 changed files with 164 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

17
_service Normal file
View File

@ -0,0 +1,17 @@
<!-- vim: set ft=xml ts=4 sw=4 noet: -->
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/hyprwm/hyprcursor.git</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="revision">@PARENT_TAG@</param>
<param name="submodule">enable</param>
</service>
<service name="tar" mode="manual" />
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="manual" />
</services>

View File

@ -0,0 +1,24 @@
From 5e89b31c9df2e5943dd6061fdb827e0d621f9ed7 Mon Sep 17 00:00:00 2001
From: Pavel Solovev <daron439@gmail.com>
Date: Sat, 16 Mar 2024 14:16:29 +0000
Subject: [PATCH] cmake: correct includedir permissions
no need to set 777
---
CMakeLists.txt | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be38f90..a229cdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -70,8 +70,5 @@ add_test(NAME "Test libhyprcursor in C" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/te
add_dependencies(tests hyprcursor_test_c)
# Installation
-install(DIRECTORY "include/hyprcursor" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} DIRECTORY_PERMISSIONS
- OWNER_WRITE OWNER_READ OWNER_EXECUTE
- GROUP_WRITE GROUP_READ GROUP_EXECUTE
- WORLD_WRITE WORLD_READ WORLD_EXECUTE)
+install(DIRECTORY "include/hyprcursor" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES ${CMAKE_BINARY_DIR}/hyprcursor.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

3
hyprcursor-0.1.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49fdb588474f1d2b8270be1794258a5886772ed2a42261420b13e379209cade7
size 17444

4
hyprcursor.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Mar 16 19:45:21 UTC 2024 - Florian "sp1rit" <sp1rit@disroot.org>
- Initial packaging of verion 0.1.4

92
hyprcursor.spec Normal file
View File

@ -0,0 +1,92 @@
#
# spec file for package hyprcursor
#
# Copyright (c) 2024 Florian "sp1rit" <sp1rit@disroot.org>
# Copyright (c) 2024 SUSE LLC
#
# 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: hyprcursor
Version: 0.1.4
Release: 0
Summary: Library and utilities for the hyprland cursor format
License: BSD-3-Clause
URL: https://wiki.hyprland.org/hypr-ecosystem/hyprcursor/
Source0: %{name}-%{version}.tar.xz
# can be dropped with the next release
Patch1: fix_include_dir_permissions.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(hyprlang) >= 0.4.2
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libzip)
BuildRequires: pkg-config
%description
Utilities for the hyprland cursor format.
%package -n lib%{name}%{sover}
Summary: Library for the hyprland cursor format
Group: System/Libraries
%description -n lib%{name}%{sover}
Library for handling the hyprlang cursor format.
%package devel
Summary: Development files for hyprcursor
Group: Development/Libraries/Other
Requires: lib%{name}%{sover} = %{version}
%description devel
Library for handling the hyprland cursor format.
This subpackage contains development files for hyprcursor.
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%fdupes %{buildroot}/%{_includedir}/
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%files
%license LICENSE
%doc README.md
%doc docs/MAKING_THEMES.md
%{_bindir}/%{name}-util
%files -n lib%{name}%{sover}
%license LICENSE
%doc docs/END_USERS.md
%{_libdir}/lib%{name}.so.%{sover}
%{_libdir}/lib%{name}.so.%{version}
%files devel
%doc docs/DEVELOPERS.md
%{_includedir}/%{name}
%{_includedir}/%{name}.hpp
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog