mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
#!/bin/sh
|
|
# Generate Quake3 test
|
|
# $1 is version
|
|
# $2 is release
|
|
# $3 is arch
|
|
# $4 is install dir (assumed to be in /var/tmp)
|
|
cat <<EOF
|
|
%define name q3test
|
|
%define version ${1}
|
|
%define release ${2}
|
|
%define arch ${3}
|
|
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: %{release}
|
|
Vendor: id Software
|
|
Packager: Dave "Zoid" Kirsch <zoid@idsoftware.com>
|
|
URL: http://www.idsoftware.com/
|
|
Source: q3test-%{version}.tar.gz
|
|
Group: Games
|
|
Copyright: Restricted
|
|
Icon: quake3.gif
|
|
BuildRoot: /var/tmp/%{name}-%{version}
|
|
Summary: Q3Test for Linux
|
|
|
|
%description
|
|
|
|
%install
|
|
|
|
%files
|
|
|
|
%attr(644,root,root) $4/README.EULA
|
|
%attr(644,root,root) $4/README.Q3Test
|
|
%attr(644,root,root) $4/README.Linux
|
|
%attr(644,root,root) $4/Quake3.kdelnk
|
|
%attr(644,root,root) $4/quake3.xpm
|
|
%attr(755,root,root) $4/linuxquake3
|
|
%attr(755,root,root) $4/cgamei386.so
|
|
%attr(755,root,root) $4/qagamei386.so
|
|
%attr(755,root,root) $4/uii386.so
|
|
%attr(755,root,root) $4/libMesaVoodooGL.so.3.1
|
|
%attr(644,root,root) $4/demoq3/pak0.pk3
|
|
|
|
%post
|
|
|
|
if [ -n "\$KDEDIR" ]; then
|
|
ln -sf $4/Quake3.kdelnk \$KDEDIR/share/applnk/Games/Quake3.kdelnk
|
|
ln -sf $4/quake3.xpm \$KDEDIR/share/icons/quake3.xpm
|
|
fi
|
|
|
|
EOF
|
|
|