comparison rogue5/rogue.spec @ 33:f502bf60e6e4

Import Rogue 5.4 from the Roguelike Restoration Project (r1490)
author elwin
date Mon, 24 May 2010 20:10:59 +0000
parents
children
comparison
equal deleted inserted replaced
32:2dcd75e6a736 33:f502bf60e6e4
1 Name: rogue
2 Version: 5.4.5
3 Release: 1%{?dist}
4 Summary: The original graphical adventure game
5
6 Group: Amusements/Games
7 License: BSD
8 URL: http://rogue.rogueforge.net/
9 Source0: http://rogue.rogueforge.net/files/rogue5.4/rogue5.4.5-src.tar.gz
10 Source1: rogue.desktop
11 Source2: rogue.png
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires: desktop-file-utils
15 BuildRequires: ncurses-devel
16
17 %description
18 The one, the only, the original graphical adventure game that spawned
19 an entire genre.
20
21 %prep
22 %setup -q -n %{name}%{version}
23
24
25 %build
26 %configure --enable-setgid=games --enable-scorefile=%{_var}/games/roguelike/rogue54.scr --enable-lockfile=%{_var}/games/roguelike/rogue54.lck
27 make %{_smp_mflags}
28
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32
33 make install DESTDIR=$RPM_BUILD_ROOT
34
35 desktop-file-install --vendor fedora \
36 --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
37 %{SOURCE1}
38 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/
39 install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/
40
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 touch --no-create %{_datadir}/icons/hicolor || :
47 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
48 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
49 fi
50
51 %postun
52 touch --no-create %{_datadir}/icons/hicolor || :
53 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
54 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
55 fi
56
57
58 %files
59 %defattr(-,root,root,-)
60 %attr(2755,games,games) %{_bindir}/rogue
61 %{_mandir}/man6/rogue.6.gz
62 %{_datadir}/applications/fedora-%{name}.desktop
63 %{_datadir}/icons/hicolor/32x32/apps/rogue.png
64 %dir %attr(0775,games,games) %{_var}/games/roguelike
65 %config(noreplace) %attr(0664,games,games) %{_var}/games/roguelike/rogue54.scr
66 %doc %{_docdir}/%{name}-%{version}
67
68
69 %changelog
70 * Sun Aug 24 2008 yendor <yendor at roguefogre.net> 5.4.5-1
71 - Update to 5.4.5
72 * Sun Sep 2 2007 Wart <wart at kobold.org> 5.4.4-1
73 - Update to 5.4.4
74
75 * Mon Aug 20 2007 Wart <wart at kobold.org> 5.4.3-1
76 - Update to 5.4.3
77
78 * Sun Jul 15 2007 Wart <wart at kobold.org> 5.4.2-9
79 - New upstream home page and download URL
80 - Add patch when reading long values from the save file on 64-bit arch
81 (BZ #248283)
82 - Add patch removing many compiler warnings
83 - Use proper version in the .desktop file
84
85 * Sat Mar 3 2007 Wart <wart at kobold.org> 5.4.2-8
86 - Use better sourceforge download url
87 - Use more precise desktop file categories
88
89 * Mon Aug 28 2006 Wart <wart at kobold.org> 5.4.2-7
90 - Rebuild for Fedora Extras
91
92 * Tue May 16 2006 Wart <wart at kobold.org> 5.4.2-6
93 - Added empty initial scoreboard file.
94
95 * Mon May 15 2006 Wart <wart at kobold.org> 5.4.2-5
96 - Better setuid/setgid handling (again) (BZ #187392)
97
98 * Thu Mar 30 2006 Wart <wart at kobold.org> 5.4.2-4
99 - Better setuid/setgid handling (BZ #187392)
100 - Resize desktop icon to match directory name
101
102 * Mon Mar 13 2006 Wart <wart at kobold.org> 5.4.2-3
103 - Added icon for .desktop file.
104
105 * Sun Mar 12 2006 Wart <wart at kobold.org> 5.4.2-2
106 - Added missing BR: ncurses-devel, desktop-file-utils
107
108 * Sat Feb 25 2006 Wart <wart at kobold.org> 5.4.2-1
109 - Initial spec file.