]> git.pld-linux.org Git - packages/irssi.git/blob - irssi.spec
- BR: rpm-perlprov
[packages/irssi.git] / irssi.spec
1 #
2 # Conditional build:
3 %bcond_without  perl    # without perl support
4 %bcond_without  ipv6    # without IPv6 support
5 %bcond_without  ssl     # without SSL  support
6 %bcond_without  dynamic # without dynamic libraries
7
8 %{?with_perl:%include   /usr/lib/rpm/macros.perl}
9
10 Summary:        Irssi is a IRC client
11 Summary(fr):    Irssi est un client IRC
12 Summary(pl):    Irssi - wygodny w u¿yciu klient IRC
13 Name:           irssi
14 Version:        0.8.10a
15 Release:        1
16 License:        GPL
17 Group:          Applications/Communications
18 #Source0:       http://irssi.org/files/snapshots/%{name}-%{_snap}.tar.gz
19 Source0:        http://irssi.org/files/%{name}-%{version}.tar.gz
20 # Source0-md5:  78140796205c6fa1c43e46d2e79e60aa
21 Source1:        %{name}.desktop
22 Source2:        %{name}.png
23 %define         _idea_ver       0.1.46
24 Source3:        http://real.irssi.org/files/plugins/idea/%{name}-idea-%{_idea_ver}.tar.gz
25 # Source3-md5:  c326efe317b8f67593a3cd46d5557280
26 Patch0:         %{name}-dcc-send-limit.patch
27 Patch1:         %{name}-tinfo.patch
28 Patch2:         %{name}-home_etc.patch
29 Patch3:         %{name}.conf.patch
30 Patch4:         %{name}-idea-listlen.patch
31 Patch5:         %{name}-gcc4.patch
32 Patch6:         %{name}-dynamic.patch
33 Patch7:         %{name}-invalid_free.patch
34 URL:            http://www.irssi.org/
35 BuildRequires:  autoconf
36 BuildRequires:  automake
37 BuildRequires:  gettext-devel
38 BuildRequires:  glib-devel >= 1:1.2.10-13
39 BuildRequires:  glib2-devel >= 2.1.0
40 BuildRequires:  libtool
41 BuildRequires:  ncurses-devel >= 5.0
42 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
43 %{?with_perl:BuildRequires:     perl-devel >= 1:5.8.4}
44 BuildRequires:  pkgconfig
45 BuildRequires:  popt-devel
46 %{?with_perl:BuildRequires:     rpm-perlprov}
47 Requires:       perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
48 Obsoletes:      %{name}-speech
49 Obsoletes:      %{name}-sql
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %description
53 Irssi is a textUI IRC client with IPv6 support.
54
55 %description -l fr
56 Irssi est client IRC.
57
58 %description -l pl
59 Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6.
60
61 %package plugin-idea
62 Summary:        Irssi plugin IDEA crypt
63 Summary(pl):    Wtyczka do irssi do szyfrowania IDEA
64 Group:          Applications/Communications
65 Requires:       %{name} = %{version}
66
67 %description plugin-idea
68 This package contains IDEA Crypt plugin for Irssi.
69
70 %description plugin-idea
71 Ten pakiet zawiera wtyczkê do Irssi z szyfrowaniem IDEA.
72
73 %prep
74 %setup -q -n %{name}-0.8.10 -a3
75 %patch0 -p1
76 %patch1 -p1
77 %patch2 -p1
78 %patch3 -p1
79 %patch4 -p1
80 %patch5 -p1
81 %if %{with dynamic}
82 %patch6 -p1
83 %endif
84 %patch7 -p1
85
86 %build
87 rm -f missing
88 %{__libtoolize}
89 %{__aclocal} -I .
90 %{__autoconf}
91 %{__automake}
92 %configure \
93         --without-socks \
94         --with-bot \
95         --with-textui \
96         --with-proxy \
97         --with-terminfo \
98         --with-modules \
99         %{?with_perl:--with-perl=yes} \
100         %{?with_perl:--with-perl-lib=vendor} \
101         %{!?with_perl:--with-perl=no} \
102         %{?with_ipv6:--enable-ipv6} \
103         --enable-nls \
104         --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl
105
106 %{__make}
107
108 cd irssi-idea-%{_idea_ver}
109 rm -f missing
110 %{__libtoolize}
111 %{__aclocal} -I .
112 %{__autoconf}
113 %{__automake}
114 %configure
115
116 %{__make}
117
118
119 %install
120 rm -rf $RPM_BUILD_ROOT
121 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
122
123 %{__make} install \
124         DESTDIR=$RPM_BUILD_ROOT \
125         docdir=%{_datadir}/%{name}-%{version}
126
127 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
128 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
129
130 %{__make} -C irssi-idea-%{_idea_ver} install \
131         DESTDIR=$RPM_BUILD_ROOT
132
133 %clean
134 rm -rf $RPM_BUILD_ROOT
135
136 %files
137 %defattr(644,root,root,755)
138 %doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html}
139 %attr(755,root,root) %{_bindir}/*
140 %dir %{_libdir}/irssi
141 %dir %{_libdir}/irssi/modules
142 %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so*
143 %if %{with dynamic}
144 %attr(755,root,root) %{_libdir}/libirssi*.so.*
145 %endif
146 %{_datadir}/%{name}
147 %{_desktopdir}/irssi.desktop
148 %{_pixmapsdir}/*
149 %{_sysconfdir}/irssi.conf
150 %{_mandir}/man1/*
151
152 %if %{with perl}
153 %{perl_vendorarch}/*.pm
154 %dir %{perl_vendorarch}/Irssi
155 %{perl_vendorarch}/Irssi/*.pm
156
157 %dir %{perl_vendorarch}/auto/Irssi
158 %{perl_vendorarch}/auto/Irssi/*.bs
159 %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so
160
161 %dir %{perl_vendorarch}/auto/Irssi/Irc
162 %{perl_vendorarch}/auto/Irssi/Irc/*.bs
163 %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so
164
165 %dir %{perl_vendorarch}/auto/Irssi/TextUI
166 %{perl_vendorarch}/auto/Irssi/TextUI/*.bs
167 %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so
168
169 %dir %{perl_vendorarch}/auto/Irssi/UI
170 %{perl_vendorarch}/auto/Irssi/UI/*.bs
171 %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so
172 %endif
173
174 %files plugin-idea
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/irssi/modules/libidea.so
This page took 0.066159 seconds and 3 git commands to generate.