This commit is contained in:
parent
9463c1d84d
commit
4f7daf358e
29
ppsspp.spec
29
ppsspp.spec
@ -72,6 +72,7 @@ PPSSPP is a PSP emulator written in C++, and translates PSP CPU instructions dir
|
||||
%package headless
|
||||
Summary: PPSSPP headless
|
||||
Group: System/Emulators/Other
|
||||
Requires: %{name}-common
|
||||
|
||||
%description headless
|
||||
PPSSPP headless build
|
||||
@ -89,7 +90,7 @@ Summary: PPSSPP assets
|
||||
Group: System/Emulators/Other
|
||||
|
||||
%description common
|
||||
Required assets for PPSSPP GUI
|
||||
Required assets for PPSSPP GUI and assorted configuration files
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -155,22 +156,46 @@ cmake .. \
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
|
||||
|
||||
|
||||
#setup wrapper(s)
|
||||
|
||||
touch %{buildroot}%{_sysconfdir}/%{name}/%{name}-headless.env
|
||||
|
||||
cat > %{buildroot}%{_bindir}/%{name}-headless << 'EOF'
|
||||
#!/bin/sh
|
||||
|
||||
#Do not edit this file!
|
||||
#Use %{_sysconfdir}/%{name}/%{name}-headless.env to set environment variables
|
||||
. %{_sysconfdir}/%{name}/%{name}-headless.env
|
||||
|
||||
exec %{_libexecdir}/%{name}/%{name}-headless "$@"
|
||||
|
||||
EOF
|
||||
|
||||
touch %{buildroot}%{_sysconfdir}/%{name}/%{name}-qt.env
|
||||
|
||||
cat > %{buildroot}%{_bindir}/%{name}-qt << 'EOF'
|
||||
#!/bin/sh
|
||||
|
||||
#Do not edit this file!
|
||||
#Use %{_sysconfdir}/%{name}/%{name}-qt.env to set environment variables
|
||||
. %{_sysconfdir}/%{name}/%{name}-qt.env
|
||||
|
||||
exec %{_libexecdir}/%{name}/%{name}-qt "$@"
|
||||
|
||||
EOF
|
||||
|
||||
touch %{buildroot}%{_sysconfdir}/%{name}/%{name}.env
|
||||
|
||||
cat > %{buildroot}%{_bindir}/%{name} << 'EOF'
|
||||
#!/bin/sh
|
||||
|
||||
#Do not edit this file!
|
||||
#Use %{_sysconfdir}/%{name}/%{name}.env to set environment variables
|
||||
. %{_sysconfdir}/%{name}/%{name}.env
|
||||
|
||||
exec %{_libexecdir}/%{name}/%{name} "$@"
|
||||
|
||||
EOF
|
||||
@ -219,6 +244,8 @@ install -m 444 -D icons/icon.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
|
||||
%{_libexecdir}/%{name}/assets
|
||||
%{_datadir}/pixmaps/%{name}.svg
|
||||
|
||||
%config(noreplace) %{_sysconfdir}/%{name}
|
||||
|
||||
%files
|
||||
%defattr(644,root,root)
|
||||
%dir %{_libexecdir}/%{name}
|
||||
|
Loading…
Reference in New Issue
Block a user