1 |
Name: eggdrop |
2 |
Version: 1.6.21 |
3 |
Release: %mkrel 3 |
4 |
Summary: IRC bot, written in C |
5 |
Source0: ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/%{name}%{version}.tar.bz2 |
6 |
Patch4: eggdrop1.6.19-fix-str-fmt.patch |
7 |
Group: Networking/IRC |
8 |
BuildRequires: tcl |
9 |
BuildRequires: tcl-devel |
10 |
BuildRequires: perl |
11 |
URL: http://www.eggheads.org/ |
12 |
License: GPLv2+ |
13 |
|
14 |
%description |
15 |
Eggdrop is an IRC bot, written in C. If you don't know what IRC is, |
16 |
this is probably not whatever you're looking for! Eggdrop, being a |
17 |
bot, sits on a channel and takes protective measures: to keep the |
18 |
channel from being taken over (in the few ways that anything CAN), |
19 |
|
20 |
to recognize banished users or sites and reject them, to recognize |
21 |
privileged users and let them gain ops, etc. |
22 |
|
23 |
%prep |
24 |
%setup -q -n eggdrop%{version} |
25 |
%patch4 -p0 -b .str |
26 |
|
27 |
%build |
28 |
export CPPFLAGS="%{optflags} -DHAVE_TCL_THREADS" |
29 |
#any optimizations on PPC break bots |
30 |
%ifnarch ppc |
31 |
export CFLAGS="%optflags" |
32 |
%endif |
33 |
%configure2_5x --prefix=%{_prefix} --libdir=%{_libdir} |
34 |
|
35 |
make config |
36 |
|
37 |
#sed -i -e "s#LD = gcc#LD = gcc %ldflags#g" Makefile |
38 |
|
39 |
%make LD="gcc %ldflags" \ |
40 |
SHLIB_LD="gcc -shared -nostartfiles %ldflags" \ |
41 |
MOD_LD="gcc %ldflags" |
42 |
|
43 |
%install |
44 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/eggdrop |
45 |
mkdir -p $RPM_BUILD_ROOT%{_libdir} |
46 |
mkdir -p $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version} |
47 |
mkdir -p $RPM_BUILD_ROOT%{_mandir} |
48 |
|
49 |
make install prefix=$RPM_BUILD_ROOT%{_libdir}/eggdrop |
50 |
cd $RPM_BUILD_ROOT |
51 |
mv $RPM_BUILD_ROOT%{_libdir}/eggdrop/doc/man1/ $RPM_BUILD_ROOT%{_mandir} |
52 |
|
53 |
#rpm installation complains otherwise due to rpm looking up the executables.. |
54 |
perl -pi -e s":/path/to/executable/eggdrop:%{_libdir}/eggdrop/eggdrop:" $RPM_BUILD_DIR/eggdrop%{version}/eggdrop.conf |
55 |
cp -fR $RPM_BUILD_DIR/eggdrop%{version}/eggdrop.conf $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/ |
56 |
#cp -Rf $RPM_BUILD_DIR/eggdrop%{version}/eggdrop.simple.conf $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/ |
57 |
cp -Rf $RPM_BUILD_DIR/eggdrop%{version}/scripts/botchk $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/ |
58 |
#cp -fR $RPM_BUILD_DIR/eggdrop%{version}/eggdrop.advanced.conf $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/ |
59 |
#cp -fR $RPM_BUILD_DIR/eggdrop%{version}/eggdrop.complete.conf $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/ |
60 |
#grumble rpm grumble wanted to require /path/to/eggdrop |
61 |
#bzip2 -9f $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/eggdrop.conf.dist |
62 |
|
63 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/eggdrop/filesys |
64 |
cp -Rf $RPM_BUILD_ROOT%{_libdir}/eggdrop/doc/* $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/ |
65 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/eggdrop/doc/ |
66 |
cp $RPM_BUILD_ROOT%{_libdir}/eggdrop/README $RPM_BUILD_ROOT%{_docdir}/eggdrop-%{version}/ |
67 |
|
68 |
# removing uneeded stuff |
69 |
rm -rf %{buildroot}%{_libdir}/eggdrop/README |
70 |
|
71 |
%files |
72 |
%dir %{_libdir}/eggdrop |
73 |
%dir %{_libdir}/eggdrop/language |
74 |
%dir %{_libdir}/eggdrop/modules-%{version} |
75 |
%dir %{_libdir}/eggdrop/help |
76 |
%dir %{_libdir}/eggdrop/help/msg |
77 |
%dir %{_libdir}/eggdrop/help/set |
78 |
%dir %{_libdir}/eggdrop/scripts |
79 |
%dir %{_libdir}/eggdrop/logs |
80 |
%dir %{_libdir}/eggdrop/text |
81 |
%{_libdir}/eggdrop/language/*.lang |
82 |
%{_libdir}/eggdrop/text/* |
83 |
%{_libdir}/eggdrop/logs/* |
84 |
%{_libdir}/eggdrop/modules-%{version}/*.so |
85 |
%{_libdir}/eggdrop/eggdrop-%{version} |
86 |
%{_libdir}/eggdrop/eggdrop |
87 |
%{_libdir}/eggdrop/help/*.help |
88 |
%{_libdir}/eggdrop/help/msg/*.help |
89 |
%{_libdir}/eggdrop/help/set/*.help |
90 |
%{_libdir}/eggdrop/scripts/CONTENTS |
91 |
%{_libdir}/eggdrop/scripts/*.tcl |
92 |
%{_libdir}/eggdrop/scripts/botchk |
93 |
%{_libdir}/eggdrop/scripts/autobotchk |
94 |
%{_libdir}/eggdrop/scripts/weed |
95 |
%{_libdir}/eggdrop/eggdrop.conf |
96 |
%{_mandir}/man1/* |
97 |
|
98 |
%doc %{_docdir}/* |
99 |
%doc %{_libdir}/eggdrop/modules |
100 |
|
101 |
|