File apple_cursor.spec of Package apple_cursor
#
# spec file for package apple_cursor
#
# Copyright (c) 2024 astra <driedpampas@proton.me>
#
# 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/
#
Name: apple_cursor
Version: 2.0.1
Release: 1%{?dist}
Summary: Opensource macOS cursors
License: GPL-3.0-or-later
URL: https://github.com/ful1e5/apple_cursor
Source0: https://github.com/ful1e5/apple_cursor/releases/download/v%{version}/macOS.tar.xz
BuildArch: noarch
BuildRequires: fdupes
%description
This package provides opensource macOS cursors.
%prep
%setup -q -c -T
# Manually extract the tarball into the current directory
tar -xf %{SOURCE0}
%build
# No build process is needed for cursor themes
%install
# Installing cursor themes into /usr/share/apple_cursor temporarily
install -d %{buildroot}/usr/share/apple_cursor/
cp -r macOS %{buildroot}/usr/share/apple_cursor/
cp -r macOS-White %{buildroot}/usr/share/apple_cursor/
# Deduplicate files
%fdupes %{buildroot}/usr/share/apple_cursor
%post
# Copy macOS cursor theme
cp -r /usr/share/apple_cursor/* /usr/share/icons/
%files
/usr/share/apple_cursor
/usr/share/apple_cursor/macOS
/usr/share/apple_cursor/macOS-White
%changelog
* Fri Sep 24 2024 Your Name <your.email@example.com> - 2.0.1-1
- Updated to latest source release