SPECS: doom3.spec - 1.3.1302. old one stored in branch DEMO
glen
glen at pld-linux.org
Sat Nov 5 01:28:57 CET 2005
Author: glen Date: Sat Nov 5 00:28:57 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 1.3.1302. old one stored in branch DEMO
---- Files affected:
SPECS:
doom3.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/doom3.spec
diff -u SPECS/doom3.spec:1.6 SPECS/doom3.spec:1.7
--- SPECS/doom3.spec:1.6 Sat Nov 5 01:16:10 2005
+++ SPECS/doom3.spec Sat Nov 5 01:28:51 2005
@@ -2,26 +2,26 @@
# NOTE: You could add to your 'mirrors', to get stuff downloaded:
# ftp://dl.xs4all.nl/pub/mirror/idsoftware/idstuff/doom3/linux/
# TODO:
-# - package dedicated server - doomded.x86, I couldn't get doom3 running so I
-# wasn't interested anymore :)
+# - package dedicated server - doomded.x86
# - check if system libstdc++ and libgcc_s can be used
# answered here: http://zerowing.idsoftware.com/linux/doom/#head-d15dfbca9b3ba90b9bacb7476ad2f0afe3bb0f72
# - check license?
#
# Conditional build:
%bcond_with demo # package demo data
+%define demo_version 1.1.1286
#
Summary: Doom III - 3rd installment of the classic id 3D first-person shooter
Summary(pl): Doom III - trzecia część klasyki FPP z id Software
Name: doom3
-Version: 1.1.1286
-Release: 0.2
+Version: 1.3.1302
+Release: 0.8
Vendor: id Software
License: DOOM3
Group: Applications/Games
Source0: ftp://ftp.idsoftware.com/idstuff/doom3/linux/%{name}-linux-%{version}.x86.run
-# NoSource0-md5: 2a45d0769b39473887c61a11cbba981c
-Source1: ftp://ftp.idsoftware.com/idstuff/doom3/linux/%{name}-linux-%{version}-demo.x86.run
+# NoSource0-md5: b1d04da2d64bb8d54f64cbaa2fdb4490
+Source1: ftp://ftp.idsoftware.com/idstuff/doom3/linux/%{name}-linux-%{demo_version}-demo.x86.run
# NoSource1-md5: 81dcf8ead198f14844c554b25e07abbe
Source2: %{name}.desktop
NoSource: 0
@@ -32,28 +32,45 @@
%define no_install_post_strip 1
-%define _noautoprov libgcc_s.so.1 libstdc++.so.5
-%define _gamedir /usr/%{_lib}/games/doom3
+%define _noautoprov libgcc_s.so.1 libstdc++.so.5
+%define _noautoreqdep libgcc_s.so.1 libstdc++.so.5
+%define _gamelibdir %{_libdir}/games/doom3
+%define _gamedatadir %{_datadir}/games/doom3
%description
-Doom III demo for Linux.
+Doom III for Linux.
+
+To play the game you need to copy data files from your Doom III CD or
+you could try playing demo by installing %{name}-demo package.
%description -l pl
-Demo Doom III dla Linuksa.
+Doom III dla Linuksa.
+
+%package demo
+Summary: Doom III Demo data files
+Group: Applications/Games
+Version: %{demo_version}
+# main package version is mostly bigger than demo itself.
+Requires: %{name} >= %{demo_version}
+
+%description demo
+This package contains the data files for Doom III Demo.
%prep
%setup -qcT
-sh %{SOURCE0} --tar xf
+%if %{with demo}
sh %{SOURCE1} --tar xf
+%endif
+# here we overwrite files which are shared with demo package. that's intentional
+sh %{SOURCE0} --tar xf
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_gamedir}/{demo,base} \
+install -d $RPM_BUILD_ROOT{%{_gamelibdir},%{_gamedatadir}/{demo,base}} \
$RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_bindir}}
-install gamex86.so $RPM_BUILD_ROOT%{_gamedir}
-install libgcc_s.so.1 libstdc++.so.5 $RPM_BUILD_ROOT%{_gamedir}
-install bin/Linux/x86/doom.x86 $RPM_BUILD_ROOT%{_gamedir}
+install libgcc_s.so.1 libstdc++.so.5 $RPM_BUILD_ROOT%{_gamelibdir}
+install bin/Linux/x86/doom.x86 $RPM_BUILD_ROOT%{_gamelibdir}
install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
@@ -62,14 +79,19 @@
#!/bin/sh
# Needed to make symlinks/shortcuts work.
# the binaries must run with correct working directory
-cd %{_gamedir}
+cd %{_gamelibdir}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
exec ./doom.x86 "$@"
EOF
-%{?with_demo:install demo/* $RPM_BUILD_ROOT%{_gamedir}/demo}
+%if %{with demo}
+install gamex86.so $RPM_BUILD_ROOT%{_gamelibdir}
+install demo/* $RPM_BUILD_ROOT%{_gamedatadir}/demo
+ln -s %{_gamedatadir}/demo $RPM_BUILD_ROOT%{_gamelibdir}/demo
+%endif
-install base/* $RPM_BUILD_ROOT%{_gamedir}/base
+install base/* $RPM_BUILD_ROOT%{_gamedatadir}/base
+ln -s %{_gamedatadir}/base $RPM_BUILD_ROOT%{_gamelibdir}/base
%clean
rm -rf $RPM_BUILD_ROOT
@@ -78,29 +100,35 @@
%defattr(644,root,root,755)
%doc License.txt README version.info
%attr(755,root,root) %{_bindir}/%{name}
-%dir %{_gamedir}
-%attr(755,root,root) %{_gamedir}/doom.x86
-%attr(755,root,root) %{_gamedir}/gamex86.so
-%attr(755,root,root) %{_gamedir}/libgcc_s.so.1
-%attr(755,root,root) %{_gamedir}/libstdc++.so.5
-
+%dir %{_gamelibdir}
+%attr(755,root,root) %{_gamelibdir}/doom.x86
+%attr(755,root,root) %{_gamelibdir}/libgcc_s.so.1
+%attr(755,root,root) %{_gamelibdir}/libstdc++.so.5
%{_desktopdir}/%{name}.desktop
%{_pixmapsdir}/%{name}.png
+%dir %{_gamedatadir}
+%dir %{_gamedatadir}/base
+%{_gamedatadir}/base/*
+%{_gamelibdir}/base
%if %{with demo}
-%dir %{_gamedir}/demo
-%{_gamedir}/demo/*
+%files demo
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_gamelibdir}/gamex86.so
+%dir %{_gamedatadir}/demo
+%{_gamedatadir}/demo/*
+%{_gamelibdir}/demo
%endif
-%dir %{_gamedir}/base
-%{_gamedir}/base/*
-
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2005/11/05 00:28:51 glen
+- 1.3.1302. old one stored in branch DEMO
+
Revision 1.6 2005/11/05 00:16:10 glen
- avoid shell expansion at build time
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/doom3.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list