-# TODO:
-# - warning: Installed (but unpackaged) file(s) found:
-# /usr/lib/perl5/5.10.0/i686-pld-linux-thread-multi/perllocal.pod
-# /usr/lib/perl5/vendor_perl/5.10.0/i686-pld-linux-thread-multi/auto/Ekg2/.packlist
-# /usr/lib/perl5/vendor_perl/5.10.0/i686-pld-linux-thread-multi/auto/Ekg2/Irc/.packlist
#
# Conditional build:
%bcond_without aspell # build without spell-checking support with aspell
%if %{with git}
%define subver git.%(date +%Y%m%d)
%else
-%define subver 20110703
+%define subver 20180902
%endif
-%define rel 10
+%define rel 7
%if %{with sqlite}
%undefine sqlite3
License: GPL v2+
Group: Applications/Communications
%if %{without git}
-Source0: https://github.com/leafnode/ekg2/tarball/master?/%{name}-%{subver}.tar.bz2
-# Source0-md5: f451ea9f281d6b8c2578059a3863cee3
+Source0: https://github.com/leafnode/ekg2/tarball/master?/%{name}-%{subver}.tar.gz
+# Source0-md5: 2ce452ebcecc03532dee956c5648d890
%endif
Patch0: %{name}-perl-install.patch
Patch1: %{name}-gtk.patch
Patch2: %{name}-bug-63.patch
Patch3: %{name}-keepalive_irc.patch
+Patch4: openssl.patch
URL: http://ekg2.org/
%{?with_aspell:BuildRequires: aspell-devel}
BuildRequires: autoconf
git checkout FETCH_HEAD
%else
%setup -q -c -n %{name}-%{subver}
-mv leafnode-ekg2-*/* .
+%{__mv} ekg2-ekg2-*/* .
%endif
%patch0 -p1
%patch3 -p1
%endif
+%patch4 -p1
touch po/Makefile.in.in
find -name *.c > po/POTFILES.in
%{_datadir}/%{name}/plugins/mail
%attr(755,root,root) %{_libdir}/%{name}/plugins/ncurses.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/ncurses.la
+%attr(755,root,root) %{_libdir}/%{name}/plugins/rc.so
+%attr(755,root,root) %{_libdir}/%{name}/plugins/rc.la
%attr(755,root,root) %{_libdir}/%{name}/plugins/sms.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/sms.la
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/plugins/logs
%{_datadir}/%{name}/plugins/ncurses
%{_datadir}/%{name}/plugins/sms
+%{_datadir}/%{name}/plugins/rc
%dir %{_datadir}/%{name}/scripts
%{_datadir}/%{name}/themes