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