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