X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=eggdrop.spec;h=08fd7004b06e1207269d190b4e8d3834b533520f;hb=dead188d06618f75815650b1a28374f91e8d6812;hp=cc9d6cecdc0a41d84a5219c5e97fa2ff54eacccf;hpb=927436db512d7ab195d0dc7d8292bdd56a0c9f3c;p=packages%2Feggdrop.git diff --git a/eggdrop.spec b/eggdrop.spec index cc9d6ce..08fd700 100644 --- a/eggdrop.spec +++ b/eggdrop.spec @@ -1,82 +1,80 @@ -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/%{name}-%{version}-root -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 +Name: eggdrop +Version: 1.6.9 +Release: 1 +License: GPL +Group: Applications/Communications +Source0: http://www.eggdropsrus.co.uk/downloads/eggdrop/%{name}%{version}.tar.gz +Patch0: %{name}-FHS.patch +URL: http://www.eggdrop.net/ +Requires: tcl +BuildRequires: tcl-devel +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. %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. %prep %setup -q -n %{name}%{version} -%patch -p1 +%patch0 -p1 %build -CFLAGS="$RPM_OPT_FLAGS" \ -./configure %{_target_platform} \ - --prefix=%{_bindir} -# Dziwny problem z -ldir w module filesys -cd src/mod/filesys.mod -rm -f config.cache config.log -CFLAGS="$RPM_OPT_FLAGS" \ -./configure %{_target_platform} -cd ../../.. -CFLAGS="$RPM_OPT_FLAGS" make +./configure +%{__make} config +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/{bin,lib/eggdrop,man/man1} -make install DEST=$RPM_BUILD_ROOT%{_libdir}/eggdrop -rm -rf `find $RPM_BUILD_ROOT%{_libdir}/eggdrop -name CVS` -rm -rf $RPM_SOURCE_DIR/doc/CVS -mv $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 +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/modules,%{_datadir}/%{name},%{_mandir}/man1,%{_datadir}/%{name}/{help,scripts,language},%{_datadir}/doc/%{name}-%{version}} -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* +%{__make} DESTDIR="$RPM_BUILD_ROOT" install + +cp $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name} + +find $RPM_BUILD_ROOT/doc -type f | egrep -v "(\.html$|\.htm$)" | xargs gzip -9nf +gzip -9nf $RPM_BUILD_ROOT/README $RPM_BUILD_ROOT/%{name}.{simple,complete,advanced}.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/README.gz \ + $RPM_BUILD_ROOT/%{name}.{simple,complete,advanced}.conf.gz \ + $RPM_BUILD_ROOT/doc/* \ + $RPM_BUILD_ROOT%{_datadir}/doc/%{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}/ + +cp -a $RPM_BUILD_ROOT/modules/* \ + $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/ %clean rm -rf $RPM_BUILD_ROOT -%files +%files %defattr(644,root,root,755) -%doc CONTENTS COPYING FEATURES INSTALL README doc/* -%attr(755,root,root) %{_bindir}/* -%{_libdir}/eggdrop/filesys -%{_libdir}/eggdrop/help -%{_libdir}/eggdrop/language -%ghost %{_libdir}/eggdrop/modules -%{_libdir}/eggdrop/modules-%{versionmajor} -%{_libdir}/eggdrop/scripts -%attr(755,root,root) %{_libdir}/eggdrop/eggdrop2-%{versionmajor} -%ghost %{_libdir}/eggdrop/eggdrop2 -%{_libdir}/eggdrop/eggdrop2.conf.* -%{_libdir}/eggdrop/motd -%{_mandir}/man*/* +%doc %{_datadir}/doc/%{name}-%{version} +%{_mandir}/man1/%{name}.1* +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/modules +%attr(755,root,root) %{_bindir}/%{name} +%attr(755,root,root) %{_libdir}/%{name}/modules/*.so +%{_datadir}/%{name}