From 577d466866021e7ab7f17560c70da9bafd018fc6 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 6 Nov 2006 22:05:44 +0000 Subject: [PATCH 1/1] use Makefile to build and install --- PLCAPI.spec | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/PLCAPI.spec b/PLCAPI.spec index 67d0c7f..95103e1 100644 --- a/PLCAPI.spec +++ b/PLCAPI.spec @@ -31,17 +31,9 @@ through Apache mod_python. # for now. %{__make} %{?_smp_mflags} SUBDIRS=php -# Byte compile -%{__python} setup.py build - %install rm -rf $RPM_BUILD_ROOT - -# Install in /usr/share/plc_api -%{__python} setup.py install \ - --install-purelib=$RPM_BUILD_ROOT/%{_datadir}/plc_api \ - --install-scripts=$RPM_BUILD_ROOT/%{_datadir}/plc_api \ - --install-data=$RPM_BUILD_ROOT/%{_datadir}/plc_api +%{__make} %{?_smp_mflags} install DESTDIR="$RPM_BUILD_ROOT" datadir="%{_datadir}" bindir="%{_bindir}" # Install shell symlink mkdir -p $RPM_BUILD_ROOT/%{_bindir} -- 2.45.2