/[packages]/cauldron/warsow-data/current/SPECS/warsow-data.spec
ViewVC logotype

Contents of /cauldron/warsow-data/current/SPECS/warsow-data.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 338836 - (show annotations) (download)
Fri Jan 4 23:29:52 2013 UTC (11 years, 3 months ago) by juancho
File size: 1029 byte(s)
Added symlinks of basewsw dir to warsow lib dir to fix bug #8103: Couldn't find textures.
1 %define gamelibdir %{_libdir}/games/warsow
2 Name: warsow-data
3 Version: 1.02
4 Release: %mkrel 3
5 Summary: Data files for Warsow
6 # See license.txt in the warsow rpm
7 License: Warsow Content License
8 Group: Games/Shooter
9 URL: http://www.warsow.net/
10 #http://www.warsow.net:1337/~warsow/%{version}/
11 Source0: warsow_%{version}.tar.gz
12 BuildArch: noarch
13 BuildRequires: fdupes
14 Requires: warsow = %{version}
15
16 %description
17 Data files (audio, maps, etc.) for Warsow.
18
19 %prep
20 %setup -q -n warsow_%{version}
21
22 %build
23
24 %install
25 mkdir -p %{buildroot}/%{_datadir}/warsow/
26 mkdir -p %{buildroot}%{gamelibdir}/basewsw/
27 cp -ap basewsw %{buildroot}/%{_datadir}/warsow/
28 fdupes $RPM_BUILD_ROOT
29
30 %post
31 #Add symbolic links of the contents of basewsw to the directory were the
32 #package warsow install the libs, if not then angelscript fails to load.
33 for i in %{_datadir}/warsow/basewsw/*;
34 do
35 file=`basename $i`
36 ln -sf $i %{gamelibdir}/basewsw/$file
37 done
38
39 %postun
40 rm -rf %{gamelibdir}/basewsw
41
42 %files
43 %doc docs/*
44 %{_datadir}/warsow/
45 %{gamelibdir}/basewsw/

  ViewVC Help
Powered by ViewVC 1.1.30