]>
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 | 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 | |
c48a9e4d | 16 | URL: http://www.irssi.org/ |
13117eda AM |
17 | BuildRequires: automake |
18 | BuildRequires: autoconf | |
19 | BuildRequires: libtool | |
6f85d63f | 20 | BuildRequires: ncurses-devel >= 5.0 |
a0e32961 | 21 | BuildRequires: gettext-devel |
d4791b42 | 22 | BuildRequires: glib-devel >= 1.2.0 |
96840719 | 23 | %{?!_without_perl:BuildRequires: perl-devel >= 5.6.1} |
d4791b42 AM |
24 | Obsoletes: %{name}-speech |
25 | Obsoletes: %{name}-sql | |
6c65b06c | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c5c87082 | 27 | |
738c3ae3 | 28 | %description |
d4791b42 | 29 | Irssi is a textUI IRC client with IPv6 support. |
738c3ae3 | 30 | |
6f85d63f | 31 | %description -l fr |
d4791b42 | 32 | Irssi est client IRC. |
6f85d63f | 33 | |
34 | %description -l pl | |
d4791b42 | 35 | Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6. |
73c49657 | 36 | |
738c3ae3 | 37 | %prep |
4d489f21 | 38 | %setup -q |
738c3ae3 AF |
39 | |
40 | %build | |
04ff87d8 | 41 | %configure2_13 \ |
c5c87082 | 42 | --without-socks \ |
d4791b42 | 43 | --with-textui=ncurses \ |
13117eda | 44 | --with-bot \ |
d4791b42 AM |
45 | --with-proxy \ |
46 | --with-modules \ | |
96840719 AF |
47 | %{?!_without_perl:--enable-perl=yes} \ |
48 | %{?_without_perl:--enable-perl=no} \ | |
d4791b42 AM |
49 | --enable-curses-windows \ |
50 | --enable-ipv6 \ | |
51 | --enable-nls | |
52 | ||
feabde7d | 53 | %{__make} |
738c3ae3 AF |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
f29dbe19 | 57 | install -d $RPM_BUILD_ROOT{%{perl_sitearch},%{_pixmapsdir},%{_applnkdir}/Network/Communications} |
73c49657 | 58 | |
1352901f | 59 | %{__make} install \ |
60 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 61 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 62 | |
8799b308 JR |
63 | (cd po ; %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix}) |
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 | |
04ff87d8 | 99 | %{?_without_perl:#}%dir %{perl_sitearch}/Irssi |
96840719 | 100 | %{?_without_perl:#}%{perl_sitearch}/*.pm |
04ff87d8 | 101 | %{?_without_perl:#}%{perl_sitearch}/Irssi/*.pm |
96840719 | 102 | %{?_without_perl:#}%dir %{perl_sitearch}/auto/Irssi |
04ff87d8 | 103 | %{?_without_perl:#}%dir %{perl_sitearch}/auto/Irssi/Irc |
96840719 | 104 | %{?_without_perl:#}%{perl_sitearch}/auto/Irssi/*.bs |
04ff87d8 | 105 | %{?_without_perl:#}%{perl_sitearch}/auto/Irssi/Irc/*.bs |
96840719 | 106 | %{?_without_perl:#}%attr(755,root,root) %{perl_sitearch}/auto/Irssi/*.so |
04ff87d8 | 107 | %{?_without_perl:#}%attr(755,root,root) %{perl_sitearch}/auto/Irssi/Irc/*.so |