]>
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 |
1da5a0b0 | 51 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') |
071656b5 ER |
52 | Obsoletes: irssi-speech |
53 | Obsoletes: irssi-sql | |
1da5a0b0 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c5c87082 | 55 | |
eeb34517 | 56 | %if %{with dynamic} |
57 | %define filterout_ld -Wl,--as-needed | |
58 | %endif | |
59 | ||
738c3ae3 | 60 | %description |
d4791b42 | 61 | Irssi is a textUI IRC client with IPv6 support. |
738c3ae3 | 62 | |
fab8b1be | 63 | %description -l fr.UTF-8 |
d4791b42 | 64 | Irssi est client IRC. |
6f85d63f | 65 | |
fab8b1be | 66 | %description -l pl.UTF-8 |
d4791b42 | 67 | Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6. |
73c49657 | 68 | |
74cc6bc5 | 69 | %package plugin-idea |
f52ef808 | 70 | Summary: Irssi plugin IDEA crypt |
d6b5098c | 71 | Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA |
f52ef808 | 72 | Group: Applications/Communications |
071656b5 | 73 | Requires: %{name} = %{version}-%{release} |
2cdf9123 | 74 | Requires: glib >= 1:1.2.10-13 |
74cc6bc5 | 75 | |
76 | %description plugin-idea | |
39eceb32 | 77 | This package contains IDEA Crypt plugin for Irssi. |
78 | ||
fab8b1be JR |
79 | %description plugin-idea -l pl.UTF-8 |
80 | Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA. | |
74cc6bc5 | 81 | |
738c3ae3 | 82 | %prep |
0b1e4c7a | 83 | %setup -q -a3 |
51b33c8b | 84 | %patch0 -p1 |
85 | %patch1 -p1 | |
972ba5d8 | 86 | %patch2 -p1 |
01baf907 | 87 | %patch3 -p1 |
12689c1e | 88 | %patch4 -p1 |
eb3d727a | 89 | %patch5 -p1 |
69fc8ac9 | 90 | %if %{with dynamic} |
91 | %patch6 -p1 | |
92 | %endif | |
e69c54b0 | 93 | %patch7 -p1 |
738c3ae3 | 94 | |
2cdf9123 JB |
95 | echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4 |
96 | ||
ec3bc534 AM |
97 | # hack |
98 | sed -i -e 's#\./libtool#%{_bindir}/libtool#g' configure.in | |
99 | ||
738c3ae3 | 100 | %build |
64ee8d3e | 101 | %{__libtoolize} |
6932dd71 | 102 | %{__aclocal} -I . |
d0022294 | 103 | %{__autoconf} |
104 | %{__automake} | |
c694f984 | 105 | %configure \ |
c5c87082 | 106 | --without-socks \ |
13117eda | 107 | --with-bot \ |
be6cd0e4 | 108 | --with-textui \ |
d4791b42 | 109 | --with-proxy \ |
cb029a46 | 110 | --with-terminfo \ |
d4791b42 | 111 | --with-modules \ |
d1d19600 | 112 | %{?with_perl:--with-perl=yes} \ |
113 | %{?with_perl:--with-perl-lib=vendor} \ | |
114 | %{!?with_perl:--with-perl=no} \ | |
115 | %{?with_ipv6:--enable-ipv6} \ | |
f5036096 AG |
116 | --enable-nls \ |
117 | --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl | |
694c1a92 | 118 | |
feabde7d | 119 | %{__make} |
738c3ae3 | 120 | |
53d15a9c AM |
121 | # to fool idea configure script |
122 | touch irssi-config | |
581cd5fb | 123 | cd irssi-idea-%{idea_ver} |
74cc6bc5 | 124 | %{__libtoolize} |
125 | %{__aclocal} -I . | |
126 | %{__autoconf} | |
127 | %{__automake} | |
128 | %configure | |
129 | ||
130 | %{__make} | |
131 | ||
132 | ||
738c3ae3 AF |
133 | %install |
134 | rm -rf $RPM_BUILD_ROOT | |
16afed53 | 135 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
73c49657 | 136 | |
1352901f | 137 | %{__make} install \ |
138 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 139 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 140 | |
16afed53 | 141 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
f29dbe19 | 142 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
d4791b42 | 143 | |
581cd5fb | 144 | %{__make} -C irssi-idea-%{idea_ver} install \ |
74cc6bc5 | 145 | DESTDIR=$RPM_BUILD_ROOT |
146 | ||
738c3ae3 | 147 | %clean |
bed6758a | 148 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 149 | |
be6cd0e4 | 150 | %files |
75a558b0 | 151 | %defattr(644,root,root,755) |
0d89b8d9 | 152 | %doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html} |
d4791b42 | 153 | %attr(755,root,root) %{_bindir}/* |
c5c87082 | 154 | %dir %{_libdir}/irssi |
d4791b42 | 155 | %dir %{_libdir}/irssi/modules |
74cc6bc5 | 156 | %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so* |
69fc8ac9 | 157 | %if %{with dynamic} |
158 | %attr(755,root,root) %{_libdir}/libirssi*.so.* | |
159 | %endif | |
be6cd0e4 | 160 | %{_datadir}/%{name} |
16afed53 | 161 | %{_desktopdir}/irssi.desktop |
f29dbe19 | 162 | %{_pixmapsdir}/* |
c84e79dc | 163 | %{_sysconfdir}/irssi.conf |
164 | %{_mandir}/man1/* | |
165 | ||
d1d19600 | 166 | %if %{with perl} |
c84e79dc | 167 | %{perl_vendorarch}/*.pm |
168 | %dir %{perl_vendorarch}/Irssi | |
169 | %{perl_vendorarch}/Irssi/*.pm | |
170 | ||
171 | %dir %{perl_vendorarch}/auto/Irssi | |
172 | %{perl_vendorarch}/auto/Irssi/*.bs | |
173 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so | |
174 | ||
175 | %dir %{perl_vendorarch}/auto/Irssi/Irc | |
176 | %{perl_vendorarch}/auto/Irssi/Irc/*.bs | |
177 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so | |
178 | ||
179 | %dir %{perl_vendorarch}/auto/Irssi/TextUI | |
180 | %{perl_vendorarch}/auto/Irssi/TextUI/*.bs | |
181 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so | |
182 | ||
183 | %dir %{perl_vendorarch}/auto/Irssi/UI | |
184 | %{perl_vendorarch}/auto/Irssi/UI/*.bs | |
185 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so | |
186 | %endif | |
74cc6bc5 | 187 | |
188 | %files plugin-idea | |
189 | %defattr(644,root,root,755) | |
190 | %attr(755,root,root) %{_libdir}/irssi/modules/libidea.so |