Summary(pl.UTF-8): Biblioteka Prelude
Name: libprelude
Version: 1.0.1
-Release: 2
+Release: 6
License: GPL v2 or commercial
Group: Libraries
# https://www.prelude-ids.org/projects/prelude/files
%{__rm} bindings/ruby/PreludeEasy.cxx
%patch1 -p1
%endif
+%if %{with perl}
+# regenerate with fresh swig for perl 5.20
+%{__rm} bindings/low-level/perl/Prelude.c
+%endif
%patch2 -p1
%patch3 -p1
%{__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
+%{__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