]> git.pld-linux.org Git - packages/ggz-server.git/blob - ggz-server.spec
- include *.room and *.dsc files
[packages/ggz-server.git] / ggz-server.spec
1 # TODO:
2 # - update for db 4.6 (now it's ready for 4.[01234])
3 # - fix init script
4 Summary:        Main GGZ server
5 Summary(pl.UTF-8):      Główny serwer GGZ
6 Name:           ggz-server
7 Version:        0.0.14
8 Release:        0.1
9 License:        GPL v2+
10 Group:          Applications
11 Source0:        http://ftp.belnet.be/packages/ggzgamingzone/ggz/0.0.14/%{name}-%{version}.tar.gz
12 # Source0-md5:  7e30eedefb69834d9f76fdf7fed646ea
13 Source1:        %{name}.init
14 URL:            http://www.ggzgamingzone.org/
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  avahi-devel
18 BuildRequires:  db-devel >= 4
19 BuildRequires:  expat-devel >= 1.95
20 BuildRequires:  libggz-devel >= 0.0.14
21 BuildRequires:  libtool
22 BuildRequires:  rpmbuild(macros) >= 1.268
23 Requires(post,preun):   /sbin/chkconfig
24 Requires:       rc-scripts
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This package contains the main GGZ server, some administrative
29 utilities, a game server handling library and lots of game servers.
30
31 %description -l pl.UTF-8
32 Ta paczka zawiera główny serwer GGZ, kilka narzędzi
33 administracyjnych, bibliotekę sterującą serwerem oraz dużo
34 serwerów gier.
35
36 %package devel
37 Summary:        Header files for ggz-server library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ggz-server
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       libggz-devel >= 0.0.14
42
43 %description devel
44 Header files for ggz-server library.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki ggz-server.
48
49 %package static
50 Summary:        Static ggz-server library
51 Summary(pl.UTF-8):      Statyczna biblioteka ggz-server
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static ggz-server library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka ggz-server.
60
61 %prep
62 %setup -q
63
64 %build
65 %{__libtoolize}
66 %{__aclocal} -I m4 -I m4/ggz
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,ggzd}
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
82
83 :> $RPM_BUILD_ROOT/etc/ggzd/ggzd.conf
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post
89 /sbin/ldconfig
90 /sbin/chkconfig --add ggzd
91 %service ggzd restart
92
93 %preun
94 if [ "$1" = "0" ]; then
95         %service ggzd stop
96         /sbin/chkconfig --del ggzd
97 fi
98
99 %postun -p /sbin/ldconfig
100
101 %files
102 %defattr(644,root,root,755)
103 %dir %{_sysconfdir}/ggzd
104 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggzd/*.conf
105 %doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example
106 %attr(755,root,root) %{_bindir}/ggzd*
107 %attr(755,root,root) %{_libdir}/ggzd
108 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/lib*.so.6
110 %attr(754,root,root) /etc/rc.d/init.d/ggzd
111 %{_datadir}/ggz
112 %{_mandir}/man6/*.6*
113 %dir %{_sysconfdir}/ggzd/games
114 %dir %{_sysconfdir}/ggzd/rooms
115 %{_sysconfdir}/ggzd/ggzd.motd
116 %{_sysconfdir}/ggzd/games/*.dsc
117 %{_sysconfdir}/ggzd/rooms/*.room
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/lib*.so
122 %{_libdir}/lib*.la
123 %{_includedir}/*
124 %{_mandir}/man3/*.3*
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/lib*.a
This page took 0.070679 seconds and 4 git commands to generate.