-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqqX.spec
57 lines (46 loc) · 1.8 KB
/
qqX.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
%global debug_package %{nil}
%define repoauth TuxVinyards
Name: qqX
Version: 1.4.01
Release: 1%{?dist}
Summary: qqX - Safe & Powerful text based Quickemu Virtual Machine Manager
Group: Utilities/Virtual Machines
License: GPLv3
URL: https://github.com/%{repoauth}/%{name}
Source0: https://github.com/%{repoauth}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: desktop-file-utils
Requires: quickemu
%description
Quickemu Quickget X terminal project - qqX offers an alternative menu system that has lots of power and functions. More even than quickemu. It has an easy installation. No additional software or dependancies are required. Quickemu works on the command line and traditionally has had a simple menu interface called quickgui.
%prep
%setup -q -c
%build
mkdir -p ./_build/src/github.com/%{repoauth}
ln -s $(pwd) ./_build/src/github.com/%{repoauth}/%{name}
curl -LJO %{URL}/blob/{%version}/README.md
%install
# Prepare asset files
mkdir -p %{buildroot}%{_bindir}/%{name}.system
# mkdir -p -m0755 %{buildroot}%{name}/%{name}/%{name}.system
cp -r ./qqX.system/* %{buildroot}%{_bindir}/%{name}.system/
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0755 %{name}_settings %{buildroot}%{_bindir}/%{name}_settings
install -Dm 0755 %{name}_setup_and_install %{buildroot}%{_bindir}/%{name}_setup_and_install
%post
if [ $1 -gt 1 ] ; then
export PATH=%{_bindir}/%{name}:$PATH
export qqX_Std_Bin_Dir=%{_bindir}/%{name}
exec %{_bindir}/%{name}_setup_and_install
fi
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%doc LICENSE.Addendum.txt
%{_bindir}/%{name}
%{_bindir}/%{name}_settings
%{_bindir}/%{name}_setup_and_install
%{_bindir}/%{name}.system/*
%changelog
* Mon Jan 1 2024 James Flynn <[email protected]> - 1.4.01-1
- Initial with qqX 1.4.01