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