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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95608 - (show annotations) (download)
Fri May 6 20:11:11 2011 UTC (12 years, 11 months ago) by schedbot
File size: 2196 byte(s)
Copying release 1.7.0-11.mga1 to pristine/ directory.
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/mageia-%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 %clean
61 rm -fr %buildroot
62
63 %files
64 %defattr(-,root,root)
65 %doc README TODO CHANGES COPYING COPYING.LIB html
66 %_bindir/yadex
67 %_bindir/yadex-%{version}
68 %dir %_sysconfdir/%name
69 %dir %_sysconfdir/%name/%version
70 %config(noreplace) %_sysconfdir/%name/%version/yadex.cfg
71 %dir %_gamesdatadir/yadex
72 %dir %_gamesdatadir/yadex/%{version}
73 %_gamesdatadir/yadex/%{version}/*.ygd
74 %_mandir/man6/yadex*
75 %{_datadir}/applications/mageia-yadex.desktop
76
77
78
79

  ViewVC Help
Powered by ViewVC 1.1.30