/[packages]/cauldron/yadex/current/SPECS/yadex.spec
ViewVC logotype

Contents of /cauldron/yadex/current/SPECS/yadex.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95597 - (show annotations) (download)
Fri May 6 20:01:54 2011 UTC (12 years, 11 months ago) by grenoya
File size: 2307 byte(s)
imported package yadex
1 Summary: Level editor for DOOM
2 Name: yadex
3 Version: 1.7.0
4 Release: %mkrel 11
5 License: GPL
6 Group: Games/Arcade
7 Source: http://www.teaser.fr/~amajorel/yadex/%name-%version.tar.bz2
8 Patch0: yadex-fix-compil.patch
9 Patch1: yadex-1.7.0-gcc45.patch
10 URL: http://www.teaser.fr/~amajorel/yadex
11 BuildRoot: %_tmppath/%name-%version-%release-root
12 BuildRequires: libx11-devel
13
14 %description
15 Yadex is a Doom level (wad) editor for Unix systems running X, including
16 Linux. It supports Doom, Doom II, Ultimate Doom, Final Doom, Heretic,
17 Doom press release pre beta and also, in a more or less limited way, Hexen,
18 Strife and Doom alpha. It is available under the terms of the GPL.
19
20 %prep
21 %setup -q
22 %patch0 -p0 -b .fix-compil
23 %patch1 -p0 -b .gcc
24
25 %build
26 ./configure --prefix=%_prefix
27 %make CXXFLAGS="%optflags" CXX="g++ %ldflags" X11LIBDIR=%{_libdir} X11INCLUDEDIR=%{_includedir}
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 make \
32 BINDIR=%buildroot/%_bindir \
33 ETCDIR=%buildroot/%_sysconfdir/%name/%version \
34 ETCDIRNV=%buildroot/%_sysconfdir/%name \
35 MANDIR=%buildroot/%_mandir \
36 SHAREDIR=%buildroot/%_datadir/games/%name/%version \
37 SHAREDIRNV=%buildroot/games/%_datadir \
38 install
39
40 mkdir -p ./html
41 mv ./doc/*.html ./html
42 mv ./docsrc/*.png ./html
43
44 cat %buildroot/%_sysconfdir/%name/%version/yadex.cfg | \
45 sed -e "s|/usr/local|%_prefix|" > %buildroot/%_sysconfdir/%name/%version/yadex.cfg.tmp
46
47 mv %buildroot/%_sysconfdir/%name/%version/yadex.cfg.tmp %buildroot/%_sysconfdir/%name/%version/yadex.cfg
48
49 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
50 cat << EOF > %buildroot%{_datadir}/applications/mandriva-%name.desktop
51 [Desktop Entry]
52 Type=Application
53 Categories=Game;ArcadeGame;
54 Name=Yadex
55 Icon=arcade_section
56 Comment=A level editor for DOOM
57 Exec=%name
58 EOF
59
60 %if %mdkversion < 200900
61 %post
62 %update_menus
63 %endif
64
65 %if %mdkversion < 200900
66 %postun
67 %clean_menus
68 %endif
69
70 %clean
71 rm -fr %buildroot
72
73 %files
74 %defattr(-,root,root)
75 %doc README TODO CHANGES COPYING COPYING.LIB html
76 %_bindir/yadex
77 %_bindir/yadex-%{version}
78 %dir %_sysconfdir/%name
79 %dir %_sysconfdir/%name/%version
80 %config(noreplace) %_sysconfdir/%name/%version/yadex.cfg
81 %dir %_gamesdatadir/yadex
82 %dir %_gamesdatadir/yadex/%{version}
83 %_gamesdatadir/yadex/%{version}/*.ygd
84 %_mandir/man6/yadex*
85 %{_datadir}/applications/mandriva-yadex.desktop
86
87
88
89

  ViewVC Help
Powered by ViewVC 1.1.30