]> git.pld-linux.org Git - packages/eggdrop.git/blobdiff - eggdrop.spec
- adapterized
[packages/eggdrop.git] / eggdrop.spec
index 6feb555de0e3c3ff4911693b1c1e75f5f747bd63..5750cffefdfc0eed63deee338e7d1dc8b1ffd3d6 100644 (file)
-Summary:     Eggdrop is an IRC bot, written in C
-Name:        eggdrop
-%define versionmajor 2.0.0
-%define versionminor -ALPHA
-Version:     %{versionmajor}%{versionminor}
-Release:     1
-Copyright:   GPL
-Group:       Applications/Communications
-Group(pl):   Aplikacje/Komunikacja
-Source0:     %{name}%{version}.tar.gz
-Source1:     eggdrop.sh
-Patch:       eggdrop-pld.patch
-URL:         http://www.eggdrop.net/
-Requires:    tcl
-BuildRoot:   /tmp/buildroot-%{name}-%{version}
-Summary(pl): Eggdrop jest botem IRC napisanym w C
+Summary:       Eggdrop is an IRC bot, written in C
+Summary(pl):   Eggdrop jest botem IRC napisanym w C
+Summary(pt_BR):        Bot de IRC escrito em C
+Name:          eggdrop
+Version:       1.6.13
+Release:       4
+License:       GPL
+Group:         Applications/Communications
+Source0:       ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/%{name}%{version}.tar.gz
+# PLD docs - information about changes.
+Source1:       http://pld.mysza.eu.org/sources/%{name}-README.PLD.en
+Source2:       http://pld.mysza.eu.org/sources/%{name}-README.PLD.pl
+# In order to unify filenames, following language packs and third-party modules were
+# repackaged. Some files were renamed, but none modified. Original archives can be
+# found by looking at http://www.egghelp.org/
+Source10:      %{name}-language-danish.tar.gz
+Source11:      %{name}-language-finnish.tar.gz
+Source12:      %{name}-language-italian.tar.gz
+Source13:      %{name}-language-norwegian.tar.gz
+Source14:      %{name}-language-portuguese.tar.gz
+Source15:      %{name}-language-portuguese_br.tar.gz
+Source16:      %{name}-language-romanian.tar.gz
+# Additional modules taken from various places
+Source20:      %{name}-module-away-1.0.tar.gz
+Source21:      %{name}-module-botnetop-1.0.1.tar.gz
+Source22:      %{name}-module-fakebotnet-1.3.tar.gz
+Source23:      %{name}-module-gseen-1.1.0.tar.gz
+Source24:      %{name}-module-irctree-1.1.tar.gz
+Source25:      %{name}-module-megahal-2.5.tar.gz
+Source26:      %{name}-module-stats-1.3.3dev1.tar.gz
+Source27:      %{name}-module-idea-1.0.0.tar.gz
+Source28:      %{name}-module-twofish-1.0.tar.gz
+Source29:      %{name}-module-rijndael-1.0.tar.gz
+Patch0:                %{name}-FHS.patch
+# Unofficial IPv6 patch
+Patch1:                http://www.egghelp.org/files/patches/%{name}%{version}+ipv6.patch.gz
+# Adds IPv6 variables to config file
+Patch2:                %{name}%{version}+ipv6_config.patch
+# Adds additional docs
+Patch3:                %{name}-doc_makefile.patch
+# Multilevel sharing patch - now it is possible to create *secure* multilevel
+# botnets, each bot will only accept changes to userlist from bot that acts as
+# hub to him, and rejects changes from leaves
+Patch4:                %{name}%{version}-multilevel_sharing.patch.gz
+# Unlinkedby patch - when unlinking bot from botnet, adds nickname of a person
+# that issues .unlink command to a broadcasted message
+Patch5:                %{name}%{version}-unlinkedby.patch
+# Topicprot - protects channel topic from being changed
+# This pathc was a bit modified to apply to eggdrop1.6.13
+Patch6:                %{name}%{version}-topicprot.patch
+# Adds information about additional encryption modules to config file
+Patch7:                %{name}-config_encryption.patch
+URL:           http://www.eggheads.org/
+BuildRequires: tcl-devel
+Requires:      tcl
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Eggdrop is an IRC bot, written in C.  If you don't know what IRC is,
-this is probably not whatever you're looking for!  Eggdrop, being a
+Eggdrop is an IRC bot, written in C. If you don't know what IRC is,
+this is probably not whatever you're looking for! Eggdrop, being a
 bot, sits on a channel and takes protective measures: to keep the
-channel from being taken over (in the few ways that anything CAN),
-to recognize banished users or sites and reject them, to recognize
-privileged users and let them gain ops, etc.
-Eggdrop also contains many modules and scripts, for example for
-sending files.
+channel from being taken over (in the few ways that anything CAN), to
+recognize banished users or sites and reject them, to recognize
+privileged users and let them gain ops, etc. Eggdrop also contains
+many modules and scripts, for example for sending files. Here is the
+list of new features as opposed to vanilla eggdrop:
+- Built-in IPv6 support
+- Additional modules, including:
+  - away
+  - botnetop
+  - fakebotnet
+  - gseen
+  - irctree
+  - megahal
+  - stats
+  - three new encryption modules: idea, twofish, rijndael
+- Additional language packs:
+  - dannish
+  - finnish
+  - italian
+  - norwegian
+  - portuguese
+  - brazillian portuguese
+  - romanian
+- Various small patches were applied For more information, see
+  README.PLD.en file located under %{_docdir}/%{name}-%{version}
 
 %description -l pl
-Eggdrop jest IRCowym botem napisanym w C. Eggdrop, bêd±c botem
-jest na kanale i zajmuje siê jego ochron±: zabezpieczeniem przed
-takeover-em, nadawaniem odpowiednich przywilejów zarejestrowanym
-u¿ytkownikom, pilnowanie tzw. banów. itp.
-Eggdrop poza tymi funkcjami posiada tak¿e wiele dodatków, jak
-przesy³anie plików czy inne skrypty dla rozrywki.
+Eggdrop jest IRCowym botem napisanym w C. Eggdrop, bêd±c botem jest na
+kanale i zajmuje siê jego ochron±: zabezpieczeniem przed przejêciem,
+nadawaniem odpowiednich przywilejów zarejestrowanym u¿ytkownikom,
+pilnowanie tzw. banów itp. Eggdrop poza tymi funkcjami posiada tak¿e
+wiele dodatków, jak przesy³anie plików czy inne skrypty dla rozrywki.
+Oto lista nowych mo¿liwo¶ci w odró¿nieniu od 'czystego' eggdropa:
+- Wbudowane wsparcie dla IPv6
+- Dodatkowe modu³y, takie jak:
+  - away
+  - botnetop
+  - fakebotnet
+  - gseen
+  - irctree
+  - megahal
+  - stats
+  - trzy nowe modu³y szyfruj±ce: idea, twofish, rijndael
+- Dodatkowe
+  - duñski
+  - fiñski
+  - w³oski
+  - norweski
+  - portugalski
+  - brazylijska odmiana portugalskiego
+  - rumuñski
+- Zaaplikowano rózne mniejsze lub wiêksze ³aty Wiêcej informacji
+  znajdziesz w pliku README.PLD.pl znajduj±cym siê w katalogu
+  %{_docdir}/%{name}-%{version}
+
+%description -l pt_BR
+Eggdrop é um bot de IRC, escrito em linguagem C.
+
+Eggdrop, sendo um bot, permanece em um canal e toma medidas de
+proteç?o: evitando que o canal seja tomado (usando as poucas maneiras
+possíveis), reconhecendo usuários ou sites expulsos e os rejeitando,
+reconhecendo usuários privilegiados e permitindo que estes recebam OPS
+etc.
 
 %prep
-%setup -q -n %{name}%{version}
-%patch -p1
+%setup -q -n %{name}%{version} -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28 -a29
+%patch0 -p1
+%patch1 -p1
+%patch2 -p0
+%patch3 -p0
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p0
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" \
-./configure %{_target} \
-       --prefix=/usr/bin
-# Dziwny problem z -ldir w module filesys
-cd src/mod/filesys.mod
-rm -f config.cache config.log
-CFLAGS="$RPM_OPT_FLAGS" \
-./configure %{_target}
-cd ../../..
-CFLAGS="$RPM_OPT_FLAGS" make
+CFLAGS="%{rpmcflags}"; export CFLAGS
+# There is no sense in using configure macro, as the eggdrop makes no use
+# of provided settings, or at least of those given with --*dir options
+./configure
+%{__make} config
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/modules,%{_datadir}/%{name},%{_mandir}/man1,%{_datadir}/%{name}/{help,scripts,language},%{_datadir}/doc/%{name}-%{version}}
+
+%{__make} DESTDIR="$RPM_BUILD_ROOT" install
+
+mv $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+cp %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.PLD.en
+cp %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.PLD.pl
+
+find $RPM_BUILD_ROOT/doc -type f | egrep -v "(\.html$|\.htm$)" | xargs gzip -9nf
+gzip -9nf $RPM_BUILD_ROOT/README $RPM_BUILD_ROOT/%{name}.conf
+
+cp $RPM_BUILD_ROOT/doc/man1/%{name}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1.gz
+rm -r $RPM_BUILD_ROOT/doc/man1
+
+cp -a $RPM_BUILD_ROOT/*.gz \
+       $RPM_BUILD_ROOT/doc/* \
+       $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
+
+cp -a $RPM_BUILD_ROOT/doc/modules $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+cp -a $RPM_BUILD_ROOT/text/* \
+       $RPM_BUILD_ROOT/help/ \
+       $RPM_BUILD_ROOT/scripts/ \
+       $RPM_BUILD_ROOT/language/ \
+       $RPM_BUILD_ROOT%{_datadir}/%{name}/
 
-install -d $RPM_BUILD_ROOT/usr/{bin,lib/eggdrop,man/man1}
-make install DEST=$RPM_BUILD_ROOT/usr/lib/eggdrop
-rm -rf `find $RPM_BUILD_ROOT/usr/lib/eggdrop -name CVS`
-rm -rf $RPM_SOURCE_DIR/doc/CVS
-mv $RPM_BUILD_ROOT/usr/lib/eggdrop/doc/man1/* $RPM_BUILD_ROOT/usr/man/man1
-rm -rf $RPM_BUILD_ROOT/usr/lib/eggdrop/doc/*
-install $RPM_SOURCE_DIR/eggdrop.sh $RPM_BUILD_ROOT/usr/bin/eggdrop
+cp -a $RPM_BUILD_ROOT/modules/* \
+       $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/
 
-gzip -9nf $RPM_BUILD_ROOT/usr/man/man*/*
+# These are only to make /usr/lib/rpm/check-files happy(ier)
+# Is this somehow ugly?
+for i in modules modules-%{version} text help scripts language doc logs eggdrop.conf.gz README.gz; do
+       rm -rf $RPM_BUILD_ROOT/$i
+done
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files 
-%defattr(644, root, root, 755)
-%doc CONTENTS COPYING FEATURES INSTALL README doc/*
-%attr(755, root, root) /usr/bin/*
-/usr/lib/eggdrop/filesys
-/usr/lib/eggdrop/help
-/usr/lib/eggdrop/language
-%ghost /usr/lib/eggdrop/modules
-/usr/lib/eggdrop/modules-%{versionmajor}
-/usr/lib/eggdrop/scripts
-%attr(755, root, root) /usr/lib/eggdrop/eggdrop2-%{versionmajor}
-%ghost /usr/lib/eggdrop/eggdrop2
-/usr/lib/eggdrop/eggdrop2.conf.*
-/usr/lib/eggdrop/motd
-%attr(644, root, man) /usr/man/man*/*
-
-%changelog
-* Sat Feb 20 1999 Marek Obuchowicz <elephant@shadow.eu.org>
-[2.0.0-ALPHA-1]
- - minor spec modifications
- - added polish translations
- - compressed man files
- - added RPM_OPT_FLAGS support 
-
-* Mon Sep 7 1998  Ian Macdonald <ianmacd@xs4all.nl>
- - Upgraded to 1.3.19
+%files
+%defattr(644,root,root,755)
+%doc %{_datadir}/doc/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/%{name}
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/modules
+%attr(755,root,root) %{_libdir}/%{name}/modules/*.so
+%{_datadir}/%{name}
+%{_mandir}/man1/%{name}.1*
This page took 0.062448 seconds and 4 git commands to generate.