]> git.pld-linux.org Git - packages/ggz-grubby.git/blame - ggz-grubby.spec
perl 5.38.0 rebuild
[packages/ggz-grubby.git] / ggz-grubby.spec
CommitLineData
5c1c6879
JB
1#
2# Conditional build:
3%bcond_without silc # SILC support
4#
5Summary: Grubby - GGZ chat bot
6Summary(pl.UTF-8): Grubby - bot dla chatu GGZ
7Name: ggz-grubby
8Version: 0.0.14.1
e2af2676 9Release: 20
5c1c6879
JB
10License: GPL v2+
11Group: X11/Applications/Games
12Source0: http://mirrors.dotsrc.org/ggzgamingzone/ggz/%{version}/%{name}-%{version}.tar.gz
13# Source0-md5: 32f8a5992ce4c9d6fde19512ea0eee5c
14Patch0: %{name}-silc.patch
15Patch1: %{name}-link.patch
16Patch2: %{name}-libdir.patch
17Patch3: %{name}-ruby.patch
18URL: http://www.ggzgamingzone.org/
19BuildRequires: autoconf >= 2.50
20BuildRequires: automake
21BuildRequires: ggz-client-libs-devel >= 0.0.14
22BuildRequires: libggz-devel >= 0.0.14
23BuildRequires: libtool
24BuildRequires: perl-devel >= 1:5.6.0
25# not ready
26#BuildRequires: php-devel >= 4
27BuildRequires: pkgconfig
28BuildRequires: python-devel >= 2.2
29BuildRequires: ruby-devel >= 1.9
30%{?with_silc:BuildRequires: silc-toolkit-devel >= 1.1}
31BuildRequires: tcl-devel >= 8.5
01e38792 32Requires(post,preun): ggz-client-libs >= 0.0.14
da6ebcc9 33Requires: ggz-client-libs >= 0.0.14
5c1c6879
JB
34Requires: libggz-devel >= 0.0.14
35%{?with_silc:Requires: silc-toolkit >= 1.1}
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39This package contains grubby, the almighty chatbot. It's a single
40binary, but it is very flexible and extensible by plugins and scripts.
41
42%description -l pl.UTF-8
43Ten pakiet zawiera program grubby - wszechmocnego bota dla czatu GGZ.
44Jest to pojedyncza binarka, ale jest bardzo elastyczna i rozszerzalna
45poprzez 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
64rm -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
01e38792
JB
71# collect modules.ggz pieces
72install -d $RPM_BUILD_ROOT%{_datadir}/ggz/ggz-config
73cp -p games/guru-chess/module.dsc $RPM_BUILD_ROOT%{_datadir}/ggz/ggz-config/guru-chess.dsc
74cp -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
5c1c6879
JB
77%find_lang grubby
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
01e38792
JB
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
87if [ "$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
90fi
91
5c1c6879
JB
92%files -f grubby.lang
93%defattr(644,root,root,755)
94%doc AUTHORS ChangeLog NEWS README README.GGZ TODO
5c1c6879
JB
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
01e38792
JB
104%{_datadir}/ggz/ggz-config/guru-chess.dsc
105%{_datadir}/ggz/ggz-config/guru-ttt.dsc
5c1c6879
JB
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.10469 seconds and 4 git commands to generate.