Files
packages/anda/tools/fuc/fuc.spec
T
2024-07-01 03:46:04 +00:00

67 lines
1.8 KiB
RPMSpec

%global debug_package %{nil}
Name: fuc
Version: 2.2.0
Release: 1%?dist
Summary: Modern, performance focused unix commands
URL: https://github.com/SUPERCILEX/fuc
Source0: https://raw.githubusercontent.com/SUPERCILEX/fuc/%{version}/README.md
Source1: https://raw.githubusercontent.com/SUPERCILEX/fuc/%{version}/LICENSE
%ifarch x86_64
Source2: %{url}/releases/download/%{version}/rmz-x86_64-unknown-linux-gnu
Source3: %{url}/releases/download/%{version}/cpz-x86_64-unknown-linux-gnu
%elifarch aarch64
Source2: %{url}/releases/download/%{version}/rmz-aarch64-unknown-linux-gnu
Source3: %{url}/releases/download/%{version}/cpz-aarch64-unknown-linux-gnu
%endif
License: Apache-2.0
Requires: cpz rmz
%description
Fast Unix Commands,
the FUC-ing project providing modern unix commands focused on performance.
%package -n rmz
Summary: Fast `rm` command from the FUC project
%description -n rmz
%{summary}. See the `fuc` package.
%package -n cpz
Summary: Fast `cp` command from the FUC project
%description -n cpz
%{summary}. See the `fuc` package.
%prep
%build
%install
install -Dm644 %{SOURCE0} "%{buildroot}/%{_datadir}/doc/%{name}/README.md"
install -Dm644 %{SOURCE1} "%{buildroot}/%{_datadir}/licenses/%{name}/LICENSE"
install -Dm644 %{SOURCE0} "%{buildroot}/%{_datadir}/doc/rmz/README.md"
install -Dm644 %{SOURCE1} "%{buildroot}/%{_datadir}/licenses/rmz/LICENSE"
install -Dm644 %{SOURCE0} "%{buildroot}/%{_datadir}/doc/cpz/README.md"
install -Dm644 %{SOURCE1} "%{buildroot}/%{_datadir}/licenses/cpz/LICENSE"
install -Dm755 %{SOURCE2} %{buildroot}/usr/bin/rmz
install -Dm755 %{SOURCE3} %{buildroot}/usr/bin/cpz
%files
%doc README.md
%license LICENSE
%files -n rmz
%doc README.md
%license LICENSE
/usr/bin/rmz
%files -n cpz
%doc README.md
%license LICENSE
/usr/bin/cpz
%changelog
* Wed Jan 18 2023 windowsboy111 <windowsboy111@fyralabs.com> - 1.1.3-1
- Initial package