Options: Fix modifying or deleting of value returned by getenv
[roofball.git] / roofball.spec.in
blob5f02b6a87f777564f0f978ec75418ae61594b1dc
1 %define name @PACKAGE@
2 %define version @VERSION@
3 %define release 1
5 Summary: RoofBall Game
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Group: Amusements/Games
10 Source: %{name}-%{version}.tar.bz2
11 Copyright: GPL
12 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
13 Prefix: %{_prefix}
15 %description
16 An SDL game with a roof and a ball
18 %prep
19 %setup
21 %build
22 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
23 make
25 %install
26 rm -fr $RPM_BUILD_ROOT
27 make DESTDIR=$RPM_BUILD_ROOT install
29 mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Games
30 cat > $RPM_BUILD_ROOT/etc/X11/applnk/Games/roofball.desktop <<EOF
31 [Desktop Entry]
32 Name=RoofBall
33 Type=Application
34 Description=SDL game -- RoofBall
35 Exec=roofball
36 EOF
38 %clean
39 rm -fr $RPM_BUILD_ROOT
41 %files
42 %defattr(-,root,root)
43 %doc README
44 %{prefix}/bin/roofball
45 %{prefix}/share/%{name}/*
46 /etc/X11/applnk/Games/roofball.desktop