]> git.pld-linux.org Git - packages/ggz-gtk-games.git/blob - ggz-gtk-games.spec
- post/preun fixes; release 2
[packages/ggz-gtk-games.git] / ggz-gtk-games.spec
1 Summary:        GNOME core client for GGZ
2 Summary(pl.UTF-8):      Klient GGZ dla środowiska GNOME
3 Name:           ggz-gtk-games
4 Version:        0.0.14.1
5 Release:        2
6 License:        GPL v2+
7 Group:          X11/Applications/Games
8 Source0:        http://mirrors.dotsrc.org/ggzgamingzone/ggz/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  72049279f3f2d1a0a0b5196331867754
10 Patch0:         %{name}-nls-domains.patch
11 Patch1:         %{name}-format.patch
12 URL:            http://www.ggzgamingzone.org/
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  gettext-devel
16 BuildRequires:  ggz-client-libs-devel >= 0.0.14
17 BuildRequires:  gtk+2-devel >= 1:2.0.0
18 BuildRequires:  libggz-devel >= 0.0.14
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 Requires(post,preun):   ggz-client-libs >= 0.0.14
22 Requires:       ggz-client-libs >= 0.0.14
23 Requires:       libggz-devel >= 0.0.14
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This is the GNOME core client for GGZ.
28
29 %description -l pl.UTF-8
30 Ten pakiet to klient GGZ dla środowiska GNOME.
31
32 %prep
33 %setup -q
34 %patch0 -p1
35 %patch1 -p1
36
37 %build
38 %{__aclocal} -I m4 -I m4/ggz
39 %{__autoconf}
40 %{__autoheader}
41 %{__automake}
42 %configure
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 # collect modules.ggz pieces
52 install -d $RPM_BUILD_ROOT%{_datadir}/ggz/ggz-config
53 for d in chess chinese-checkers combat dots ggzcards hastings reversi spades tictactoe ; do
54         cp -p ${d}/module.dsc $RPM_BUILD_ROOT%{_datadir}/ggz/ggz-config/${d}.dsc
55 done
56 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
57
58 # ggz* domains
59 %find_lang %{name} --all-name
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 for d in chess chinese-checkers combat dots ggzcards hastings reversi spades tictactoe ; do
66         %{_bindir}/ggz-config --install --modfile=%{_datadir}/ggz/ggz-config/${d}.dsc --force
67 done
68
69 %preun
70 if [ "$1" = "0" ]; then
71         for d in chess chinese-checkers combat dots ggzcards hastings reversi spades tictactoe ; do
72                 %{_bindir}/ggz-config --remove --modfile=%{_datadir}/ggz/ggz-config/${d}.dsc
73         done
74 fi
75
76 %files -f %{name}.lang
77 %defattr(644,root,root,755)
78 %doc AUTHORS ChangeLog NEWS QuickStart.GGZ README README.GGZ TODO
79 %attr(755,root,root) %{_libdir}/ggz/ggz.ccheckers
80 %attr(755,root,root) %{_libdir}/ggz/ggz.chess
81 %attr(755,root,root) %{_libdir}/ggz/ggz.combat
82 %attr(755,root,root) %{_libdir}/ggz/ggz.dots
83 %attr(755,root,root) %{_libdir}/ggz/ggz.ggzcards
84 %attr(755,root,root) %{_libdir}/ggz/ggz.hastings
85 %attr(755,root,root) %{_libdir}/ggz/ggz.reversi
86 %attr(755,root,root) %{_libdir}/ggz/ggz.spades
87 %attr(755,root,root) %{_libdir}/ggz/ggz.ttt
88 %{_datadir}/ggz/ccheckers
89 %{_datadir}/ggz/chess
90 %{_datadir}/ggz/combat
91 %{_datadir}/ggz/hastings
92 %{_datadir}/ggz/pixmaps
93 %{_datadir}/ggz/reversi
94 %{_datadir}/ggz/tictactoe
95 %{_datadir}/ggz/ggz-config/chess.dsc
96 %{_datadir}/ggz/ggz-config/chinese-checkers.dsc
97 %{_datadir}/ggz/ggz-config/combat.dsc
98 %{_datadir}/ggz/ggz-config/dots.dsc
99 %{_datadir}/ggz/ggz-config/ggzcards.dsc
100 %{_datadir}/ggz/ggz-config/hastings.dsc
101 %{_datadir}/ggz/ggz-config/reversi.dsc
102 %{_datadir}/ggz/ggz-config/spades.dsc
103 %{_datadir}/ggz/ggz-config/tictactoe.dsc
This page took 0.10907 seconds and 3 git commands to generate.