forked from adoptware/pinball
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pinball.spec
71 lines (56 loc) · 1.98 KB
/
pinball.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Name: pinball
Version: 0.3.1
Release: 1rh90
Group: Amusements/Games
Summary: Emilia Pinball is free OpenGL pinball game.
Vendor: Henrik Enqvist <[email protected]>
Packager: Henrik Enqvist <[email protected]>
License: GPL
URL: http://pinball.sourceforge.net
Source: http://prdownloads.sourceforge.net/pinball/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Pinball game.
%prep
rm -rf %{buildroot}
%setup -n %{name}-%{version}
%build
./configure --prefix=%{_prefix} --with-highscore-prefix=/var/lib/games/pinball
make
%install
make DESTDIR=%{buildroot} install
#Install application link for X-Windows
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --vendor=emilia \
--dir %{buildroot}%{_datadir}/applications \
--add-category X-Red-Hat-Extra \
--add-category Application \
--add-category Game \
%{SOURCE1}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README
%{_prefix}/bin/pinball
%{_prefix}/bin/pinball-config
%dir %{_prefix}/share/pinball
%{_prefix}/share/pinball/*
%dir %{_prefix}/lib/pinball
%{_prefix}/lib/pinball/*
%dir %{_prefix}/include/pinball
%{_prefix}/include/pinball/*
%{_prefix}/share/applications/*.desktop
%attr(0775, root, root) %dir /var/lib/games/pinball
%attr(0666, games, games) %dir /var/lib/games/pinball/professor/highscores
%attr(0666, games, games) %dir /var/lib/games/pinball/tux/highscores
%changelog
* Mon Apr 07 2003 Michal Ambroz (O_O) <[email protected]>
- rebuild for Fedora Core 1
* Mon Apr 07 2003 Michal Ambroz (O_O) <[email protected]>
- cleanup for RHL 9
* Wed Mar 05 2003 Henrik Enqvist
- removed build_root to make it work with libtool (ugly)
* Fri Mar 08 2002 Michal Ambroz (O_O) <[email protected]>
- initial pinball RPM