From 4fcba6fcb28787fed3d330c3e1ee926621a641ad21698c1660bd8cf0a8d84b45 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 17 Mar 2024 09:00:17 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 17 ++++++ fix_include_dir_permissions.patch | 24 ++++++++ hyprcursor-0.1.4.tar.xz | 3 + hyprcursor.changes | 4 ++ hyprcursor.spec | 92 +++++++++++++++++++++++++++++++ 7 files changed, 164 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 fix_include_dir_permissions.patch create mode 100644 hyprcursor-0.1.4.tar.xz create mode 100644 hyprcursor.changes create mode 100644 hyprcursor.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..7d626a8 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + + https://github.com/hyprwm/hyprcursor.git + git + @PARENT_TAG@ + v(.*) + @PARENT_TAG@ + enable + + + + *.tar + xz + + + diff --git a/fix_include_dir_permissions.patch b/fix_include_dir_permissions.patch new file mode 100644 index 0000000..1b994cb --- /dev/null +++ b/fix_include_dir_permissions.patch @@ -0,0 +1,24 @@ +From 5e89b31c9df2e5943dd6061fdb827e0d621f9ed7 Mon Sep 17 00:00:00 2001 +From: Pavel Solovev +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) diff --git a/hyprcursor-0.1.4.tar.xz b/hyprcursor-0.1.4.tar.xz new file mode 100644 index 0000000..05756d4 --- /dev/null +++ b/hyprcursor-0.1.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49fdb588474f1d2b8270be1794258a5886772ed2a42261420b13e379209cade7 +size 17444 diff --git a/hyprcursor.changes b/hyprcursor.changes new file mode 100644 index 0000000..44195dd --- /dev/null +++ b/hyprcursor.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Mar 16 19:45:21 UTC 2024 - Florian "sp1rit" + +- Initial packaging of verion 0.1.4 diff --git a/hyprcursor.spec b/hyprcursor.spec new file mode 100644 index 0000000..424c0cc --- /dev/null +++ b/hyprcursor.spec @@ -0,0 +1,92 @@ +# +# spec file for package hyprcursor +# +# Copyright (c) 2024 Florian "sp1rit" +# 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