]>
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 |
140e99f6 | 6 | Version: 0.8.1 |
24bfb876 | 7 | Release: 2 |
75a558b0 | 8 | Vendor: Timo Sirainen <cras@irccrew.org> |
9 | License: GPL | |
d4791b42 | 10 | Group: Applications/Communications |
c48a9e4d | 11 | Source0: http://www.irssi.org/files/%{name}-%{version}.tar.bz2 |
13117eda AM |
12 | Source1: %{name}.desktop |
13 | Source2: %{name}.png | |
0a352d75 | 14 | Patch0: %{name}-dcc-send-limit.patch |
c48a9e4d | 15 | URL: http://www.irssi.org/ |
13117eda AM |
16 | BuildRequires: automake |
17 | BuildRequires: autoconf | |
18 | BuildRequires: libtool | |
a0e32961 | 19 | BuildRequires: gettext-devel |
d4791b42 | 20 | BuildRequires: glib-devel >= 1.2.0 |
c694f984 | 21 | BuildRequires: gnome-libs-devel |
22 | BuildRequires: ncurses-devel >= 5.0 | |
96840719 | 23 | %{?!_without_perl:BuildRequires: perl-devel >= 5.6.1} |
c694f984 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d4791b42 AM |
25 | Obsoletes: %{name}-speech |
26 | Obsoletes: %{name}-sql | |
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 |
0a352d75 | 39 | %patch0 -p1 |
738c3ae3 AF |
40 | |
41 | %build | |
c694f984 | 42 | rm -f missing |
43 | libtoolize --copy --force | |
44 | aclocal -I %{_aclocaldir}/gnome | |
45 | autoconf | |
46 | automake -a -c | |
47 | %configure \ | |
c5c87082 | 48 | --without-socks \ |
13117eda | 49 | --with-bot \ |
be6cd0e4 | 50 | --with-textui \ |
d4791b42 AM |
51 | --with-proxy \ |
52 | --with-modules \ | |
be6cd0e4 | 53 | %{?!_without_perl:--enable-perl=shared} \ |
96840719 | 54 | %{?_without_perl:--enable-perl=no} \ |
d4791b42 AM |
55 | --enable-ipv6 \ |
56 | --enable-nls | |
694c1a92 | 57 | |
feabde7d | 58 | %{__make} |
738c3ae3 AF |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
f29dbe19 | 62 | install -d $RPM_BUILD_ROOT{%{perl_sitearch},%{_pixmapsdir},%{_applnkdir}/Network/Communications} |
73c49657 | 63 | |
1352901f | 64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 66 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 67 | |
f29dbe19 | 68 | install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications |
69 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
d4791b42 | 70 | |
96840719 | 71 | %{?_without_perl:#}( |
24bfb876 | 72 | %{?_without_perl:#} for name in Irssi Irssi/Irc Irssi/TextUI Irssi/UI; do |
be6cd0e4 | 73 | %{?_without_perl:#} cd $RPM_BUILD_ROOT%{perl_archlib}/auto/${name} |
96840719 AF |
74 | %{?_without_perl:#} sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new |
75 | %{?_without_perl:#} mv .packlist.new .packlist | |
76 | %{?_without_perl:#} done | |
77 | %{?_without_perl:#}) | |
694c1a92 | 78 | |
bed6758a | 79 | gzip -9nf AUTHORS ChangeLog README TODO NEWS docs/*.txt |
738c3ae3 AF |
80 | |
81 | %clean | |
bed6758a | 82 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 83 | |
be6cd0e4 | 84 | %files |
75a558b0 | 85 | %defattr(644,root,root,755) |
bed6758a | 86 | %doc *.gz docs/*.txt.gz |
d4791b42 | 87 | %attr(755,root,root) %{_bindir}/* |
c5c87082 | 88 | %dir %{_libdir}/irssi |
d4791b42 AM |
89 | %dir %{_libdir}/irssi/modules |
90 | %attr(755,root,root) %{_libdir}/irssi/modules/*.so* | |
be6cd0e4 | 91 | %{_datadir}/%{name} |
f29dbe19 | 92 | %{_applnkdir}/Network/Communications/irssi.desktop |
93 | %{_pixmapsdir}/* | |
73c49657 | 94 | |
be6cd0e4 | 95 | %{?_without_perl:#}%{perl_archlib}/*.pm |
24bfb876 | 96 | %{?_without_perl:#}%dir %{perl_archlib}/Irssi |
be6cd0e4 | 97 | %{?_without_perl:#}%{perl_archlib}/Irssi/*.pm |
24bfb876 | 98 | |
be6cd0e4 | 99 | %{?_without_perl:#}%dir %{perl_archlib}/auto/Irssi |
be6cd0e4 | 100 | %{?_without_perl:#}%{perl_archlib}/auto/Irssi/*.bs |
be6cd0e4 | 101 | %{?_without_perl:#}%attr(755,root,root) %{perl_archlib}/auto/Irssi/*.so |
24bfb876 AM |
102 | |
103 | %{?_without_perl:#}%dir %{perl_archlib}/auto/Irssi/Irc | |
104 | %{?_without_perl:#}%{perl_archlib}/auto/Irssi/Irc/*.bs | |
be6cd0e4 | 105 | %{?_without_perl:#}%attr(755,root,root) %{perl_archlib}/auto/Irssi/Irc/*.so |
24bfb876 AM |
106 | |
107 | %{?_without_perl:#}%dir %{perl_archlib}/auto/Irssi/TextUI | |
108 | %{?_without_perl:#}%{perl_archlib}/auto/Irssi/TextUI/*.bs | |
109 | %{?_without_perl:#}%attr(755,root,root) %{perl_archlib}/auto/Irssi/TextUI/*.so | |
110 | ||
111 | %{?_without_perl:#}%dir %{perl_archlib}/auto/Irssi/UI | |
112 | %{?_without_perl:#}%{perl_archlib}/auto/Irssi/UI/*.bs | |
113 | %{?_without_perl:#}%attr(755,root,root) %{perl_archlib}/auto/Irssi/UI/*.so |