]> git.pld-linux.org Git - packages/eggdrop.git/blobdiff - eggdrop.spec
- adapterized
[packages/eggdrop.git] / eggdrop.spec
index a83c9d1bacd2252b9f138c0579ba83d898dabba6..5750cffefdfc0eed63deee338e7d1dc8b1ffd3d6 100644 (file)
@@ -1,14 +1,57 @@
 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:       2.0.0
-Release:       1.ALPHA
+Version:       1.6.13
+Release:       4
 License:       GPL
 Group:         Applications/Communications
-Source0:       http://www.eggdropsrus.co.uk/downloads/%{name}%{version}-ALPHA.tar.gz
-Source1:       %{name}.sh
-Patch0:                %{name}-pld.patch
-URL:           http://www.eggdrop.net/
+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)
 
@@ -19,7 +62,28 @@ 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.
+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
@@ -27,56 +91,104 @@ kanale i zajmuje si
 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}-ALPHA
-%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="%{rpmcflags}" \
-./configure %{_target_platform} \
-       --prefix=%{_bindir}
+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}
 
-# Dziwny problem z -ldir w module filesys
-cd src/mod/filesys.mod
-rm -f config.cache config.log
+%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}}
 
-CFLAGS="%{rpmcflags}" \
-./configure %{_target_platform}
+%{__make} DESTDIR="$RPM_BUILD_ROOT" install
 
-cd ../../..
-CFLAGS="%{rpmcflags}" %{__make}
+mv $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name}
 
-%install
-rm -rf $RPM_BUILD_ROOT
+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}/
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/eggdrop,%{_mandir}/man1}
+cp -a $RPM_BUILD_ROOT/doc/modules $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
-%{__make} install DEST=$RPM_BUILD_ROOT%{_libdir}/eggdrop
+cp -a $RPM_BUILD_ROOT/text/* \
+       $RPM_BUILD_ROOT/help/ \
+       $RPM_BUILD_ROOT/scripts/ \
+       $RPM_BUILD_ROOT/language/ \
+       $RPM_BUILD_ROOT%{_datadir}/%{name}/
 
-rm -rf `find $RPM_BUILD_ROOT%{_libdir}/eggdrop -name CVS`
-rm -rf `find $RPM_BUILD_DIR/%{name}%{version}-ALPHA/doc -name CVS`
-mv -f $RPM_BUILD_ROOT%{_libdir}/eggdrop/doc/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
-rm -rf $RPM_BUILD_ROOT%{_libdir}/eggdrop/doc/*
-install $RPM_SOURCE_DIR/eggdrop.sh $RPM_BUILD_ROOT%{_bindir}/eggdrop
+cp -a $RPM_BUILD_ROOT/modules/* \
+       $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/
 
-gzip -9nf FEATURES README doc/{patch.howto,tricks,[A-Z]*,*.doc}
+# 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 
+%files
 %defattr(644,root,root,755)
-%doc FEATURES.gz README.gz doc/*.gz doc/html
-%attr(755,root,root) %{_bindir}/*
-%{_libdir}/eggdrop/filesys
-%{_libdir}/eggdrop/help
-%{_libdir}/eggdrop/language
-%ghost %{_libdir}/eggdrop/modules
-%{_libdir}/eggdrop/modules-%{version}
-%{_libdir}/eggdrop/scripts
-%attr(755,root,root) %{_libdir}/eggdrop/eggdrop2-%{version}
-%ghost %{_libdir}/eggdrop/eggdrop2
-%{_libdir}/eggdrop/eggdrop2.conf.*
-%{_libdir}/eggdrop/motd
-%{_mandir}/man*/*
+%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.046 seconds and 4 git commands to generate.