From 430b6ce0aa1b65db091260f091ef246b0f90b0bb Mon Sep 17 00:00:00 2001 From: jbj Date: Feb 06 2005 18:39:28 +0000 Subject: Override pythondir to /usr/lib64 where needed. Rip autogen.sh and the build dependency on libtool, no longer needed. --- 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