Summary: The Prelude library
Summary(pl.UTF-8): Biblioteka Prelude
Name: libprelude
-Version: 1.0.0
-Release: 4
+Version: 1.0.1
+Release: 6
License: GPL v2 or commercial
Group: Libraries
-#Source0Download: http://www.prelude-ids.com/developpement/telechargement/index.html
-Source0: http://www.prelude-ids.com/download/releases/libprelude/%{name}-%{version}.tar.gz
-# Source0-md5: a5bb76538d240e5fac5f6ab0b7fabfe5
+# https://www.prelude-ids.org/projects/prelude/files
+Source0: https://www.prelude-ids.org/attachments/download/241/%{name}-%{version}.tar.gz
+# Source0-md5: dce1ea9f82cf436830567894e7ee622f
Patch0: %{name}-libtool.patch
Patch1: %{name}-ruby.patch
+Patch2: %{name}-gnutls.patch
+Patch3: %{name}-gets.patch
+Patch4: %{name}-python.patch
+Patch5: format-security.patch
URL: http://www.prelude-ids.com/
BuildRequires: autoconf >= 2.59
BuildRequires: automake
%patch1 -p1
%endif
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+
sed -i -e 's/lua >= 5.1/lua51 >= 5.1/' configure.in
%build
%{__autoheader}
%{__automake}
%configure \
+ am_cv_ruby_rbexecdir=%{ruby_vendorarchdir} \
--enable-gtk-doc \
--enable-static \
--with%{!?with_lua:out}-lua \
%{__make}
+cd bindings/perl
+%{__make} clean
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor \
+%{__make}
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%if %{with perl}
-# missing from make install
-[ ! -f $RPM_BUILD_ROOT%{perl_vendorarch}/PreludeEasy.pm ] || exit 1
-cp -p bindings/perl/PreludeEasy.pm $RPM_BUILD_ROOT%{perl_vendorarch}
-%endif
+%{__make} -C bindings/perl install \
+ DESTDIR=$RPM_BUILD_ROOT
+
%if %{with lua}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/PreludeEasy.{la,a}
%endif
%py_postclean
%endif
%if %{with ruby}
-%{__rm} $RPM_BUILD_ROOT%{ruby_sitearchdir}/PreludeEasy.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/PreludeEasy.{la,a}
%endif
%clean
%defattr(644,root,root,755)
%{perl_vendorarch}/Prelude.pm
%dir %{perl_vendorarch}/auto/Prelude
-%{perl_vendorarch}/auto/Prelude/Prelude.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Prelude/Prelude.so
%files -n perl-PreludeEasy
%defattr(644,root,root,755)
%{perl_vendorarch}/PreludeEasy.pm
%dir %{perl_vendorarch}/auto/PreludeEasy
-%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.bs
%attr(755,root,root) %{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
%endif
%if %{with ruby}
%files -n ruby-prelude
%defattr(644,root,root,755)
-%attr(755,root,root) %{ruby_sitearchdir}/PreludeEasy.so
+%attr(755,root,root) %{ruby_vendorarchdir}/PreludeEasy.so
%endif