]> git.pld-linux.org Git - packages/gnome-games.git/blob - gnome-games.spec
- another fix for scores files install
[packages/gnome-games.git] / gnome-games.spec
1 Summary:        GNOME games
2 Summary(es):    Juegos de GNOME
3 Summary(fr):    Jeux pour GNOME
4 Summary(pl):    GNOME - gry
5 Summary(ru):    éÇÒÙ ÐÏÄ GNOME
6 Summary(uk):    ¶ÇÒɠЦĠGNOME
7 Summary(wa):    Djeus po GNOME
8 Name:           gnome-games
9 Version:        2.6.2
10 Release:        4
11 Epoch:          1
12 License:        LGPL
13 Group:          X11/Applications/Games
14 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/2.6/%{name}-%{version}.tar.bz2
15 # Source0-md5:  3b43e035912ec7e941568b571f1237ae
16 Patch0:         %{name}-schemas.patch
17 Patch1:         %{name}-locale-names.patch
18 Icon:           gnome-games.gif
19 URL:            http://www.gnome.org/
20 BuildRequires:  GConf2-devel >= 2.6.2
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  esound-devel
24 BuildRequires:  gnome-vfs2-devel >= 2.6.1.1
25 BuildRequires:  guile-devel >= 1.6.4
26 BuildRequires:  gtk+2-devel >= 2:2.4.3
27 BuildRequires:  intltool >= 0.29
28 BuildRequires:  libglade2-devel >= 1:2.4.0
29 BuildRequires:  libgnome-devel >= 2.6.1.1
30 BuildRequires:  libgnomeui-devel >= 2.6.1.1
31 BuildRequires:  libltdl-devel
32 BuildRequires:  librsvg >= 1:2.6.5
33 BuildRequires:  libstdc++-devel
34 BuildRequires:  libtool
35 BuildRequires:  scrollkeeper >= 0.3.8
36 BuildRequires:  rpm-build >= 4.1-10
37 Requires(post): GConf2
38 Requires(post): coreutils
39 Requires(post,postun):  /sbin/ldconfig
40 Requires(post,postun):  scrollkeeper
41 Requires:       gnome-vfs2 >= 2.6.1.1
42 Requires:       librsvg >= 1:2.6.5
43 Obsoletes:      gnect
44 Obsoletes:      gnome
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %define         _localstatedir  /var
48 %define         _gamesdir       %{_localstatedir}/games
49
50 %description
51 GNOME games.
52
53 GNOME is the GNU Network Object Model Environment. That's a fancy name
54 but really GNOME is a nice GUI desktop environment. It makes using
55 your computer easy, powerful, and easy to configure.
56
57 %description -l pl
58 Gry pod GNOME.
59
60 %description -l uk
61 ðÁËÅÔ gnome-games ×ËÌÀÞÁ¤ ¦ÇÒÉ ÄÌÑ ÓÅÒÅÄÏ×ÉÝÁ ÒÏÂÏÞÏÇÏ ÓÔÏÌÕ GNOME,
62 ÓÅÒÅÄ ÑËÉÈ GnomeScott, freecell, gnibbles, gnobots, gnobots2,
63 gnome-stones, gnomine, gnotravex, gtali, gturing, iagno, mahjongg,
64 same-gnome ÔÁ sol.
65
66 %description -l ru
67 ðÁËÅÔ gnome-games ×ËÌÀÞÁÅÔ ÉÇÒÙ ÄÌÑ ÓÒÅÄÙ ÒÁÂÏÞÅÇÏ ÓÔÏÌÁ GNOME, ÓÒÅÄÉ
68 ËÏÔÏÒÙÈ GnomeScott, freecell, gnibbles, gnobots, gnobots2,
69 gnome-stones, gnomine, gnotravex, gtali, gturing, iagno, mahjongg,
70 same-gnome É sol.
71
72 %package devel
73 Summary:        GNOME games libraries - header files
74 Summary(pl):    Pliki nag³ówkowe do tworzenia programów opartych o GNOME games
75 Summary(ru):    æÁÊÌÙ ÒÁÚÒÁÂÏÔËÉ ÉÇÒ ÐÏÄ GNOME
76 Summary(uk):    æÁÊÌÉ ÒÏÚÒÏÂËÉ ¦ÇҠЦĠGNOME
77 Group:          X11/Development/Libraries
78 Requires:       %{name} = %{epoch}:%{version}-%{release}
79 Requires:       gtk+2-devel >= 2:2.4.3
80
81 %description devel
82 GNOME games libraries - header files.
83
84 Right now this is just stuff to develop care games. I think.
85
86 %description devel -l pl
87 Pliki nag³ówkowe do tworzenia programów opartych o GNOME games.
88
89 %description devel -l uk
90 ðÁËÅÔ gnome-games-devel ×ÓÔÁÎÏ×ÌÀ¤ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ¦ÇÏÒ
91 ЦĠGNOME.
92
93 %description devel -l ru
94 ðÁËÅÔ gnome-games-devel ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ
95 ÒÁÚÒÁÂÏÔËÉ ÉÇÒ ÐÏÄ GNOME.
96
97 %package static
98 Summary:        GNOME games static libraries
99 Summary(pl):    Biblioteki statyczne do GNOME games
100 Group:          X11/Development/Libraries
101 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
102
103 %description static
104 GNOME games static libraries.
105
106 %description static -l pl
107 Biblioteki statyczne do GNOME games.
108
109 %prep
110 %setup -q
111 %patch0 -p1
112 %patch1 -p1
113
114 mv po/{no,nb}.po
115
116 %build
117 cp -f /usr/share/automake/config.sub .
118 glib-gettextize --copy --force
119 intltoolize --copy --force
120 %{__libtoolize}
121 %{__aclocal} -I %{_aclocaldir}/gnome2-macros
122 %{__autoheader}
123 %{__autoconf}
124 %{__automake}
125 %configure
126 %{__make}
127
128 %install
129 rm -rf $RPM_BUILD_ROOT
130
131 %{__make} install \
132         DESTDIR=$RPM_BUILD_ROOT \
133         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
134
135 %find_lang %{name} --with-gnome --all-name
136
137 %clean
138 rm -rf $RPM_BUILD_ROOT
139
140 %post
141 /sbin/ldconfig
142 /usr/bin/scrollkeeper-update
143 %gconf_schema_install
144
145 for i in glines gnibbles.1.0 gnibbles.1.1 gnibbles.2.0 gnibbles.2.1 \
146         gnibbles.3.0 gnibbles.3.1 gnibbles.4.0 gnibbles.4.1 \
147         gnobots2.classic_robots-safe gnobots2.classic_robots-super-safe \
148         gnobots2.classic_robots gnobots2.nightmare-safe \
149         gnobots2.nightmare-super-safe gnobots2.nightmare \
150         gnobots2.robots2-safe gnobots2.robots2-super-safe \
151         gnobots2.robots2 gnobots2.robots2_easy-safe \
152         gnobots2.robots2_easy-super-safe gnobots2.robots2_easy \
153         gnobots2.robots_with_safe_teleport-safe \
154         gnobots2.robots_with_safe_teleport-super-safe \
155         gnobots2.robots_with_safe_teleport gnome-stones gnometris \
156         gnomine.Custom gnomine.Large gnomine.Medium gnomine.Small \
157         gnotravex.2x2 gnotravex.3x3 gnotravex.4x4 gnotravex.5x5 \
158         gnotravex.6x6 gnotski.1 gnotski.11 gnotski.12 gnotski.13 gnotski.14 \
159         gnotski.15 gnotski.16 gnotski.17 gnotski.2 gnotski.21 gnotski.22 \
160         gnotski.23 gnotski.24 gnotski.25 gnotski.26 gnotski.3 gnotski.4 \
161         gnotski.5 gnotski.6 gnotski.7 gtali mahjongg.bridges mahjongg.cloud \
162         mahjongg.confounding mahjongg.difficult mahjongg.dragon mahjongg.easy \
163         mahjongg.pyramid mahjongg.tictactoe same-gnome; do
164         if [ ! -f %{_gamesdir}/$i.scores ]; then
165                 touch %{_gamesdir}/$i.scores
166                 chown root:games %{_gamesdir}/$i.scores
167                 chmod 664 %{_gamesdir}/$i.scores
168         fi
169 done
170
171 %postun
172 /sbin/ldconfig
173 /usr/bin/scrollkeeper-update
174
175 %files -f %{name}.lang
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog NEWS README
178 %config %{_sysconfdir}/sound/events/*
179 %{_sysconfdir}/gconf/schemas/*
180
181 %attr(755,root,root) %{_bindir}/gataxx
182 %attr(755,root,root) %{_bindir}/sol
183 %attr(755,root,root) %{_bindir}/gnect
184 %attr(755,root,root) %{_bindir}/blackjack
185 %attr(2755,root,games) %{_bindir}/glines
186 %attr(2755,root,games) %{_bindir}/gnibbles
187 %attr(2755,root,games) %{_bindir}/gnobots2
188 %attr(2755,root,games) %{_bindir}/gnome-stones
189 %attr(2755,root,games) %{_bindir}/gnometris
190 %attr(2755,root,games) %{_bindir}/gnomine
191 %attr(2755,root,games) %{_bindir}/gnotravex
192 %attr(2755,root,games) %{_bindir}/gnotski
193 %attr(2755,root,games) %{_bindir}/gtali
194 %attr(2755,root,games) %{_bindir}/iagno
195 %attr(2755,root,games) %{_bindir}/mahjongg
196 %attr(2755,root,games) %{_bindir}/same-gnome
197
198 %attr(755,root,root) %{_libdir}/lib*.so.*.*
199 %dir %{_libdir}/gnome-stones
200 %dir %{_libdir}/gnome-stones/objects
201 %attr(755,root,root) %{_libdir}/gnome-stones/objects/lib*.so*
202 %{_libdir}/gnome-stones/objects/lib*.la
203
204 %{_datadir}/gnome-stones
205 %{_datadir}/sol-games
206 %{_datadir}/blackjack
207
208 %{_datadir}/gnome-stonesrc
209 %lang(ko) %{_datadir}/gnome-stonesrc.ko
210
211 %{_datadir}/mime-info/*
212 %{_pixmapsdir}/*
213 %{_datadir}/sounds/*
214 %{_desktopdir}/*
215 %{_datadir}/gnect
216 %{_datadir}/gnibbles
217 %{_datadir}/gnobots2
218
219 %{_omf_dest_dir}/%{name}
220 %attr(664,root,games) %ghost %{_gamesdir}/*
221
222 %files devel
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/lib*.so
225 %{_libdir}/lib*.la
226 %{_includedir}/*
227
228 %files static
229 %defattr(644,root,root,755)
230 %{_libdir}/lib*.a
231 %{_libdir}/gnome-stones/objects/lib*.a
This page took 0.051971 seconds and 4 git commands to generate.