X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=codemux.spec;h=7196e6433647f31a6f530d64a380f5a473e02d4d;hb=7311509d11a0986a52967c1195f4cfb8bce2b332;hp=a713adf4fa5caf48c0a5a629c1e04596f35ef8ca;hpb=c208f01c6a4c8d896c81692f65a302b426cb7c5f;p=codemux.git diff --git a/codemux.spec b/codemux.spec index a713adf..7196e64 100644 --- a/codemux.spec +++ b/codemux.spec @@ -1,14 +1,24 @@ -Summary: CoDemux - HTTP port demultiplexer -Name: codemux -Version: 0.5 -Release: 1 +%define name codemux +%define version 0.1 +%define release 7%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Summary: CoDemux - HTTP port DeMux +Name: %{name} +Version: %{version} +Release: %{release} License: Private Group: System Environment/Base +Source: %{name}-%{version}.tar.gz +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab 3.0 URL: http://codeen.cs.princeton.edu/ -Source0: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#Requires: vnet %description +codemux is a privileged port (80) sharing service that passes traffic to and from slices via localhost ports. + %prep %setup -q @@ -21,26 +31,21 @@ make %install rm -rf $RPM_BUILD_ROOT -make INSTALL_ROOT=$RPM_BUILD_ROOT install-all - -# Build and install in %post so that it gets put in the right site-packages directory -#rm -rf $RPM_BUILD_ROOT/usr/lib/python* -#install -D -m 755 python/Proper.py $RPM_BUILD_ROOT/%{_datadir}/%{name}/Proper.py +make INSTALL_ROOT=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root,-) +%defattr(0644,root,root) %attr(0755,root,root) %{_initrddir}/codemux %config /etc/codemux/codemux.conf -%attr(0755,root,root) /usr/local/planetlab/sbin/codemux +%attr(0755,root,root) /usr/sbin/codemux %post chkconfig codemux reset if [ -z "$PL_BOOTCD" ]; then - /sbin/ldconfig /etc/init.d/codemux restart fi @@ -55,8 +60,6 @@ if [ "$1" = 0 ]; then fi fi -%doc - %changelog * Sun Apr 22 2007 KYOUNGSOO PARK - - Initial build.