summaryrefslogtreecommitdiff
path: root/irssi.spec.in
blob: 434236dc5980234c5edaded4f345ce7e0dadf9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# $Revision: 1.12 $, $Date: 2001/09/21 14:57:29 $
Name: 		irssi
Version: 	@VERSION@
Release: 	1
Vendor: 	Timo Sirainen <tss@iki.fi>
Summary:  	Irssi is a IRC client
Copyright: 	GPL
Group: 		Applications/Communications
URL: 		http://irssi.org/
Source0: 	http://irssi.org/irssi/files/%{name}-%{version}.tar.gz
BuildRequires:	glib-devel
BuildRequires:	ncurses-devel
BuildRoot: 	/tmp/%{name}-%{version}-root

%define		_sysconfdir	/etc
%define		configure { CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;  CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;  FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; ./configure %{_target_platform} 	--prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} }

%description
Irssi is a modular IRC client that currently has only text
mode user interface, but 80-90% of the code isn't text mode specific
so other UI could be created pretty easily. Also, Irssi isn't really
even IRC specific anymore, there's already a working SILC module
available. Support for other protocols like ICQ could be create some day
too.

More information can be found at http://irssi.org/.

%prep
%setup -q

%build
export NOCONFIGURE=x
./autogen.sh       
%configure \
	--with-imlib \
	--enable-ipv6 \
	--with-textui \
	--with-socks \
        --with-bot \
        --with-proxy \
        --with-perl=yes \
	--with-ncurses
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr install
mv $RPM_BUILD_ROOT/%{_datadir}/doc/irssi $RPM_BUILD_ROOT/%{_datadir}/doc/irssi-%version
strip $RPM_BUILD_ROOT/%{_bindir}/*
strip $RPM_BUILD_ROOT/%{_libdir}/irssi/modules/lib*.so*
rm -f $RPM_BUILD_ROOT/%{_libdir}/perl5/5.6.0/i386-linux/perllocal.pod

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr (644,root,root,755)
%doc %{_datadir}/doc/irssi-%version/

%attr(755,root,root) %{_bindir}/*

%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/irssi*

%dir %{_libdir}
%attr(755,root,root) %{_libdir}/irssi
%attr(755,root,root) %{_libdir}/perl5

%dir %{_datadir}/irssi
%attr(755,root,root) %{_datadir}/irssi/*

%changelog
* Fri Aug 17 2001 - Joose Vettenranta <joose@iki.fi>
  Created new spec file from spec file founded in irssi-0.7.98.3