]>
Commit | Line | Data |
---|---|---|
a30c64ab | 1 | # |
d1d19600 | 2 | # Conditional build: |
16e18b22 | 3 | %bcond_without perl # without perl support |
4 | %bcond_without ipv6 # without IPv6 support | |
f5036096 | 5 | %bcond_without ssl # without SSL support |
2176773f | 6 | %bcond_without dynamic # without dynamic libraries |
581cd5fb | 7 | # |
d1d19600 | 8 | %{?with_perl:%include /usr/lib/rpm/macros.perl} |
e69c54b0 | 9 | |
75a558b0 | 10 | Summary: Irssi is a IRC client |
d6b5098c ER |
11 | Summary(fr.UTF-8): Irssi est un client IRC |
12 | Summary(pl.UTF-8): Irssi - wygodny w użyciu klient IRC | |
75a558b0 | 13 | Name: irssi |
53d15a9c | 14 | Version: 0.8.12 |
ec3bc534 | 15 | Release: 6 |
75a558b0 | 16 | License: GPL |
d4791b42 | 17 | Group: Applications/Communications |
73da6ec1 ER |
18 | #Source0: http://www.irssi.org/files/snapshots/%{name}-%{_snap}.tar.gz |
19 | Source0: http://www.irssi.org/files/%{name}-%{version}.tar.gz | |
53d15a9c | 20 | # Source0-md5: ddf717a430e1c13a272f528c4f529430 |
13117eda AM |
21 | Source1: %{name}.desktop |
22 | Source2: %{name}.png | |
581cd5fb | 23 | %define idea_ver 0.1.46 |
2cdf9123 JB |
24 | # NXDOMAIN |
25 | #Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{idea_ver}.tar.gz | |
26 | Source3: %{name}-idea-%{idea_ver}.tar.gz | |
e030c78a | 27 | # Source3-md5: c326efe317b8f67593a3cd46d5557280 |
ecd062a6 | 28 | Patch0: %{name}-dcc-send-limit.patch |
ee0d9b12 JR |
29 | Patch1: %{name}-tinfo.patch |
30 | Patch2: %{name}-home_etc.patch | |
31 | Patch3: %{name}.conf.patch | |
32 | Patch4: %{name}-idea-listlen.patch | |
eb3d727a | 33 | Patch5: %{name}-gcc4.patch |
69fc8ac9 | 34 | Patch6: %{name}-dynamic.patch |
e69c54b0 | 35 | Patch7: %{name}-invalid_free.patch |
c48a9e4d | 36 | URL: http://www.irssi.org/ |
13117eda | 37 | BuildRequires: autoconf |
a30c64ab | 38 | BuildRequires: automake |
a0e32961 | 39 | BuildRequires: gettext-devel |
2cdf9123 | 40 | # for idea only |
581cd5fb | 41 | BuildRequires: glib-devel >= 1:1.2.10-13 |
a6f4c972 | 42 | BuildRequires: glib2-devel >= 2.1.0 |
a30c64ab | 43 | BuildRequires: libtool |
c694f984 | 44 | BuildRequires: ncurses-devel >= 5.0 |
4f6fa20a | 45 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
9ad41241 | 46 | %{?with_perl:BuildRequires: perl-devel >= 1:5.8.4} |
ed5b13fb | 47 | BuildRequires: pkgconfig |
4d2cef65 | 48 | BuildRequires: popt-devel |
6639e834 | 49 | %{?with_perl:BuildRequires: rpm-perlprov} |
eeb34517 | 50 | BuildRequires: rpmbuild(macros) >= 1.315 |
b9d2203f | 51 | BuildRequires: sed >= 4.0 |
1da5a0b0 | 52 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') |
071656b5 ER |
53 | Obsoletes: irssi-speech |
54 | Obsoletes: irssi-sql | |
1da5a0b0 | 55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c5c87082 | 56 | |
eeb34517 | 57 | %if %{with dynamic} |
58 | %define filterout_ld -Wl,--as-needed | |
59 | %endif | |
60 | ||
738c3ae3 | 61 | %description |
d4791b42 | 62 | Irssi is a textUI IRC client with IPv6 support. |
738c3ae3 | 63 | |
fab8b1be | 64 | %description -l fr.UTF-8 |
d4791b42 | 65 | Irssi est client IRC. |
6f85d63f | 66 | |
fab8b1be | 67 | %description -l pl.UTF-8 |
d4791b42 | 68 | Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6. |
73c49657 | 69 | |
74cc6bc5 | 70 | %package plugin-idea |
f52ef808 | 71 | Summary: Irssi plugin IDEA crypt |
d6b5098c | 72 | Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA |
f52ef808 | 73 | Group: Applications/Communications |
071656b5 | 74 | Requires: %{name} = %{version}-%{release} |
2cdf9123 | 75 | Requires: glib >= 1:1.2.10-13 |
74cc6bc5 | 76 | |
77 | %description plugin-idea | |
39eceb32 | 78 | This package contains IDEA Crypt plugin for Irssi. |
79 | ||
fab8b1be JR |
80 | %description plugin-idea -l pl.UTF-8 |
81 | Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA. | |
74cc6bc5 | 82 | |
738c3ae3 | 83 | %prep |
0b1e4c7a | 84 | %setup -q -a3 |
51b33c8b | 85 | %patch0 -p1 |
86 | %patch1 -p1 | |
972ba5d8 | 87 | %patch2 -p1 |
01baf907 | 88 | %patch3 -p1 |
12689c1e | 89 | %patch4 -p1 |
eb3d727a | 90 | %patch5 -p1 |
69fc8ac9 | 91 | %if %{with dynamic} |
92 | %patch6 -p1 | |
93 | %endif | |
e69c54b0 | 94 | %patch7 -p1 |
738c3ae3 | 95 | |
2cdf9123 JB |
96 | echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4 |
97 | ||
ec3bc534 AM |
98 | # hack |
99 | sed -i -e 's#\./libtool#%{_bindir}/libtool#g' configure.in | |
100 | ||
738c3ae3 | 101 | %build |
64ee8d3e | 102 | %{__libtoolize} |
6932dd71 | 103 | %{__aclocal} -I . |
d0022294 | 104 | %{__autoconf} |
105 | %{__automake} | |
c694f984 | 106 | %configure \ |
c5c87082 | 107 | --without-socks \ |
13117eda | 108 | --with-bot \ |
be6cd0e4 | 109 | --with-textui \ |
d4791b42 | 110 | --with-proxy \ |
cb029a46 | 111 | --with-terminfo \ |
d4791b42 | 112 | --with-modules \ |
d1d19600 | 113 | %{?with_perl:--with-perl=yes} \ |
114 | %{?with_perl:--with-perl-lib=vendor} \ | |
115 | %{!?with_perl:--with-perl=no} \ | |
116 | %{?with_ipv6:--enable-ipv6} \ | |
f5036096 AG |
117 | --enable-nls \ |
118 | --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl | |
694c1a92 | 119 | |
feabde7d | 120 | %{__make} |
738c3ae3 | 121 | |
53d15a9c AM |
122 | # to fool idea configure script |
123 | touch irssi-config | |
581cd5fb | 124 | cd irssi-idea-%{idea_ver} |
74cc6bc5 | 125 | %{__libtoolize} |
126 | %{__aclocal} -I . | |
127 | %{__autoconf} | |
128 | %{__automake} | |
129 | %configure | |
130 | ||
131 | %{__make} | |
132 | ||
133 | ||
738c3ae3 AF |
134 | %install |
135 | rm -rf $RPM_BUILD_ROOT | |
16afed53 | 136 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
73c49657 | 137 | |
1352901f | 138 | %{__make} install \ |
139 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 140 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 141 | |
16afed53 | 142 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
f29dbe19 | 143 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
d4791b42 | 144 | |
581cd5fb | 145 | %{__make} -C irssi-idea-%{idea_ver} install \ |
74cc6bc5 | 146 | DESTDIR=$RPM_BUILD_ROOT |
147 | ||
738c3ae3 | 148 | %clean |
bed6758a | 149 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 150 | |
be6cd0e4 | 151 | %files |
75a558b0 | 152 | %defattr(644,root,root,755) |
0d89b8d9 | 153 | %doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html} |
d4791b42 | 154 | %attr(755,root,root) %{_bindir}/* |
c5c87082 | 155 | %dir %{_libdir}/irssi |
d4791b42 | 156 | %dir %{_libdir}/irssi/modules |
74cc6bc5 | 157 | %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so* |
69fc8ac9 | 158 | %if %{with dynamic} |
159 | %attr(755,root,root) %{_libdir}/libirssi*.so.* | |
160 | %endif | |
be6cd0e4 | 161 | %{_datadir}/%{name} |
16afed53 | 162 | %{_desktopdir}/irssi.desktop |
f29dbe19 | 163 | %{_pixmapsdir}/* |
c84e79dc | 164 | %{_sysconfdir}/irssi.conf |
165 | %{_mandir}/man1/* | |
166 | ||
d1d19600 | 167 | %if %{with perl} |
c84e79dc | 168 | %{perl_vendorarch}/*.pm |
169 | %dir %{perl_vendorarch}/Irssi | |
170 | %{perl_vendorarch}/Irssi/*.pm | |
171 | ||
172 | %dir %{perl_vendorarch}/auto/Irssi | |
173 | %{perl_vendorarch}/auto/Irssi/*.bs | |
174 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so | |
175 | ||
176 | %dir %{perl_vendorarch}/auto/Irssi/Irc | |
177 | %{perl_vendorarch}/auto/Irssi/Irc/*.bs | |
178 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so | |
179 | ||
180 | %dir %{perl_vendorarch}/auto/Irssi/TextUI | |
181 | %{perl_vendorarch}/auto/Irssi/TextUI/*.bs | |
182 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so | |
183 | ||
184 | %dir %{perl_vendorarch}/auto/Irssi/UI | |
185 | %{perl_vendorarch}/auto/Irssi/UI/*.bs | |
186 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so | |
187 | %endif | |
74cc6bc5 | 188 | |
189 | %files plugin-idea | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/irssi/modules/libidea.so |