]>
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 | |
d1d19600 | 8 | %{?with_perl:%include /usr/lib/rpm/macros.perl} |
e69c54b0 | 9 | |
75a558b0 | 10 | Summary: Irssi is a IRC client |
fab8b1be JR |
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 |
e5e5763f | 14 | Version: 0.8.10a |
2cc50093 | 15 | Release: 3 |
75a558b0 | 16 | License: GPL |
d4791b42 | 17 | Group: Applications/Communications |
24c5c066 SP |
18 | #Source0: http://irssi.org/files/snapshots/%{name}-%{_snap}.tar.gz |
19 | Source0: http://irssi.org/files/%{name}-%{version}.tar.gz | |
e5e5763f | 20 | # Source0-md5: 78140796205c6fa1c43e46d2e79e60aa |
13117eda AM |
21 | Source1: %{name}.desktop |
22 | Source2: %{name}.png | |
e69c54b0 | 23 | %define _idea_ver 0.1.46 |
1da15db1 | 24 | Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{_idea_ver}.tar.gz |
e030c78a | 25 | # Source3-md5: c326efe317b8f67593a3cd46d5557280 |
ecd062a6 | 26 | Patch0: %{name}-dcc-send-limit.patch |
ee0d9b12 JR |
27 | Patch1: %{name}-tinfo.patch |
28 | Patch2: %{name}-home_etc.patch | |
29 | Patch3: %{name}.conf.patch | |
30 | Patch4: %{name}-idea-listlen.patch | |
eb3d727a | 31 | Patch5: %{name}-gcc4.patch |
69fc8ac9 | 32 | Patch6: %{name}-dynamic.patch |
e69c54b0 | 33 | Patch7: %{name}-invalid_free.patch |
c48a9e4d | 34 | URL: http://www.irssi.org/ |
13117eda | 35 | BuildRequires: autoconf |
a30c64ab | 36 | BuildRequires: automake |
a0e32961 | 37 | BuildRequires: gettext-devel |
e69c54b0 | 38 | BuildRequires: glib-devel >= 1:1.2.10-13 |
a6f4c972 | 39 | BuildRequires: glib2-devel >= 2.1.0 |
a30c64ab | 40 | BuildRequires: libtool |
c694f984 | 41 | BuildRequires: ncurses-devel >= 5.0 |
4f6fa20a | 42 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
331b9a8a | 43 | %{?with_perl:BuildRequires: perl-devel >= 1:5.8.4} |
ed5b13fb | 44 | BuildRequires: pkgconfig |
4d2cef65 | 45 | BuildRequires: popt-devel |
6639e834 | 46 | %{?with_perl:BuildRequires: rpm-perlprov} |
eeb34517 | 47 | BuildRequires: rpmbuild(macros) >= 1.315 |
1da5a0b0 | 48 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') |
071656b5 ER |
49 | Obsoletes: irssi-speech |
50 | Obsoletes: irssi-sql | |
1da5a0b0 | 51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c5c87082 | 52 | |
eeb34517 | 53 | %if %{with dynamic} |
54 | %define filterout_ld -Wl,--as-needed | |
55 | %endif | |
56 | ||
738c3ae3 | 57 | %description |
d4791b42 | 58 | Irssi is a textUI IRC client with IPv6 support. |
738c3ae3 | 59 | |
fab8b1be | 60 | %description -l fr.UTF-8 |
d4791b42 | 61 | Irssi est client IRC. |
6f85d63f | 62 | |
fab8b1be | 63 | %description -l pl.UTF-8 |
d4791b42 | 64 | Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6. |
73c49657 | 65 | |
74cc6bc5 | 66 | %package plugin-idea |
f52ef808 | 67 | Summary: Irssi plugin IDEA crypt |
fab8b1be | 68 | Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA |
f52ef808 | 69 | Group: Applications/Communications |
071656b5 | 70 | Requires: %{name} = %{version}-%{release} |
74cc6bc5 | 71 | |
72 | %description plugin-idea | |
39eceb32 | 73 | This package contains IDEA Crypt plugin for Irssi. |
74 | ||
fab8b1be JR |
75 | %description plugin-idea -l pl.UTF-8 |
76 | Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA. | |
74cc6bc5 | 77 | |
738c3ae3 | 78 | %prep |
e5e5763f | 79 | %setup -q -n %{name}-0.8.10 -a3 |
51b33c8b | 80 | %patch0 -p1 |
81 | %patch1 -p1 | |
972ba5d8 | 82 | %patch2 -p1 |
01baf907 | 83 | %patch3 -p1 |
12689c1e | 84 | %patch4 -p1 |
eb3d727a | 85 | %patch5 -p1 |
69fc8ac9 | 86 | %if %{with dynamic} |
87 | %patch6 -p1 | |
88 | %endif | |
e69c54b0 | 89 | %patch7 -p1 |
738c3ae3 AF |
90 | |
91 | %build | |
c694f984 | 92 | rm -f missing |
64ee8d3e | 93 | %{__libtoolize} |
6932dd71 | 94 | %{__aclocal} -I . |
d0022294 | 95 | %{__autoconf} |
96 | %{__automake} | |
c694f984 | 97 | %configure \ |
c5c87082 | 98 | --without-socks \ |
13117eda | 99 | --with-bot \ |
be6cd0e4 | 100 | --with-textui \ |
d4791b42 | 101 | --with-proxy \ |
cb029a46 | 102 | --with-terminfo \ |
d4791b42 | 103 | --with-modules \ |
d1d19600 | 104 | %{?with_perl:--with-perl=yes} \ |
105 | %{?with_perl:--with-perl-lib=vendor} \ | |
106 | %{!?with_perl:--with-perl=no} \ | |
107 | %{?with_ipv6:--enable-ipv6} \ | |
f5036096 AG |
108 | --enable-nls \ |
109 | --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl | |
694c1a92 | 110 | |
feabde7d | 111 | %{__make} |
738c3ae3 | 112 | |
74cc6bc5 | 113 | cd irssi-idea-%{_idea_ver} |
114 | rm -f missing | |
115 | %{__libtoolize} | |
116 | %{__aclocal} -I . | |
117 | %{__autoconf} | |
118 | %{__automake} | |
119 | %configure | |
120 | ||
121 | %{__make} | |
122 | ||
123 | ||
738c3ae3 AF |
124 | %install |
125 | rm -rf $RPM_BUILD_ROOT | |
16afed53 | 126 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
73c49657 | 127 | |
1352901f | 128 | %{__make} install \ |
129 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 130 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 131 | |
16afed53 | 132 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
f29dbe19 | 133 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
d4791b42 | 134 | |
a30c64ab | 135 | %{__make} -C irssi-idea-%{_idea_ver} install \ |
74cc6bc5 | 136 | DESTDIR=$RPM_BUILD_ROOT |
137 | ||
738c3ae3 | 138 | %clean |
bed6758a | 139 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 140 | |
be6cd0e4 | 141 | %files |
75a558b0 | 142 | %defattr(644,root,root,755) |
0d89b8d9 | 143 | %doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html} |
d4791b42 | 144 | %attr(755,root,root) %{_bindir}/* |
c5c87082 | 145 | %dir %{_libdir}/irssi |
d4791b42 | 146 | %dir %{_libdir}/irssi/modules |
74cc6bc5 | 147 | %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so* |
69fc8ac9 | 148 | %if %{with dynamic} |
149 | %attr(755,root,root) %{_libdir}/libirssi*.so.* | |
150 | %endif | |
be6cd0e4 | 151 | %{_datadir}/%{name} |
16afed53 | 152 | %{_desktopdir}/irssi.desktop |
f29dbe19 | 153 | %{_pixmapsdir}/* |
c84e79dc | 154 | %{_sysconfdir}/irssi.conf |
155 | %{_mandir}/man1/* | |
156 | ||
d1d19600 | 157 | %if %{with perl} |
c84e79dc | 158 | %{perl_vendorarch}/*.pm |
159 | %dir %{perl_vendorarch}/Irssi | |
160 | %{perl_vendorarch}/Irssi/*.pm | |
161 | ||
162 | %dir %{perl_vendorarch}/auto/Irssi | |
163 | %{perl_vendorarch}/auto/Irssi/*.bs | |
164 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so | |
165 | ||
166 | %dir %{perl_vendorarch}/auto/Irssi/Irc | |
167 | %{perl_vendorarch}/auto/Irssi/Irc/*.bs | |
168 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so | |
169 | ||
170 | %dir %{perl_vendorarch}/auto/Irssi/TextUI | |
171 | %{perl_vendorarch}/auto/Irssi/TextUI/*.bs | |
172 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so | |
173 | ||
174 | %dir %{perl_vendorarch}/auto/Irssi/UI | |
175 | %{perl_vendorarch}/auto/Irssi/UI/*.bs | |
176 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so | |
177 | %endif | |
74cc6bc5 | 178 | |
179 | %files plugin-idea | |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libdir}/irssi/modules/libidea.so |