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