Files
linutil/linutil.spec
yoong jin e52976c8e5 - Update to version 2025.02.13~0:
* update version
  * dm fixes and posix
  * refactor: misc restructering (#1015)
  * allow different os-releases and hyprland setup (#1013)
  * feat: Zen Browser installation (#940)
  * remove shfmt (#1012)
  * Fix grep error in alpine linux (#979)
  * refact: categorize dev scripts & add zed editor installation (#929)
  * refactor: Use a macro to simplify shortcut creation (#973)
  * refact: fix (almost) all shellcheck errors (#997)
  * chore: remove redundant files (#995)

OBS-URL: https://build.opensuse.org/package/show/utilities/linutil?expand=0&rev=38
2025-02-19 00:29:15 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package linutil
#
# Copyright (c) 2025 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/
#
%global crate linutil
%global _description %{expand:
Chris Titus Tech's Linux Toolbox - Linutil is a distro-agnostic toolbox
designed to simplify everyday Linux tasks.}
%bcond_without check
Name: linutil
Version: 2025.02.13~0
Release: 0
Summary: Linutil is a toolbox designed to simplify everyday Linux tasks
URL: https://github.com/ChrisTitusTech/linutil
Source: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source2: https://raw.githubusercontent.com/Chris-Titus-Docs/linutil-docs/refs/heads/main/static/images/favicon.png
BuildRequires: cargo >= 1.80
BuildRequires: cargo-packaging
BuildRequires: desktop-file-utils
License: MIT
%description %{_description}
%files
%license LICENSE
%doc README.md
%{_mandir}/man1/linutil*
%doc docs/*
%doc ./tui/cool_tips.txt
%{_datadir}/icons/linutil.png
%{_bindir}/linutil
%{_datadir}/applications/*.desktop
%prep
%autosetup -p1 -a1
%build
%{cargo_build} --all
%install
%{cargo_install -p tui}
mkdir %{buildroot}%{_datadir}/icons/ -p
mkdir /%{buildroot}%{_mandir}/man1 -p
cp %{SOURCE2} %{buildroot}%{_datadir}/icons/linutil.png
mv ./man/* /%{buildroot}%{_mandir}/man1/
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
--set-key=Exec --set-value=%{_bindir}/linutil \
--set-key=Icon --set-value=%{_datadir}/icons/linutil.png \
./linutil.desktop
%if %{with check}
%check
%{cargo_test}
%endif
%changelog