]> git.pld-linux.org Git - packages/ggz-server.git/blob - ggz-server.spec
- BR: libggz-devel
[packages/ggz-server.git] / ggz-server.spec
1 # TODO:
2 # - check *.dsc and *.room files. Are we need them?
3
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:  libggz >= 0.0.14
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This package contains the main GGZ server, some administrative
20 utilities, a game server handling library and lots of game servers.
21
22 %description -l pl.UTF-8
23 Ta paczka zawiera główny serwer GGZ, kilka narzędzi
24 administracyjnych, bibliotekę sterującą serwerem oraz dużo
25 serwerów gier.
26
27 %package devel
28 Summary:        Header files for ggz-server library
29 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ggz-server
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32
33 %description devel
34 Header files for ggz-server library.
35
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe biblioteki ggz-server.
38
39 %package static
40 Summary:        Static ggz-server library
41 Summary(pl.UTF-8):      Statyczna biblioteka ggz-server
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}-%{release}
44
45 %description static
46 Static ggz-server library.
47
48 %description static -l pl.UTF-8
49 Statyczna biblioteka ggz-server.
50
51 %prep
52 %setup -q
53
54 %build
55 %{__aclocal} -I m4/ -I m4/ggz/
56 %{__autoconf}
57 %{__autoheader}
58 %{__automake}
59 %configure
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 /sbin/chkconfig --add ggzd
77 %service ggzd restart
78
79 %preun
80 if [ "$1" = "0" ]; then
81         %service ggzd stop
82         /sbin/chkconfig --del ggzd
83 fi
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example
88 %attr(755,root,root) %{_bindir}/ggzd*
89 %attr(755,root,root) %{_libdir}/ggzd
90 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
91 %attr(755,root,root) %{_libdir}/lib*.so.6
92 %attr(754,root,root) /etc/rc.d/init.d/ggzd
93 %{_datadir}/ggz/
94 %{_mandir}/man6/*.6*
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/lib*.so
99 %{_libdir}/lib*.la
100 %{_includedir}/*
101 %{_mandir}/man3/*.3*
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/lib*.a
This page took 0.158572 seconds and 4 git commands to generate.