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