dslinux/user/bitchx BitchX.spec Makefile config.log config.status gtkBitchX.spec

stsp stsp at user.in-berlin.de
Sun Jul 2 15:41:24 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/bitchx
In directory antilope:/tmp/cvs-serv16112

Modified Files:
	Makefile 
Added Files:
	BitchX.spec config.log config.status gtkBitchX.spec 
Log Message:
Make bitchX build.


--- NEW FILE: gtkBitchX.spec ---
# gtkBitchX.spec.  Generated from gtkBitchX.spec.in by configure.

%define ver	1.1-final
%define rel	1
%define ser	2
%define pfx	/usr/local

Summary: The Ultimate IRC Client
Name: gtkBitchX
Version: %{ver}
Release: %{rel}
Serial: %{ser}
Prefix: %{pfx}
Packager: David Walluck <david at bitchx.org>
Copyright: BSD-Style
Group: Networking/IRC
Source: ftp://ftp.bitchx.org/pub/source/BitchX-%{version}.tar.bz2
Url: http://www.bitchx.org/gtk/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: ncurses, XFree86-libs, glib >= 1.2.0, gtk+ >= 1.2.0, gnome-libs >= 1.0.0, tcl, openssl, esound >= 0.2.5, audiofile >= 0.1.5, BitchX-common = %{version}
BuildRequires: ncurses-devel, XFree86-libs, XFree86-devel, glib-devel >= 1.2.0, gtk+-devel >= 1.2.0, gnome-libs-devel >= 1.0.0, tcl, openssl-devel, esound-devel >= 0.2.5, audiofile-devel >= 0.1.5

%description 
BitchX is a VERY heavily modified ircII client. It includes many things such
as built in CDCC (XDCC) offering, built in flood protection, etc. It is easier
to script things in BitchX because unlike plain vanilla ircII, half the
script does not have to be devoted to changing the appearance of ircII. It also
includes many other new features, such as port scanning, a CD player, a mail
client, etc.

This version of BitchX contains GTK support and, as such, requires X to run.

%prep
%setup -n BitchX

%build
%ifarch i386 i486 i586 i686 k6 k7
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
	./configure --prefix=%{prefix} --with-tcl --with-ssl --with-gtk --enable-sound --with-plugins=nicklist --enable-ipv6
%else
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
	./configure --prefix=%{prefix} --with-tcl --with-ssl --with-gtk --enable-sound --with-plugins=nicklist --enable-ipv6
%endif

make

%install
rm -rf $RPM_BUILD_ROOT

sed -e 's/loadacts = \[NO\]/loadacts = \[YES\]/' -e 's/\$exedir\/fonts/\%{prefix}\/share\/figlet/' < script/menu.bx > script/menu.bx.new
install -m 644 script/menu.bx.new script/menu.bx
rm -rf script/menu.bx.new

make prefix=$RPM_BUILD_ROOT/%{prefix} install
ln -sf gtkBitchX-%{version} $RPM_BUILD_ROOT/%{prefix}/bin/gtkBitchX

cat > gtkBitchX.menu << EOF
?package(gtkBitchX): \\
	needs="X11" \\
	section="Networking/IRC" \\
	title="gtkBitchX" \\
	longtitle="The Ultimate IRC Client" \\
	command="gtkBitchX" \\
	icon="BitchX.xpm"
EOF
install -d $RPM_BUILD_ROOT/usr/lib/menu
install -m 644 gtkBitchX.menu $RPM_BUILD_ROOT/usr/lib/menu/gtkBitchX

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}

%postun
%{clean_menus}

%files
%defattr(-,root,root)
%{prefix}/bin/gtkBitchX
%{prefix}/bin/gtkBitchX-%{version}
%{prefix}/lib/bx/script/menu.bx
%{prefix}/lib/bx/script/actplug.gmz
%{prefix}/lib/bx/plugins/nicklist.so
/usr/lib/menu/gtkBitchX

%changelog
* Mon Oct 18 1999 David Walluck <david at bitchx.org> 1.0c16-1
- initial release of spec for inclusion in BitchX

Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/bitchx/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile	2 Jul 2006 13:18:24 -0000	1.1
+++ Makefile	2 Jul 2006 13:41:22 -0000	1.2
@@ -1,5 +1,421 @@
+# Makefile.in
+#
+# BitchX - by panasync
+#
+# targets recognised by this Makefile:
+#   all, everything	- compiles BitchX [wserv, scr-bx, plugins]
+#   wserv		- compiles wserv
+#   scr-bx		- compiles scr-bx
+#   dll			- compiles plugins
+#   install		- installs BitchX [wserv, scr-bx] [plugins] scripts
+#			  man pages help and translation
+#   installirc		- installs BitchX [wserv, scr-bx]
+#   installwserv	- installs wserv
+#   installscr-bx	- installs scr-bx
+#   installdll		- installs plugins
+#   installscript	- installs the scripts
+#   installtranslation	- installs the translation tables
+#   installhelp		- installs the help files
+#   installman		- installs the manual pages
+#   installeverything	- all of the above
+#   install_local	- installs BitchX to your home directory
+#   clean		- remove all .o files, core, and binaries
+#   distclean		- remove all files geneated by compilation/installation
+#   bxconf		- compiles and runs bx-configure
+#   distrib		- makes a tarball of the BitchX binaries
+#   windistrib		- makes a tarball of the BitchX binaries on Win32
+#   package		- makes a tarball of the BitchX source
+#   depend		- computes the dependencies
 
-SHELL = /usr/local/bin/bash
+SHELL = /bin/sh
 
-default:
-	$(SHELL) ./configure
+srcdir = .
+
+top_srcdir = .
+topdir = $(ROOTDIR)/user/bitchx
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+bindir = ${exec_prefix}/bin
+sbindir = ${exec_prefix}/sbin
+libexecdir = ${exec_prefix}/libexec
+datadir = ${prefix}/share
+sysconfdir = ${prefix}/etc
+sharedstatedir = ${prefix}/com
+localstatedir = ${prefix}/var
+libdir = ${exec_prefix}/lib
+infodir = ${prefix}/info
+mandir = ${prefix}/man
+includedir = ${prefix}/include
+oldincludedir = /usr/include
+
+local_dir = $(HOME)
+
+# Where the BitchX binary will be installed.
+# "make install" will compile and install the program.
+INSTALL_IRC = ${bindir}/$(_VERSION_)$(EXEEXT)
+
+# Where the BitchX library will be. Generally this is the place that
+# you put the scripts, help pages and translation tables. It is
+# very important that you set this correctly.
+IRCLIB = ${libdir}/bx
+
+#CC = gcc
+DEFS = -I. -I$(topdir)/include -I$(top_srcdir)/include -I$(srcdir) -I$(srcdir)/include
+LIBS =  -lncurses -lm -lcrypt -lresolv
+
+# Tcl library.
+TCL_LIBS = 
+
+# These are for Tcl support.
+TCL_OBJS = 
+# You don't have the following, so you'll want to leave this blank.
+TCL_SRCS = 
+
+# Set this to -g if you want to be able to debug the client, otherwise
+# use -O to have the compiler do some optimization instead.
+#CFLAGS =  -g -O2 -Wall
+CFLAGS += -Os -trigraphs
+# Set this to -s if you want the binary to be stripped.
+LDFLAGS += -s 
+CFLAGS += $(DEFS) -I$(ROOTDIR)/lib/libncurses/include
+LDFLAGS += -L$(ROOTDIR)/lib/libncurses/lib -lncurses
+# These are for the cd device player.
+CD_SRCS = 
+CD_OBJS = 
+
+# This is the executable suffix for the target operating system.
+EXEEXT = 
+
+# Extra files.
+DEFAULT_CTOOLZ_DIR = ~/.BitchX
+DEFAULT_MSGLOGFILE = BitchX.away
+DEFAULT_BITCHX_HELP_FILE = BitchX.help
+DEFAULT_SCRIPT_HELP_FILE = BitchX.help
+DEFAULT_BITCHX_KICK_FILE = BitchX.kick
+DEFAULT_BITCHX_QUIT_FILE = BitchX.quit
+DEFAULT_BITCHX_IRCNAME_FILE = BitchX.ircnames
+
+# Full path of the directory for BitchX help files.
+HELPDIR = $(IRCLIB)/help
+
+# Full path of the directory for the BitchX scripts.
+INSTALL_SCRIPT = $(IRCLIB)/script
+
+# Default setting for IRCPATH where BitchX will look for
+# its script files if the environment variable is undefined.
+# Usually, this should contain the same path as used for INSTALL_SCRIPT in
+# the Makefile, but it can contain multiple path elements
+# separated by colons. The path MUST lead to an existing directory,
+# because the 'global' script is expected to be found there.
+IRCPATH = $(DEFAULT_CTOOLZ_DIR):$(DEFAULT_CTOOLZ_DIR)/plugins:.:$(PLUGINDIR):$(INSTALL_SCRIPT):$(IRCLIB)
+
+# Path for TRANSLATION variable.
+TRANSLATION_PATH = $(IRCLIB)/translation
+
+# This command will be used to install the BitchX help files. If you don't
+# want to install them, replace with the following:
+# INSTALL_HELP_CMD = @echo The help files have not been installed.
+INSTALL_HELP_CMD = cp -pfr bitchx-docs/* $(HELPDIR)
+
+# This is where the optional plugins will be copied to.
+PLUGINDIR = $(IRCLIB)/plugins
+
+# Plugin flags.
+SHLIB_LD = gcc -shared
+SHLIB_CFLAGS = 
+SHLIB_SUFFIX = .so
+
+# This command will be used to install the BitchX files on Win32/OS2EMX
+# systems.
+WINNT_INSTALL = 
+
+# This program allows you to use screen/xterm's to put new BitchX windows
+# on new screen/xterm windows.
+INSTALL_WSERV = $(IRCLIB)/wserv$(EXEEXT)
+
+# This program allows you to screen BitchX and reattach to it later.
+INSTALL_SCRBX = ${bindir}/scr-bx$(EXEEXT)
+
+# Set gzip and bzip2 options.
+GZIP_ENV = --best
+BZIP2 = -9 --repetitive-best
+
+# Standard programs.
+RM = rm -f
+LN = ln -s
+CP = cp -f
+MV = mv -f
+
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+
+VERSION = BitchX-1.1-final
+_VERSION_ = BitchX
+
+MAKE_BIN = make
+MAKE = $(MAKE_BIN) $(MFLAGS)
+MFLAGS = \
+	'local_dir=$(HOME)'				\
+	'INSTALL_IRC=$(INSTALL_IRC)'			\
+	'IRCLIB=$(IRCLIB)'				\
+	'CC=$(CC)'					\
+	'CFLAGS=$(CFLAGS)'				\
+	'HELPDIR=$(HELPDIR)'				\
+        'INSTALL_WSERV=$(INSTALL_WSERV)'                \
+	'IRCPATH=$(IRCPATH)'				\
+	'TRANSLATION_PATH=$(TRANSLATION_PATH)'		\
+	'LDFLAGS=$(LDFLAGS)'				\
+	'LIBS=$(LIBS)'					\
+	'LN=$(LN)'					\
+	'RM=$(RM)'					\
+	'TCL_SRCS=$(TCL_SRCS)'				\
+	'TCL_OBJS=$(TCL_OBJS)'				\
+	'CD_PLAY=$(CD_PLAY)'				\
+	'CD_SRCS=$(CD_SRCS)'				\
+	'CD_OBJS=$(CD_OBJS)'				\
+	'TCL_LIBS=$(TCL_LIBS)'				\
+	'PLUGINDIR=$(PLUGINDIR)'			\
+	'_VERSION_=$(_VERSION_)'			\
+	'VERSION=$(VERSION)'				\
+	'INSTALL_DATA=$(INSTALL_DATA)'			\
+	'INSTALL_SCRIPT=$(INSTALL_SCRIPT)'		\
+	'EXEEXT=$(EXEEXT)'				\
+	'SHLIB_CFLAGS=$(SHLIB_CFLAGS)'			\
+	'SHLIB_SUFFIX=$(SHLIB_SUFFIX)'
+
+## Makefile starts here.
+
+all: Makefile .config.h $(_VERSION_) wserv scr-bx dll done
+
+.config.h:
+	@if test ! -f $(topdir)/.config.h ; then touch $(topdir)/.config.h; fi
+
+install: all installbin installdll installscript installman installhelp \
+	installtranslation reallydone
+
+installeverything: install
+
+everything: all
+
+$(_VERSION_): .config.h
+	cd source \
+	  && $(MAKE) all
+
+dll/dummy:
+
+dll: .config.h $(srcdir)/Makefile dll/Makefile dll/dummy
+	cd dll \
+	  && $(MAKE) all
+
+installdll: $(srcdir)/Makefile dll/Makefile installdirs dll
+	cd dll \
+	  && $(MAKE) install
+
+installdll_local: $(srcdir)/Makefile dll/Makefile
+	cd dll \
+	  && $(MAKE) 'PLUGINDIR=$(local_dir)/.BitchX/plugins'
+
+installhelp: installdirs
+	cd $(top_srcdir) \
+	  && $(INSTALL_HELP_CMD)
+	(find $(HELPDIR) -type f ! -name '*.bz2' ! -name '*.gz' -name '*' | \
+		(xargs bzip2 -9f || xargs gzip -9f) || :) 2>/dev/null
+
+installbin: installirc installwserv installscr-bx
+
+installirc: installdirs $(_VERSION_)
+	$(INSTALL) source/$(_VERSION_)$(EXEEXT) $(bindir)/$(VERSION)$(EXEEXT)
+	$(RM) $(INSTALL_IRC)
+	$(LN) $(bindir)/$(VERSION)$(EXEEXT) $(INSTALL_IRC)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.help $(IRCLIB)/$(DEFAULT_BITCHX_HELP_FILE)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.ircnames $(IRCLIB)/$(DEFAULT_BITCHX_IRCNAME_FILE)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.quit $(IRCLIB)/$(DEFAULT_BITCHX_QUIT_FILE)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.reasons $(IRCLIB)/$(DEFAULT_BITCHX_KICK_FILE)
+	$(WINNT_INSTALL)
+
+install_local: all local_installdirs installdll_local
+	$(INSTALL) source/$(_VERSION_)$(EXEEXT) $(local_dir)/bin/$(VERSION)$(EXEEXT)
+	$(INSTALL) $(local_dir)/bin/$(VERSION)$(EXEEXT) $(local_dir)/bin/$(_VERSION_)$(EXEEXT)
+	$(INSTALL) source/scr-bx$(EXEEXT) $(local_dir)/bin/scr-bx$(EXEEXT)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.help $(DEFAULT_CTOOLZ_DIR)/$(DEFAULT_BITCHX_HELP_FILE)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.ircnames $(DEFAULT_CTOOLZ_DIR)/$(DEFAULT_BITCHX_IRCNAME_FILE)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.quit $(DEFAULT_CTOOLZ_DIR)/$(DEFAULT_BITCHX_QUIT_FILE)
+	$(INSTALL_DATA) $(top_srcdir)/BitchX.reasons $(DEFAULT_CTOOLZ_DIR)/$(DEFAULT_BITCHX_KICK_FILE)
+
+wserv: .config.h $(srcdir)/source/wserv.c $(srcdir)/source/term.c $(srcdir)/Makefile
+	cd source \
+	  && $(MAKE) wserv
+
+scr-bx: .config.h $(srcdir)/source/scr-bx.c $(srcdir)/source/term.c $(srcdir)/Makefile
+	cd source \
+	  && $(MAKE) scr-bx
+
+installwserv: installdirs wserv
+	$(INSTALL) source/wserv $(INSTALL_WSERV)
+
+installscr-bx: installdirs scr-bx
+	$(INSTALL) source/scr-bx $(INSTALL_SCRBX)
+
+installscript: installdirs
+	-@( \
+		if test -d $(top_srcdir)/script; then \
+		cd $(top_srcdir)/script; \
+		for i in *; do \
+			if test "$$i" = "bxglobal" -a -f $(INSTALL_SCRIPT)/bxglobal; then \
+				if test -f bxglobal; then \
+					$(INSTALL_DATA) $(INSTALL_SCRIPT)/bxglobal $(INSTALL_SCRIPT)/bxglobal.old; \
+					$(INSTALL_DATA) bxglobal $(INSTALL_SCRIPT); \
+				fi; \
+			else \
+				if test "$$i" != "CVS"; then \
+					$(INSTALL_DATA) $$i $(INSTALL_SCRIPT); \
+				fi; \
+			fi; \
+		done; \
+		chmod -x $(INSTALL_SCRIPT)/*; \
+		fi; \
+	)
+
+installtranslation: installdirs
+	-@( \
+		if test -d $(top_srcdir)/translation; then \
+			cd $(top_srcdir)/translation; \
+			for i in *; do \
+				if test "$$i" != "CVS"; then \
+					$(INSTALL_DATA) $$i $(TRANSLATION_PATH); \
+				fi; \
+			done; \
+			chmod -x $(TRANSLATION_PATH)/*; \
+		fi; \
+	)
+	(find $(TRANSLATION_PATH) -type f ! -name '*.bz2' ! -name '*.gz' -name '*' | \
+		(xargs bzip2 -9f || xargs gzip -9f) || :) 2>/dev/null
+
+installman: installdirs
+	-@( \
+		if test -d $(top_srcdir)/doc; then \
+			cd $(top_srcdir)/doc; \
+			for i in BitchX.1; do \
+			if test -f $$i; then \
+				$(INSTALL_DATA) $$i $(mandir)/man1; \
+			fi; \
+			done; \
+		fi; \
+	)
+	(find $(mandir)/man1/BitchX.1 -type f ! -name '*.bz2' ! -name '*.gz' -name '*' | \
+		(xargs bzip2 -9f || xargs gzip -9f) || :) 2>/dev/null
+
+installdirs:
+	umask 022; $(top_srcdir)/mkinstalldirs $(bindir) $(IRCLIB) $(mandir)/man1 $(TRANSLATION_PATH) $(INSTALL_SCRIPT) $(HELPDIR)
+
+local_installdirs:
+	umask 022; $(top_srcdir)/mkinstalldirs $(local_dir)/bin $(DEFAULT_CTOOLZ_DIR) $(DEFAULT_CTOOLZ_DIR)/plugins $(DEFAULT_CTOOLZ_DIR)/logs
+
+config: bxconf
+
+bxconf: $(srcdir)/Makefile $(srcdir)/bx-conf/Makefile.in
+	cd bx-conf \
+	  && $(MAKE) all
+	$(topdir)/bxconfigure || :
+
+clean:
+	-@(if test -f source/Makefile; then cd source; $(MAKE) clean; fi)
+	-@(if test -f dll/Makefile; then cd dll; $(MAKE) clean; fi)
+	-@(if test -f bx-conf/Makefile; then cd bx-conf; $(MAKE) clean; fi)
+
+distclean: clean
+	-@(if test -f source/Makefile; then cd source; $(MAKE) distclean; fi)
+	-@(if test -f dll/Makefile; then cd dll; $(MAKE) distclean; fi)
+	-@(if test -f bx-conf/Makefile; then cd bx-conf; $(MAKE) distclean; fi)
+	-$(RM) config.status
+	-$(RM) config.cache config.log stamp-h stamp-h[0-9]*
+	-$(RM) include/defs.h include/sig.inc
+	-$(RM) *~ *.rej core *.orig .#*
+	-$(RM) include/*~ include/*.rej include/core include/*.orig include/.#*
+	-$(RM) source/*~ source/*.rej source/core source/*.orig source/.#*
+	-$(RM) bitchx-docs/.#* bx-conf/.#* contrib/.#* dll/.#* doc/.#*
+	-$(RM) script/.#* macros/.#* translation/.#*
+	-$(RM) doc/*~ doc/BitchX.bat *.spec
+	-$(RM) Makefile
+	-$(CP) $(top_srcdir)/doc/Makefile $(top_srcdir)/Makefile
+	-$(CP) $(top_srcdir)/doc/Makefile Makefile
+
+export: distclean
+	$(top_srcdir)/autogen.sh || :
+
+package: export
+	cd ..; tar -cvf $(VERSION).tar $(_VERSION_); gzip $(_VERSION_)
+	cd ..; tar --use bzip2 -cvf $(VERSION).tar $(_VERSION_); bzip2 $(_VERSION_)
+
+distrib: export source/$(_VERSION_)$(EXEEXT)
+	$(CP) source/$(_VERSION_)$(EXEEXT) $(_VERSION_)$(EXEEXT)
+	strip --strip-all $(_VERSION_)$(EXEEXT); gzip $(_VERSION_)$(EXEEXT)
+	tar -cvf $(VERSION)-bin.tar dll/*$(SHLIB_SUFFIX) \
+		dll/hint/BitchX.hints BitchX.*; gzip $(VERSION)-bin.tar
+
+windistrib: install
+	tar -cvf $(VERSION).tar \"($IRCLIB)\"; gzip $(VERSION).tar
+	tar --use bzip2 -cvf $(VERSION).tar \"($IRCLIB)\"; bzip2 $(VERSION).tar
+
+dep: depend
+
+depend:
+	cd source \
+	  && $(MAKE) depend
+
+Makefile: $(srcdir)/Makefile.in $(srcdir)/source/Makefile.in \
+		$(srcdir)/dll/Makefile.in config.status
+	cd $(topdir) \
+	  && $(SHELL) ./config.status
+
+config.status: $(srcdir)/configure
+	$(SHELL) ./config.status --recheck
+#$(srcdir)/configure: $(srcdir)/configure.in
+#	cd $(srcdir) && autoconf || :
+
+$(top_srcdir)/aclocal.m4: 
+	cd $(top_srcdir)/macros && ./mkaclocal
+
+include/defs.h: stamp-h
+	@if test ! -f $@; then \
+		rm -f stamp-h; \
+		$(MAKE) stamp-h; \
+		else :; fi
+stamp-h: $(srcdir)/include/defs.h.in $(topdir)/config.status
+	@rm -f stamp-h stamp-hT
+	@echo timestamp > stamp-hT 2> /dev/null
+	cd $(topdir) \
+	  && \
+	     $(SHELL) ./config.status
+	@mv stamp-hT stamp-h
+$(srcdir)/include/defs.h.in: $(srcdir)/./stamp-h.in
+	@if test ! -f $@; then \
+		rm -f $(srcdir)/./stamp-h.in; \
+		$(MAKE) $(srcdir)/./stamp-h.in; \
+	else :; fi
+$(srcdir)/./stamp-h.in: $(top_srcdir)/configure.in
+	@rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT
+	@echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null
+	cd $(top_srcdir) && autoheader
+	@mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in
+
+done:
+	@echo
+	@echo Now type \"$(MAKE_BIN) install\" to install $(_VERSION_) globally \(if you\'re root\), or
+	@echo else you can type \"$(MAKE_BIN) install_local\" to install $(_VERSION_) to your home
+	@echo directory.
+
+reallydone:
+	@echo
+	@echo $(_VERSION_) is now installed.
+	@echo Type \"$(bindir)/$(VERSION)$(EXEEXT)\" to start.
+
+.PHONY: clean done reallydone installdirs local_installdirs romfs
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
+
+romfs:
+	$(ROMFSINST) source/BitchX /bin/BitchX

--- NEW FILE: config.status ---
#! /bin/sh
# Generated by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
SHELL=${CONFIG_SHELL-/bin/sh}

## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
[...1142 lines suppressed...]
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`


  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
  case $ac_dest in
    default )  echo timestamp > stamp-h
 ;;
  esac
done

{ (exit 0); exit 0; }

--- NEW FILE: config.log ---
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  $ ./configure --build=arm-elf

## --------- ##
## Platform. ##
## --------- ##

hostname = ubuntu
uname -m = i686
uname -r = 2.6.12-9-386
uname -s = Linux
uname -v = #1 Mon Oct 10 13:14:36 BST 2005

/usr/bin/uname -p = unknown
[...1623 lines suppressed...]
#define HAVE_INET_ATON 1
#define NBLOCK_POSIX 1
#define VERSION "BitchX-1.1-final"
#define _VERSION_ "BitchX"
#define TPARM_DECLARED 1
#define HAVE_TPARM 1
#define HAVE_NCURSES_H 1
#define HAVE_TERMCAP_H 1
#define HAVE_TPUTS 1
#define HAVE_TERMINFO 1
#define UNIX_MAIL "/var/spool/mail"
#define DEFAULT_CTOOLZ_DIR "~/.BitchX"
#define DEFAULT_MSGLOGFILE "BitchX.away"
#define DEFAULT_BITCHX_HELP_FILE "BitchX.help"
#define DEFAULT_SCRIPT_HELP_FILE "BitchX.help"
#define DEFAULT_BITCHX_KICK_FILE "BitchX.kick"
#define DEFAULT_BITCHX_QUIT_FILE "BitchX.quit"
#define DEFAULT_BITCHX_IRCNAME_FILE "BitchX.ircnames"

configure: exit 0

--- NEW FILE: BitchX.spec ---
# BitchX.spec.  Generated from BitchX.spec.in by configure.

%define ver	1.1-final
%define rel	1
%define ser	2
%define pfx	/usr/local

Summary: The Ultimate IRC Client
Name: BitchX
Version: %{ver}
Release: %{rel}
Serial: %{ser}
Prefix: %{pfx}
Packager: David Walluck <david at bitchx.org>
Copyright: BSD-Style
Group: Networking/IRC
Source: ftp://ftp.bitchx.org/pub/source/BitchX-%{version}.tar.bz2
Url: http://www.bitchx.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: ncurses, tcl, BitchX-common = %{version}
BuildRequires: ncurses-devel, tcl

%description 
BitchX is a VERY heavily modified ircII client. It includes many things such 
as built in CDCC (XDCC) offering, built in flood protection, etc. It is easier
to script things in BitchX because unlike plain vanilla ircII, half the 
script does not have to be devoted to changing the appearance of ircII. It also
includes many other new features, such as port scanning, a CD player, a mail
client, etc.

%package common
Summary: Help files, documentation, and extras for the BitchX IRC client
Group: Networking/IRC

%description common 
These are the help files and other documentation for the BitchX IRC client. It
is required that you install this package so that you at least have all of the
files needed by BitchX. 

This package requires either the BitchX or the gtkBitchX package to do anything
useful.

%prep
%setup -n BitchX
find . -type f -name '*~' | xargs rm -rf
find . -type d -name 'CVS' | xargs rm -rf

%build
%ifarch i386 i486 i586 i686 k6 k7
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
	./configure --prefix=%{prefix} --with-tcl --with-plugins
%else
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
	./configure --prefix=%{prefix} --with-plugins
%endif

make

%install
rm -rf $RPM_BUILD_ROOT

rm -f script/fserve+vfs.tar.gz
rm -f script/actplug.gmz
rm -f script/menu.bx

make prefix=$RPM_BUILD_ROOT/%{prefix} install
ln -sf BitchX-%{version} $RPM_BUILD_ROOT/%{prefix}/bin/BitchX

cat > BitchX.menu << EOF
?package(BitchX): \\
	needs="X11" \\
	section="Networking/IRC" \\
	title="BitchX" \\
	longtitle="The Ultimate IRC Client" \\
	command="rxvt -geometry 80x24 -bg black -fg white -fn vga -e BitchX" \\
	icon="BitchX.xpm"
EOF
install -d $RPM_BUILD_ROOT/usr/lib/menu
install -m 644 BitchX.menu $RPM_BUILD_ROOT/usr/lib/menu/BitchX

install -d $RPM_BUILD_ROOT/usr/share/icons
install -m 664 doc/BitchX.xpm $RPM_BUILD_ROOT/usr/share/icons
install -d $RPM_BUILD_ROOT/usr/share/icons/mini
install -m 664 doc/BitchX-mini.xpm $RPM_BUILD_ROOT/usr/share/icons/mini/BitchX.xpm

cat >ircII.servers <<EOF
EOF
install -m 644 ircII.servers $RPM_BUILD_ROOT/%{prefix}/lib/bx

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}

%postun
%{clean_menus}

%files
%defattr(-,root,root)
%{prefix}/bin/BitchX
%{prefix}/bin/BitchX-%{version}
%{prefix}/lib/bx/wserv
%{prefix}/bin/scr-bx 
/usr/lib/menu/BitchX

%files common
%defattr(-,root,root)
%doc ChangeLog INSTALL README README.GTK README.autoconf doc/*
%dir %{prefix}/lib/bx
%config(noreplace) %{prefix}/lib/bx/ircII.servers
%{prefix}/lib/bx/BitchX.help
%{prefix}/lib/bx/BitchX.ircnames
%{prefix}/lib/bx/BitchX.kick
%{prefix}/lib/bx/BitchX.quit
%{prefix}/lib/bx/help
%{prefix}/lib/bx/plugins
%dir %{prefix}/lib/bx/script
%config(noreplace) %{prefix}/lib/bx/script/bxglobal
%{prefix}/lib/bx/script/bxtcl.tcl
%{prefix}/lib/bx/script/file.tcl
%{prefix}/lib/bx/script/fserve.irc
%{prefix}/lib/bx/translation
/usr/share/icons/BitchX.xpm
/usr/share/icons/mini/BitchX.xpm
%{prefix}/man/man1/*

%changelog
* Tue Aug 29 2000 David Walluck <david at bitchx.org> 1.0c17-1
- update to 1.0c17

* Mon Oct 18 1999 David Walluck <david at bitchx.org> 1.0c16-1
- initial release of spec for inclusion in BitchX




More information about the dslinux-commit mailing list