]>
Commit | Line | Data |
---|---|---|
96840719 | 1 | %{?_without_perl:#}%include /usr/lib/rpm/macros.perl |
75a558b0 | 2 | Summary: Irssi is a IRC client |
d4791b42 | 3 | Summary(fr): Irssi est un client IRC |
6f85d63f | 4 | Summary(pl): Irssi - klient IRC |
75a558b0 | 5 | Name: irssi |
4d489f21 | 6 | Version: 0.7.98.4 |
0a352d75 | 7 | Release: 3 |
75a558b0 | 8 | Vendor: Timo Sirainen <cras@irccrew.org> |
9 | License: GPL | |
d4791b42 | 10 | Group: Applications/Communications |
c48a9e4d | 11 | Group(de): Applikationen/Kommunikation |
d4791b42 | 12 | Group(pl): Aplikacje/Komunikacja |
c48a9e4d | 13 | Source0: http://www.irssi.org/files/%{name}-%{version}.tar.bz2 |
13117eda AM |
14 | Source1: %{name}.desktop |
15 | Source2: %{name}.png | |
0a352d75 | 16 | Patch0: %{name}-dcc-send-limit.patch |
c694f984 | 17 | Patch1: %{name}-no_libnsl.patch |
18 | Patch2: %{name}-am15.patch | |
19 | Patch3: %{name}-libtool.patch | |
c48a9e4d | 20 | URL: http://www.irssi.org/ |
13117eda AM |
21 | BuildRequires: automake |
22 | BuildRequires: autoconf | |
23 | BuildRequires: libtool | |
a0e32961 | 24 | BuildRequires: gettext-devel |
d4791b42 | 25 | BuildRequires: glib-devel >= 1.2.0 |
c694f984 | 26 | BuildRequires: gnome-libs-devel |
27 | BuildRequires: ncurses-devel >= 5.0 | |
96840719 | 28 | %{?!_without_perl:BuildRequires: perl-devel >= 5.6.1} |
c694f984 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d4791b42 AM |
30 | Obsoletes: %{name}-speech |
31 | Obsoletes: %{name}-sql | |
c5c87082 | 32 | |
738c3ae3 | 33 | %description |
d4791b42 | 34 | Irssi is a textUI IRC client with IPv6 support. |
738c3ae3 | 35 | |
6f85d63f | 36 | %description -l fr |
d4791b42 | 37 | Irssi est client IRC. |
6f85d63f | 38 | |
39 | %description -l pl | |
d4791b42 | 40 | Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6. |
73c49657 | 41 | |
738c3ae3 | 42 | %prep |
4d489f21 | 43 | %setup -q |
0a352d75 | 44 | %patch0 -p1 |
c694f984 | 45 | %patch1 -p1 |
46 | %patch2 -p1 | |
47 | %patch3 -p1 | |
738c3ae3 AF |
48 | |
49 | %build | |
c694f984 | 50 | rm -f missing |
51 | libtoolize --copy --force | |
52 | aclocal -I %{_aclocaldir}/gnome | |
53 | autoconf | |
54 | automake -a -c | |
55 | %configure \ | |
c5c87082 | 56 | --without-socks \ |
d4791b42 | 57 | --with-textui=ncurses \ |
13117eda | 58 | --with-bot \ |
d4791b42 AM |
59 | --with-proxy \ |
60 | --with-modules \ | |
96840719 AF |
61 | %{?!_without_perl:--enable-perl=yes} \ |
62 | %{?_without_perl:--enable-perl=no} \ | |
d4791b42 AM |
63 | --enable-curses-windows \ |
64 | --enable-ipv6 \ | |
65 | --enable-nls | |
66 | ||
feabde7d | 67 | %{__make} |
738c3ae3 AF |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
f29dbe19 | 71 | install -d $RPM_BUILD_ROOT{%{perl_sitearch},%{_pixmapsdir},%{_applnkdir}/Network/Communications} |
73c49657 | 72 | |
1352901f | 73 | %{__make} install \ |
74 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 75 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 76 | |
8799b308 JR |
77 | (cd po ; %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix}) |
78 | ||
f29dbe19 | 79 | install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications |
80 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
d4791b42 | 81 | |
96840719 | 82 | %{?_without_perl:#}mv $RPM_BUILD_ROOT%{_prefix}/*-pld-*/* $RPM_BUILD_ROOT%{perl_sitearch}/ |
d4791b42 | 83 | |
96840719 AF |
84 | %{?_without_perl:#}( |
85 | %{?_without_perl:#} for name in Irssi Irssi/Irc; do | |
86 | %{?_without_perl:#} cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/${name} | |
87 | %{?_without_perl:#} sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new | |
88 | %{?_without_perl:#} mv .packlist.new .packlist | |
89 | %{?_without_perl:#} done | |
90 | %{?_without_perl:#}) | |
d4791b42 | 91 | |
bed6758a | 92 | gzip -9nf AUTHORS ChangeLog README TODO NEWS docs/*.txt |
738c3ae3 | 93 | |
a0e32961 | 94 | %find_lang %{name} |
95 | ||
738c3ae3 | 96 | %clean |
bed6758a | 97 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 98 | |
a0e32961 | 99 | %files -f %{name}.lang |
75a558b0 | 100 | %defattr(644,root,root,755) |
bed6758a | 101 | %doc *.gz docs/*.txt.gz |
d4791b42 | 102 | %attr(755,root,root) %{_bindir}/* |
c5c87082 | 103 | %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/irssi/* |
d4791b42 AM |
104 | %dir %{_sysconfdir}/irssi |
105 | %{_datadir}/irssi | |
c5c87082 AF |
106 | |
107 | %dir %{_libdir}/irssi | |
d4791b42 AM |
108 | %dir %{_libdir}/irssi/modules |
109 | %attr(755,root,root) %{_libdir}/irssi/modules/*.so* | |
f29dbe19 | 110 | %{_applnkdir}/Network/Communications/irssi.desktop |
111 | %{_pixmapsdir}/* | |
73c49657 | 112 | |
04ff87d8 | 113 | %{?_without_perl:#}%dir %{perl_sitearch}/Irssi |
96840719 | 114 | %{?_without_perl:#}%{perl_sitearch}/*.pm |
04ff87d8 | 115 | %{?_without_perl:#}%{perl_sitearch}/Irssi/*.pm |
96840719 | 116 | %{?_without_perl:#}%dir %{perl_sitearch}/auto/Irssi |
04ff87d8 | 117 | %{?_without_perl:#}%dir %{perl_sitearch}/auto/Irssi/Irc |
96840719 | 118 | %{?_without_perl:#}%{perl_sitearch}/auto/Irssi/*.bs |
04ff87d8 | 119 | %{?_without_perl:#}%{perl_sitearch}/auto/Irssi/Irc/*.bs |
96840719 | 120 | %{?_without_perl:#}%attr(755,root,root) %{perl_sitearch}/auto/Irssi/*.so |
04ff87d8 | 121 | %{?_without_perl:#}%attr(755,root,root) %{perl_sitearch}/auto/Irssi/Irc/*.so |