]>
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 |
c1ae1e75 | 7 | %bcond_without xmpp # without plugin |
e69c54b0 | 8 | |
531f8279 | 9 | %define no_install_post_check_so 1 |
10 | ||
76eb776c | 11 | %define idea_ver 0.1.46 |
c1ae1e75 | 12 | %define xmpp_ver 0.51 |
3eea52d0 | 13 | %define irssi_perl_version 20100403 |
9afd400b | 14 | %{?with_perl:%include /usr/lib/rpm/macros.perl} |
75a558b0 | 15 | Summary: Irssi is a IRC client |
d6b5098c | 16 | Summary(fr.UTF-8): Irssi est un client IRC |
6f275e0f | 17 | Summary(hu.UTF-8): Irssi egy IRC kliens |
d6b5098c | 18 | Summary(pl.UTF-8): Irssi - wygodny w użyciu klient IRC |
75a558b0 | 19 | Name: irssi |
3eea52d0 | 20 | Version: 0.8.15 |
88a6d82e | 21 | Release: 12 |
75a558b0 | 22 | License: GPL |
d4791b42 | 23 | Group: Applications/Communications |
73da6ec1 ER |
24 | #Source0: http://www.irssi.org/files/snapshots/%{name}-%{_snap}.tar.gz |
25 | Source0: http://www.irssi.org/files/%{name}-%{version}.tar.gz | |
3eea52d0 | 26 | # Source0-md5: 870db8e319f640c2bf446c30d0c24ef6 |
13117eda AM |
27 | Source1: %{name}.desktop |
28 | Source2: %{name}.png | |
2cdf9123 JB |
29 | # NXDOMAIN |
30 | #Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{idea_ver}.tar.gz | |
31 | Source3: %{name}-idea-%{idea_ver}.tar.gz | |
e030c78a | 32 | # Source3-md5: c326efe317b8f67593a3cd46d5557280 |
c1ae1e75 JR |
33 | Source4: http://cybione.org/~irssi-xmpp/files/irssi-xmpp-%{xmpp_ver}.tar.gz |
34 | # Source4-md5: 032f090f34614bd5ad768842abae6415 | |
ecd062a6 | 35 | Patch0: %{name}-dcc-send-limit.patch |
7de6b4cc | 36 | Patch1: %{name}-home_etc.patch |
37 | Patch2: %{name}-idea-listlen.patch | |
38 | Patch3: %{name}-gcc4.patch | |
39 | Patch4: %{name}-dynamic.patch | |
40 | Patch5: %{name}-invalid_free.patch | |
41 | Patch6: %{name}-color_support_for_gui_entry.patch | |
42 | Patch7: %{name}-libs-nopoison.patch | |
c48a9e4d | 43 | URL: http://www.irssi.org/ |
13117eda | 44 | BuildRequires: autoconf |
a30c64ab | 45 | BuildRequires: automake |
a0e32961 | 46 | BuildRequires: gettext-devel |
2cdf9123 | 47 | # for idea only |
b72c745e | 48 | BuildRequires: glib-devel |
9fc42c2d | 49 | BuildRequires: glib2-devel >= 2.24.0 |
a30c64ab | 50 | BuildRequires: libtool |
c1ae1e75 | 51 | %{?with_xmpp:BuildRequires: loudmouth-devel} |
c694f984 | 52 | BuildRequires: ncurses-devel >= 5.0 |
4f6fa20a | 53 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
9ad41241 | 54 | %{?with_perl:BuildRequires: perl-devel >= 1:5.8.4} |
ed5b13fb | 55 | BuildRequires: pkgconfig |
4d2cef65 | 56 | BuildRequires: popt-devel |
6639e834 | 57 | %{?with_perl:BuildRequires: rpm-perlprov} |
eeb34517 | 58 | BuildRequires: rpmbuild(macros) >= 1.315 |
b9d2203f | 59 | BuildRequires: sed >= 4.0 |
9fc42c2d | 60 | Requires: glib2 >= 2.24.0 |
9afd400b | 61 | Provides: perl(Irssi) = %{irssi_perl_version} |
071656b5 ER |
62 | Obsoletes: irssi-speech |
63 | Obsoletes: irssi-sql | |
1da5a0b0 | 64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c5c87082 | 65 | |
eeb34517 | 66 | %if %{with dynamic} |
67 | %define filterout_ld -Wl,--as-needed | |
68 | %endif | |
69 | ||
738c3ae3 | 70 | %description |
d4791b42 | 71 | Irssi is a textUI IRC client with IPv6 support. |
738c3ae3 | 72 | |
fab8b1be | 73 | %description -l fr.UTF-8 |
d4791b42 | 74 | Irssi est client IRC. |
6f85d63f | 75 | |
6f275e0f | 76 | %description -l hu.UTF-8 |
6400c7fe | 77 | Irssi egy szöveges felületű IRC kliens IPv6 támogatással. |
6f275e0f | 78 | |
fab8b1be | 79 | %description -l pl.UTF-8 |
d4791b42 | 80 | Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6. |
73c49657 | 81 | |
74cc6bc5 | 82 | %package plugin-idea |
f52ef808 | 83 | Summary: Irssi plugin IDEA crypt |
6f275e0f | 84 | Summary(hu.UTF-8): Irssi IDEA plugin |
d6b5098c | 85 | Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA |
f52ef808 | 86 | Group: Applications/Communications |
071656b5 | 87 | Requires: %{name} = %{version}-%{release} |
2cdf9123 | 88 | Requires: glib >= 1:1.2.10-13 |
74cc6bc5 | 89 | |
90 | %description plugin-idea | |
39eceb32 | 91 | This package contains IDEA Crypt plugin for Irssi. |
92 | ||
6f275e0f ZU |
93 | %description plugin-idea -l hu.UTF-8 |
94 | Ez a csomag tartalmazza az IDEA titkosítási plugint Irssi-hez. | |
95 | ||
fab8b1be JR |
96 | %description plugin-idea -l pl.UTF-8 |
97 | Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA. | |
74cc6bc5 | 98 | |
c1ae1e75 JR |
99 | %package plugin-xmpp |
100 | Summary: Irssi XMPP support plugin | |
101 | Summary(pl.UTF-8): Wtyczka do irssi do obsługi XMPP | |
102 | Group: Applications/Communications | |
103 | Requires: %{name} = %{version}-%{release} | |
104 | ||
105 | %description plugin-xmpp | |
106 | This package contains XMPP support plugin for Irssi. | |
107 | ||
108 | %description plugin-xmpp -l pl.UTF-8 | |
109 | Ten pakiet zawiera wtyczkę do Irssi z obsługą XMPP. | |
110 | ||
738c3ae3 | 111 | %prep |
c1ae1e75 | 112 | %setup -q -a3 -a4 |
51b33c8b | 113 | %patch0 -p1 |
114 | %patch1 -p1 | |
972ba5d8 | 115 | %patch2 -p1 |
01baf907 | 116 | %patch3 -p1 |
69fc8ac9 | 117 | %if %{with dynamic} |
7de6b4cc | 118 | %patch4 -p1 |
69fc8ac9 | 119 | %endif |
7de6b4cc | 120 | %patch5 -p1 |
121 | %patch6 -p0 | |
122 | %patch7 -p1 | |
738c3ae3 | 123 | |
2cdf9123 JB |
124 | echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4 |
125 | ||
9afd400b | 126 | mv irssi-idea{-%{idea_ver},} |
c1ae1e75 | 127 | mv irssi-xmpp{-%{xmpp_ver},} |
9afd400b | 128 | |
ec3bc534 | 129 | # hack |
63875850 | 130 | %{__sed} -i -e 's#\./libtool#%{_bindir}/libtool#g' 'configure.in' |
ec3bc534 | 131 | |
738c3ae3 | 132 | %build |
9afd400b ER |
133 | ver=$(awk '/IRSSI_VERSION_DATE/{print $3}' irssi-version.h) |
134 | if [ "$ver" != "%{irssi_perl_version}" ]; then | |
135 | : update irssi_perl_version to $ver | |
136 | exit 1 | |
137 | fi | |
138 | ||
64ee8d3e | 139 | %{__libtoolize} |
6932dd71 | 140 | %{__aclocal} -I . |
d0022294 | 141 | %{__autoconf} |
142 | %{__automake} | |
c694f984 | 143 | %configure \ |
c5c87082 | 144 | --without-socks \ |
13117eda | 145 | --with-bot \ |
be6cd0e4 | 146 | --with-textui \ |
d4791b42 | 147 | --with-proxy \ |
cb029a46 | 148 | --with-terminfo \ |
d4791b42 | 149 | --with-modules \ |
d1d19600 | 150 | %{?with_perl:--with-perl=yes} \ |
151 | %{?with_perl:--with-perl-lib=vendor} \ | |
152 | %{!?with_perl:--with-perl=no} \ | |
153 | %{?with_ipv6:--enable-ipv6} \ | |
f5036096 AG |
154 | --enable-nls \ |
155 | --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl | |
694c1a92 | 156 | |
feabde7d | 157 | %{__make} |
738c3ae3 | 158 | |
53d15a9c AM |
159 | # to fool idea configure script |
160 | touch irssi-config | |
9afd400b | 161 | cd irssi-idea |
74cc6bc5 | 162 | %{__libtoolize} |
163 | %{__aclocal} -I . | |
164 | %{__autoconf} | |
165 | %{__automake} | |
166 | %configure | |
74cc6bc5 | 167 | %{__make} |
168 | ||
c1ae1e75 JR |
169 | cd .. |
170 | export IRSSI_INCLUDE=`pwd` | |
171 | cd irssi-xmpp | |
172 | %{__make} | |
173 | ||
738c3ae3 AF |
174 | %install |
175 | rm -rf $RPM_BUILD_ROOT | |
16afed53 | 176 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
1352901f | 177 | %{__make} install \ |
178 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 179 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 180 | |
76eb776c ER |
181 | # scripts packaged by irssi-scripts.spec |
182 | rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/* | |
183 | ||
184 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
185 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
d4791b42 | 186 | |
9afd400b | 187 | %{__make} -C irssi-idea install \ |
74cc6bc5 | 188 | DESTDIR=$RPM_BUILD_ROOT |
189 | ||
c1ae1e75 JR |
190 | %{__make} -C irssi-xmpp install \ |
191 | PREFIX=%{_prefix} \ | |
192 | IRSSI_LIB=%{_libdir}/%{name} \ | |
193 | DESTDIR=$RPM_BUILD_ROOT | |
194 | ||
565dd6a6 AM |
195 | # -devel? |
196 | rm $RPM_BUILD_ROOT%{_libdir}/lib*.{so,la,a} | |
197 | rm -r $RPM_BUILD_ROOT%{_includedir}/irssi | |
76eb776c ER |
198 | # cleanup |
199 | rm $RPM_BUILD_ROOT%{_libdir}/irssi/modules/lib*.{la,a} | |
96dd21e9 | 200 | %if %{with perl} |
76eb776c ER |
201 | rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
202 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/.packlist | |
203 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/Irc/.packlist | |
204 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/TextUI/.packlist | |
205 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/UI/.packlist | |
96dd21e9 | 206 | %endif |
76eb776c | 207 | rm -r $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} |
565dd6a6 | 208 | |
738c3ae3 | 209 | %clean |
bed6758a | 210 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 211 | |
be6cd0e4 | 212 | %files |
75a558b0 | 213 | %defattr(644,root,root,755) |
0d89b8d9 | 214 | %doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html} |
76eb776c ER |
215 | %attr(755,root,root) %{_bindir}/botti |
216 | %attr(755,root,root) %{_bindir}/irssi | |
c5c87082 | 217 | %dir %{_libdir}/irssi |
d4791b42 | 218 | %dir %{_libdir}/irssi/modules |
74cc6bc5 | 219 | %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so* |
69fc8ac9 | 220 | %if %{with dynamic} |
221 | %attr(755,root,root) %{_libdir}/libirssi*.so.* | |
222 | %endif | |
76eb776c ER |
223 | %dir %{_datadir}/%{name} |
224 | %dir %{_datadir}/%{name}/scripts | |
225 | %{_datadir}/%{name}/help | |
226 | %{_datadir}/%{name}/themes | |
16afed53 | 227 | %{_desktopdir}/irssi.desktop |
76eb776c | 228 | %{_pixmapsdir}/irssi.png |
c84e79dc | 229 | %{_sysconfdir}/irssi.conf |
76eb776c | 230 | %{_mandir}/man1/irssi.1* |
c84e79dc | 231 | |
d1d19600 | 232 | %if %{with perl} |
c84e79dc | 233 | %{perl_vendorarch}/*.pm |
234 | %dir %{perl_vendorarch}/Irssi | |
235 | %{perl_vendorarch}/Irssi/*.pm | |
236 | ||
237 | %dir %{perl_vendorarch}/auto/Irssi | |
238 | %{perl_vendorarch}/auto/Irssi/*.bs | |
239 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so | |
240 | ||
241 | %dir %{perl_vendorarch}/auto/Irssi/Irc | |
242 | %{perl_vendorarch}/auto/Irssi/Irc/*.bs | |
243 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so | |
244 | ||
245 | %dir %{perl_vendorarch}/auto/Irssi/TextUI | |
246 | %{perl_vendorarch}/auto/Irssi/TextUI/*.bs | |
247 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so | |
248 | ||
249 | %dir %{perl_vendorarch}/auto/Irssi/UI | |
250 | %{perl_vendorarch}/auto/Irssi/UI/*.bs | |
251 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so | |
252 | %endif | |
74cc6bc5 | 253 | |
254 | %files plugin-idea | |
255 | %defattr(644,root,root,755) | |
256 | %attr(755,root,root) %{_libdir}/irssi/modules/libidea.so | |
c1ae1e75 JR |
257 | |
258 | %files plugin-xmpp | |
259 | %defattr(644,root,root,755) | |
260 | %doc irssi-xmpp/{docs/*,NEWS,README,TODO} | |
261 | %attr(755,root,root) %{_libdir}/irssi/modules/libfe_xmpp.so | |
262 | %attr(755,root,root) %{_libdir}/irssi/modules/libtext_xmpp.so | |
263 | %attr(755,root,root) %{_libdir}/irssi/modules/libxmpp_core.so |