git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c5d4491
)
use Makefile to build and install
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 6 Nov 2006 22:05:44 +0000
(22:05 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 6 Nov 2006 22:05:44 +0000
(22:05 +0000)
PLCAPI.spec
patch
|
blob
|
history
diff --git
a/PLCAPI.spec
b/PLCAPI.spec
index
67d0c7f
..
95103e1
100644
(file)
--- a/
PLCAPI.spec
+++ b/
PLCAPI.spec
@@
-31,17
+31,9
@@
through Apache mod_python.
# for now.
%{__make} %{?_smp_mflags} SUBDIRS=php
# for now.
%{__make} %{?_smp_mflags} SUBDIRS=php
-# Byte compile
-%{__python} setup.py build
-
%install
rm -rf $RPM_BUILD_ROOT
%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}
# Install shell symlink
mkdir -p $RPM_BUILD_ROOT/%{_bindir}