]> git.pld-linux.org Git - packages/ggz-server.git/blob - ggz-server.spec
- more BRs, devel deps
[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
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post
88 /sbin/ldconfig
89 /sbin/chkconfig --add ggzd
90 %service ggzd restart
91
92 %preun
93 if [ "$1" = "0" ]; then
94         %service ggzd stop
95         /sbin/chkconfig --del ggzd
96 fi
97
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example
103 %attr(755,root,root) %{_bindir}/ggzd*
104 %attr(755,root,root) %{_libdir}/ggzd
105 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/lib*.so.6
107 %attr(754,root,root) /etc/rc.d/init.d/ggzd
108 %{_datadir}/ggz
109 %{_mandir}/man6/*.6*
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so
114 %{_libdir}/lib*.la
115 %{_includedir}/*
116 %{_mandir}/man3/*.3*
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/lib*.a
This page took 0.045363 seconds and 4 git commands to generate.