Summary(pl.UTF-8): Biblioteka Prelude
Name: libprelude
Version: 1.0.1
-Release: 2
+Release: 3
License: GPL v2 or commercial
Group: Libraries
# https://www.prelude-ids.org/projects/prelude/files
%{__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
%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