git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- list join_tables that reference slices
[plcapi.git]
/
PLCAPI.spec
diff --git
a/PLCAPI.spec
b/PLCAPI.spec
index
67d0c7f
..
92bfef4
100644
(file)
--- a/
PLCAPI.spec
+++ b/
PLCAPI.spec
@@
-1,7
+1,7
@@
Summary: PlanetLab Central API
Name: PLCAPI
Version: 4.0
Summary: PlanetLab Central API
Name: PLCAPI
Version: 4.0
-Release: 1
+Release: 1
%{?pldistro:.%{pldistro}}%{?date:.%{date}}
License: PlanetLab
Group: System Environment/Daemons
URL: http://cvs.planet-lab.org/cvs/new_plc_api
License: PlanetLab
Group: System Environment/Daemons
URL: http://cvs.planet-lab.org/cvs/new_plc_api
@@
-10,6
+10,17
@@
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Obsoletes: plcapilib
Obsoletes: plcapilib
+# We use set everywhere
+Requires: python >= 2.4
+
+# We use psycopg2
+BuildRequires: postgresql-devel
+
+# Standard xmlrpc.so that ships with PHP does not marshal NULL
+BuildRequires: php-devel
+Obsoletes: php-xmlrpc
+Provides: php-xmlrpc
+
# OpenJade does not honor XML catalog files and tries to access
# www.oasis-open.org even if DTDs are locally installed. Disable
# documentation generation for now.
# OpenJade does not honor XML catalog files and tries to access
# www.oasis-open.org even if DTDs are locally installed. Disable
# documentation generation for now.
@@
-29,33
+40,35
@@
through Apache mod_python.
%build
# Build __init__.py metafiles and PHP API. Do not build documentation
# for now.
%build
# Build __init__.py metafiles and PHP API. Do not build documentation
# for now.
-%{__make} %{?_smp_mflags} SUBDIRS=php
-
-# Byte compile
-%{__python} setup.py build
+%{__make} %{?_smp_mflags} subdirs="php php/xmlrpc"
%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}
-ln -s %{_datadir}/plc_api/Shell.py $RPM_BUILD_ROOT/%{_bindir}/plcsh
+ln -s %{_datadir}/plc_api/plcsh $RPM_BUILD_ROOT/%{_bindir}/plcsh
+
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/php.d
+cat > $RPM_BUILD_ROOT/%{_sysconfdir}/php.d/xmlrpc.ini <<EOF
+; Enable xmlrpc extension module
+extension=xmlrpc.so
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
+%define php_extension_dir %(php-config --extension-dir)
+
%files
%defattr(-,root,root,-)
%doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html
%dir %{_datadir}/plc_api
%{_datadir}/plc_api/*
%{_bindir}/plcsh
%files
%defattr(-,root,root,-)
%doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html
%dir %{_datadir}/plc_api
%{_datadir}/plc_api/*
%{_bindir}/plcsh
+%{php_extension_dir}/xmlrpc.so
+%{_sysconfdir}/php.d/xmlrpc.ini
%changelog
* Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -
%changelog
* Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -