diff --git a/beecrypt.spec b/beecrypt.spec index 9a5b19c..c29dba9 100644 --- a/beecrypt.spec +++ b/beecrypt.spec @@ -16,7 +16,6 @@ BuildPreReq: doxygen BuildPreReq: python-devel >= %{with_python_version} %endif BuildRoot: %{_tmppath}/%{name}-root -#BuildRequires: libtool %description Beecrypt is a general-purpose cryptography library. @@ -56,18 +55,18 @@ files needed for using java with beecrypt. %prep %setup -q -#./autogen.sh - %build %configure --enable-shared --enable-static %{?with_python} %{?with_java} -make %{?_smp_mflags} +make %{?_smp_mflags} \ + %{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"} doxygen %install rm -fr $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT \ + %{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"} # XXX nuke unpackaged files, artifacts from using libtool to produce module rm -f ${RPM_BUILD_ROOT}%{_libdir}/python%{with_python_version}/site-packages/_bc.*a