%define url $URL: svn+ssh://svn.planet-lab.org/svn/geniwrapper/trunk/geniwrapper.spec $ %define name geniwrapper %define version 0.2 %define taglevel 3 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} %global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" ) Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.bz2 License: GPL Group: Applications/System BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Vendor: PlanetLab Packager: PlanetLab Central Distribution: PlanetLab %{plrelease} URL: %(echo %{url} | cut -d ' ' -f 2) BuildRequires: make Requires: python Requires: pyOpenSSL >= 0.7 Requires: m2crypto Summary: Geniwrapper Group: Applications/System %description Geniwrapper description... %prep %setup -q %build make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR="$RPM_BUILD_ROOT" # hack to add installed files to the package python -c "print '\n'.join(['%s*'%i.strip() for i in open('GENI_INSTALLED_FILES').readlines() if not i.strip().endswith('.pyc')])" |uniq > GENI_INSTALLED_FILES.all %clean rm -rf $RPM_BUILD_ROOT %files -f GENI_INSTALLED_FILES.all %defattr(-,root,root) /usr/share/keyconvert %post chmod 0744 /etc/init.d/geniwrapper %changelog * Wed Jun 03 2009 Thierry Parmentelat - geniwrapper-0.2-3 - various fixes * Sat May 30 2009 Thierry Parmentelat - geniwrapper-0.2-2 - bugfixes - still a work in progress * Fri May 18 2009 Baris Metin - initial package