[xml] Re: DESTDIR und python subdir



Daniel Veillard <veillard redhat com> writes:

  I had to remove DESTDIR because it broke "make rpm" on my setup,
are you using my spec file ?

It's based on one of your previous spec files; at the moment my
%install section reads as follows:

%define prefix      %{_prefix}
%define sysconfdir  %{_sysconfdir}
%define prefixgnome /opt/gnome

...

%install
%define python_sitepath %(python -c "import site; print site.sitedirs[0]")
rm -rf $RPM_BUILD_ROOT
export RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT \
     XML_LIBDIR="-L/usr/%_lib -L/usr/X11R6/%_lib" install
%{INSTALL_DIR} $RPM_BUILD_ROOT%{prefixgnome}/%_lib
pushd $RPM_BUILD_ROOT%{prefixgnome}/%_lib
  ln -s ../../../%_libdir/xml2Conf.sh .
popd
pushd $RPM_BUILD_ROOT%{prefix}/include
  ln -s libxml2/libxml libxml
popd
chmod +x $RPM_BUILD_ROOT%_libdir/lib*.so.*
/sbin/ldconfig -n $RPM_BUILD_ROOT%_libdir
make -C python install \
        DESTDIR=$RPM_BUILD_ROOT \
        pythondir=%python_sitepath \
        PYTHON_SITE_PACKAGES=%python_sitepath

I didn't test the resulting package but with my patch it builds again
and it's larger then 0 byte ;)

-- 
Linux frechet 2.4.18-4GB #1 Fri Apr 5 15:14:39 UTC 2002 i686 unknown
  4:12pm  up 140 days,  1:38, 11 users,  load average: 0.19, 0.19, 0.21
                                             work    :      ke suse de
Karl Eichwalder                              home    : keichwa gmx net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]