]> git.pld-linux.org Git - packages/ggz-grubby.git/blob - ggz-grubby.spec
perl 5.38.0 rebuild
[packages/ggz-grubby.git] / ggz-grubby.spec
1 #
2 # Conditional build:
3 %bcond_without  silc    # SILC support
4 #
5 Summary:        Grubby - GGZ chat bot
6 Summary(pl.UTF-8):      Grubby - bot dla chatu GGZ
7 Name:           ggz-grubby
8 Version:        0.0.14.1
9 Release:        14
10 License:        GPL v2+
11 Group:          X11/Applications/Games
12 Source0:        http://mirrors.dotsrc.org/ggzgamingzone/ggz/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  32f8a5992ce4c9d6fde19512ea0eee5c
14 Patch0:         %{name}-silc.patch
15 Patch1:         %{name}-link.patch
16 Patch2:         %{name}-libdir.patch
17 Patch3:         %{name}-ruby.patch
18 URL:            http://www.ggzgamingzone.org/
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  ggz-client-libs-devel >= 0.0.14
22 BuildRequires:  libggz-devel >= 0.0.14
23 BuildRequires:  libtool
24 BuildRequires:  perl-devel >= 1:5.6.0
25 # not ready
26 #BuildRequires: php-devel >= 4
27 BuildRequires:  pkgconfig
28 BuildRequires:  python-devel >= 2.2
29 BuildRequires:  ruby-devel >= 1.9
30 %{?with_silc:BuildRequires:     silc-toolkit-devel >= 1.1}
31 BuildRequires:  tcl-devel >= 8.5
32 Requires(post,preun):   ggz-client-libs >= 0.0.14
33 Requires:       ggz-client-libs >= 0.0.14
34 Requires:       libggz-devel >= 0.0.14
35 %{?with_silc:Requires:  silc-toolkit >= 1.1}
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 This package contains grubby, the almighty chatbot. It's a single
40 binary, but it is very flexible and extensible by plugins and scripts.
41
42 %description -l pl.UTF-8
43 Ten pakiet zawiera program grubby - wszechmocnego bota dla czatu GGZ.
44 Jest to pojedyncza binarka, ale jest bardzo elastyczna i rozszerzalna
45 poprzez wtyczki i skrypty.
46
47 %prep
48 %setup -q
49 %patch0 -p1
50 %patch1 -p1
51 %patch2 -p1
52 %patch3 -p1
53
54 %build
55 %{__libtoolize}
56 %{__aclocal} -I m4 -I m4/ggz
57 %{__autoconf}
58 %{__autoheader}
59 %{__automake}
60 %configure
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %{__rm} $RPM_BUILD_ROOT%{_libdir}/grubby/*modules/*.{la,a}
70
71 # collect modules.ggz pieces
72 install -d $RPM_BUILD_ROOT%{_datadir}/ggz/ggz-config
73 cp -p games/guru-chess/module.dsc $RPM_BUILD_ROOT%{_datadir}/ggz/ggz-config/guru-chess.dsc
74 cp -p games/guru-ttt/module.dsc $RPM_BUILD_ROOT%{_datadir}/ggz/ggz-config/guru-ttt.dsc
75 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
76
77 %find_lang grubby
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post
83 %{_bindir}/ggz-config --install --modfile=%{_datadir}/ggz/ggz-config/guru-chess.dsc --force
84 %{_bindir}/ggz-config --install --modfile=%{_datadir}/ggz/ggz-config/guru-ttt.dsc --force
85
86 %preun
87 if [ "$1" = "0" ]; then
88         %{_bindir}/ggz-config --remove --modfile=%{_datadir}/ggz/ggz-config/guru-chess.dsc
89         %{_bindir}/ggz-config --remove --modfile=%{_datadir}/ggz/ggz-config/guru-ttt.dsc
90 fi
91
92 %files -f grubby.lang
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog NEWS README README.GGZ TODO
95 %attr(755,root,root) %{_bindir}/grubby
96 %attr(755,root,root) %{_bindir}/grubby-config
97 %attr(755,root,root) %{_libdir}/ggz/guru-chess
98 %attr(755,root,root) %{_libdir}/ggz/guru-ttt
99 %dir %{_libdir}/grubby
100 %dir %{_libdir}/grubby/coremodules
101 %attr(755,root,root) %{_libdir}/grubby/coremodules/libguru_*.so
102 %dir %{_libdir}/grubby/modules
103 %attr(755,root,root) %{_libdir}/grubby/modules/libgurumod_*.so
104 %{_datadir}/ggz/ggz-config/guru-chess.dsc
105 %{_datadir}/ggz/ggz-config/guru-ttt.dsc
106 %dir %{_datadir}/grubby
107 %attr(755,root,root) %{_datadir}/grubby/*.pl
108 %attr(755,root,root) %{_datadir}/grubby/*.rb
109 %{_mandir}/man1/grubby-config.1*
110 %{_mandir}/man6/grubby.6*
111 %lang(de) %{_mandir}/de/man1/grubby-config.1*
112 %lang(de) %{_mandir}/de/man6/grubby.6*
This page took 0.060993 seconds and 3 git commands to generate.