]>
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 |
e459dfd3 | 15 | Release: 7 |
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 |
e459dfd3 | 36 | Patch8: %{name}-color_support_for_gui_entry.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 |
1da5a0b0 | 53 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->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 |
eb3d727a | 91 | %patch5 -p1 |
69fc8ac9 | 92 | %if %{with dynamic} |
93 | %patch6 -p1 | |
94 | %endif | |
e69c54b0 | 95 | %patch7 -p1 |
e459dfd3 | 96 | %patch8 -p0 |
738c3ae3 | 97 | |
2cdf9123 JB |
98 | echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4 |
99 | ||
ec3bc534 AM |
100 | # hack |
101 | sed -i -e 's#\./libtool#%{_bindir}/libtool#g' configure.in | |
102 | ||
738c3ae3 | 103 | %build |
64ee8d3e | 104 | %{__libtoolize} |
6932dd71 | 105 | %{__aclocal} -I . |
d0022294 | 106 | %{__autoconf} |
107 | %{__automake} | |
c694f984 | 108 | %configure \ |
c5c87082 | 109 | --without-socks \ |
13117eda | 110 | --with-bot \ |
be6cd0e4 | 111 | --with-textui \ |
d4791b42 | 112 | --with-proxy \ |
cb029a46 | 113 | --with-terminfo \ |
d4791b42 | 114 | --with-modules \ |
d1d19600 | 115 | %{?with_perl:--with-perl=yes} \ |
116 | %{?with_perl:--with-perl-lib=vendor} \ | |
117 | %{!?with_perl:--with-perl=no} \ | |
118 | %{?with_ipv6:--enable-ipv6} \ | |
f5036096 AG |
119 | --enable-nls \ |
120 | --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl | |
694c1a92 | 121 | |
feabde7d | 122 | %{__make} |
738c3ae3 | 123 | |
53d15a9c AM |
124 | # to fool idea configure script |
125 | touch irssi-config | |
581cd5fb | 126 | cd irssi-idea-%{idea_ver} |
74cc6bc5 | 127 | %{__libtoolize} |
128 | %{__aclocal} -I . | |
129 | %{__autoconf} | |
130 | %{__automake} | |
131 | %configure | |
132 | ||
133 | %{__make} | |
134 | ||
135 | ||
738c3ae3 AF |
136 | %install |
137 | rm -rf $RPM_BUILD_ROOT | |
16afed53 | 138 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
73c49657 | 139 | |
1352901f | 140 | %{__make} install \ |
141 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 142 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 143 | |
16afed53 | 144 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
f29dbe19 | 145 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
d4791b42 | 146 | |
581cd5fb | 147 | %{__make} -C irssi-idea-%{idea_ver} install \ |
74cc6bc5 | 148 | DESTDIR=$RPM_BUILD_ROOT |
149 | ||
738c3ae3 | 150 | %clean |
bed6758a | 151 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 152 | |
be6cd0e4 | 153 | %files |
75a558b0 | 154 | %defattr(644,root,root,755) |
0d89b8d9 | 155 | %doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html} |
d4791b42 | 156 | %attr(755,root,root) %{_bindir}/* |
c5c87082 | 157 | %dir %{_libdir}/irssi |
d4791b42 | 158 | %dir %{_libdir}/irssi/modules |
74cc6bc5 | 159 | %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so* |
69fc8ac9 | 160 | %if %{with dynamic} |
161 | %attr(755,root,root) %{_libdir}/libirssi*.so.* | |
162 | %endif | |
be6cd0e4 | 163 | %{_datadir}/%{name} |
16afed53 | 164 | %{_desktopdir}/irssi.desktop |
f29dbe19 | 165 | %{_pixmapsdir}/* |
c84e79dc | 166 | %{_sysconfdir}/irssi.conf |
167 | %{_mandir}/man1/* | |
168 | ||
d1d19600 | 169 | %if %{with perl} |
c84e79dc | 170 | %{perl_vendorarch}/*.pm |
171 | %dir %{perl_vendorarch}/Irssi | |
172 | %{perl_vendorarch}/Irssi/*.pm | |
173 | ||
174 | %dir %{perl_vendorarch}/auto/Irssi | |
175 | %{perl_vendorarch}/auto/Irssi/*.bs | |
176 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so | |
177 | ||
178 | %dir %{perl_vendorarch}/auto/Irssi/Irc | |
179 | %{perl_vendorarch}/auto/Irssi/Irc/*.bs | |
180 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so | |
181 | ||
182 | %dir %{perl_vendorarch}/auto/Irssi/TextUI | |
183 | %{perl_vendorarch}/auto/Irssi/TextUI/*.bs | |
184 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so | |
185 | ||
186 | %dir %{perl_vendorarch}/auto/Irssi/UI | |
187 | %{perl_vendorarch}/auto/Irssi/UI/*.bs | |
188 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so | |
189 | %endif | |
74cc6bc5 | 190 | |
191 | %files plugin-idea | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/irssi/modules/libidea.so |