]>
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 |
e1432921 | 12 | %define xmpp_ver 0.52 |
8df475e4 | 13 | %define irssi_perl_version 20160914 |
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 |
8df475e4 | 20 | Version: 0.8.20 |
f6d84012 | 21 | Release: 1 |
75a558b0 | 22 | License: GPL |
d4791b42 | 23 | Group: Applications/Communications |
f6d84012 | 24 | Source0: https://github.com/irssi/irssi/releases/download/%{version}/%{name}-%{version}.tar.gz |
8df475e4 | 25 | # Source0-md5: 2b00a0492f52571772d030d1af3a043a |
13117eda AM |
26 | Source1: %{name}.desktop |
27 | Source2: %{name}.png | |
2cdf9123 JB |
28 | # NXDOMAIN |
29 | #Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{idea_ver}.tar.gz | |
30 | Source3: %{name}-idea-%{idea_ver}.tar.gz | |
e030c78a | 31 | # Source3-md5: c326efe317b8f67593a3cd46d5557280 |
c1ae1e75 | 32 | Source4: http://cybione.org/~irssi-xmpp/files/irssi-xmpp-%{xmpp_ver}.tar.gz |
e1432921 | 33 | # Source4-md5: f48d66ddf6a6d8e4d04bfc44b83dc3c7 |
ecd062a6 | 34 | Patch0: %{name}-dcc-send-limit.patch |
7de6b4cc | 35 | Patch1: %{name}-home_etc.patch |
36 | Patch2: %{name}-idea-listlen.patch | |
37 | Patch3: %{name}-gcc4.patch | |
38 | Patch4: %{name}-dynamic.patch | |
39 | Patch5: %{name}-invalid_free.patch | |
40 | Patch6: %{name}-color_support_for_gui_entry.patch | |
41 | Patch7: %{name}-libs-nopoison.patch | |
4f1a737a | 42 | Patch8: am.patch |
c48a9e4d | 43 | URL: http://www.irssi.org/ |
13117eda | 44 | BuildRequires: autoconf |
a30c64ab | 45 | BuildRequires: automake |
2f9c6be9 | 46 | BuildRequires: gettext-tools |
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},} |
4f1a737a | 128 | %patch8 -p1 |
9afd400b | 129 | |
ec3bc534 | 130 | # hack |
c7d2e44a | 131 | %{__sed} -i -e 's#\./libtool#%{_bindir}/libtool#g' 'configure.ac' |
ec3bc534 | 132 | |
738c3ae3 | 133 | %build |
9afd400b ER |
134 | ver=$(awk '/IRSSI_VERSION_DATE/{print $3}' irssi-version.h) |
135 | if [ "$ver" != "%{irssi_perl_version}" ]; then | |
136 | : update irssi_perl_version to $ver | |
137 | exit 1 | |
138 | fi | |
139 | ||
64ee8d3e | 140 | %{__libtoolize} |
6932dd71 | 141 | %{__aclocal} -I . |
d0022294 | 142 | %{__autoconf} |
143 | %{__automake} | |
c694f984 | 144 | %configure \ |
c2196b84 | 145 | --disable-silent-rules \ |
c5c87082 | 146 | --without-socks \ |
13117eda | 147 | --with-bot \ |
be6cd0e4 | 148 | --with-textui \ |
d4791b42 | 149 | --with-proxy \ |
cb029a46 | 150 | --with-terminfo \ |
d4791b42 | 151 | --with-modules \ |
d1d19600 | 152 | %{?with_perl:--with-perl=yes} \ |
153 | %{?with_perl:--with-perl-lib=vendor} \ | |
154 | %{!?with_perl:--with-perl=no} \ | |
155 | %{?with_ipv6:--enable-ipv6} \ | |
c7d2e44a | 156 | --enable-true-color \ |
f5036096 AG |
157 | --enable-nls \ |
158 | --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl | |
694c1a92 | 159 | |
c2196b84 | 160 | %{__make} |
738c3ae3 | 161 | |
53d15a9c AM |
162 | # to fool idea configure script |
163 | touch irssi-config | |
9afd400b | 164 | cd irssi-idea |
74cc6bc5 | 165 | %{__libtoolize} |
166 | %{__aclocal} -I . | |
167 | %{__autoconf} | |
168 | %{__automake} | |
c2196b84 ER |
169 | %configure \ |
170 | --disable-silent-rules | |
171 | %{__make} | |
c1ae1e75 | 172 | cd .. |
c2196b84 | 173 | |
c1ae1e75 JR |
174 | export IRSSI_INCLUDE=`pwd` |
175 | cd irssi-xmpp | |
176 | %{__make} | |
177 | ||
738c3ae3 AF |
178 | %install |
179 | rm -rf $RPM_BUILD_ROOT | |
16afed53 | 180 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
1352901f | 181 | %{__make} install \ |
c2196b84 ER |
182 | docdir=%{_datadir}/%{name}-%{version} \ |
183 | DESTDIR=$RPM_BUILD_ROOT | |
bed6758a | 184 | |
76eb776c ER |
185 | # scripts packaged by irssi-scripts.spec |
186 | rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/* | |
187 | ||
188 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
189 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
d4791b42 | 190 | |
9afd400b | 191 | %{__make} -C irssi-idea install \ |
74cc6bc5 | 192 | DESTDIR=$RPM_BUILD_ROOT |
193 | ||
c1ae1e75 JR |
194 | %{__make} -C irssi-xmpp install \ |
195 | PREFIX=%{_prefix} \ | |
196 | IRSSI_LIB=%{_libdir}/%{name} \ | |
197 | DESTDIR=$RPM_BUILD_ROOT | |
198 | ||
565dd6a6 AM |
199 | # -devel? |
200 | rm $RPM_BUILD_ROOT%{_libdir}/lib*.{so,la,a} | |
201 | rm -r $RPM_BUILD_ROOT%{_includedir}/irssi | |
76eb776c ER |
202 | # cleanup |
203 | rm $RPM_BUILD_ROOT%{_libdir}/irssi/modules/lib*.{la,a} | |
96dd21e9 | 204 | %if %{with perl} |
76eb776c ER |
205 | rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
206 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/.packlist | |
207 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/Irc/.packlist | |
208 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/TextUI/.packlist | |
209 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/UI/.packlist | |
96dd21e9 | 210 | %endif |
76eb776c | 211 | rm -r $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} |
565dd6a6 | 212 | |
738c3ae3 | 213 | %clean |
bed6758a | 214 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 215 | |
be6cd0e4 | 216 | %files |
75a558b0 | 217 | %defattr(644,root,root,755) |
c7d2e44a | 218 | %doc AUTHORS ChangeLog README.md TODO NEWS docs/*.{txt,html} |
76eb776c ER |
219 | %attr(755,root,root) %{_bindir}/botti |
220 | %attr(755,root,root) %{_bindir}/irssi | |
c5c87082 | 221 | %dir %{_libdir}/irssi |
d4791b42 | 222 | %dir %{_libdir}/irssi/modules |
74cc6bc5 | 223 | %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so* |
69fc8ac9 | 224 | %if %{with dynamic} |
225 | %attr(755,root,root) %{_libdir}/libirssi*.so.* | |
226 | %endif | |
76eb776c ER |
227 | %dir %{_datadir}/%{name} |
228 | %dir %{_datadir}/%{name}/scripts | |
229 | %{_datadir}/%{name}/help | |
230 | %{_datadir}/%{name}/themes | |
16afed53 | 231 | %{_desktopdir}/irssi.desktop |
76eb776c | 232 | %{_pixmapsdir}/irssi.png |
c84e79dc | 233 | %{_sysconfdir}/irssi.conf |
76eb776c | 234 | %{_mandir}/man1/irssi.1* |
c84e79dc | 235 | |
d1d19600 | 236 | %if %{with perl} |
c84e79dc | 237 | %{perl_vendorarch}/*.pm |
238 | %dir %{perl_vendorarch}/Irssi | |
239 | %{perl_vendorarch}/Irssi/*.pm | |
240 | ||
241 | %dir %{perl_vendorarch}/auto/Irssi | |
c84e79dc | 242 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so |
243 | ||
244 | %dir %{perl_vendorarch}/auto/Irssi/Irc | |
c84e79dc | 245 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so |
246 | ||
247 | %dir %{perl_vendorarch}/auto/Irssi/TextUI | |
c84e79dc | 248 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so |
249 | ||
250 | %dir %{perl_vendorarch}/auto/Irssi/UI | |
c84e79dc | 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 |