--- ekg2.spec	2005-08-09 14:47:53.000000000 +0200
+++ ekg2.specx	2005-09-30 23:35:16.337965000 +0200
@@ -9,13 +9,14 @@
 %bcond_without	gnutls			# build jabber plugin without libgnutls
 %bcond_without	libgsm			# don't build libgsm plugin
 %bcond_without	python			# don't build Python plugin
+%bcond_without	perl			# don't build Perl plugin
 %bcond_without	sqlite			# don't build logsqlite plugin
 %bcond_without	xosd			# don't build xosd plugin
 
 %if %{with yesterday_snapshot}
 %define		_snap %(date +%%Y%%m%%d -d yesterday)
 %else
-%define		_snap 20050808
+%define		_snap 20050930
 %endif
 
 %if %{without jabber}
@@ -31,7 +32,7 @@
 License:	GPL v2+
 Group:		Applications/Communications
 Source0:	http://www.ekg2.org/archive/%{name}-%{_snap}.tar.gz
-# Source0-md5:	3c23c66e92846ea6ac90fd524059b014
+# Source0-md5:	caef3ce86b0d707faa1115e583a5a9fd
 URL:		http://www.ekg2.org/
 %{?with_aspell:BuildRequires:	aspell-devel}
 BuildRequires:	autoconf
@@ -49,6 +50,9 @@
 BuildRequires:	openssl-devel >= 0.9.7d
 %{?with_python:BuildRequires:	python-devel}
 %{?with_python:BuildRequires:   python}
+%{?with_perl:BuildRequires:	perl-devel}
+%{?with_perl:BuildRequires:	perl}
+
 BuildRequires:	sed >= 4.0
 %{?with_sqlite:BuildRequires:	sqlite-devel}
 %{?with_xosd:BuildRequires:	xosd-devel}
@@ -120,6 +124,18 @@
 %description plugin-scripting-python -l pl
 Wtyczka skryptów Pythona dla ekg2.
 
+%package plugin-scripting-perl
+Summary:	Perl scripting plugin for ekg2
+Summary(pl):	Wtyczka języka Perl dla ekg2
+Group:		Applications/Communications
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+
+%description plugin-scripting-perl
+Python scripting Perl for ekg2.
+
+%description plugin-scripting-perl -l pl
+Wtyczka skryptów Perla dla ekg2.
+
 %package plugin-ioctld
 Summary:	Ioctld plugin for ekg2
 Summary(pl):	Wtyczka ioctld dla ekg2
@@ -263,6 +279,12 @@
 # %{_datadir}/%{name}/plugins/jabber
 %endif
 
+%if %{with perl}
+%files plugin-scripting-perl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/plugins/perl.so
+%endif
+
 %files plugin-ioctld
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/plugins/ioctld.so
