From 55e302bb1002e236afc9b2d33aa47128b8542133 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 13 Apr 2009 20:07:03 +0100 Subject: [PATCH] Python files. Add $QUICK_RPMBUILD flag to avoid running tests. --- libguestfs.spec.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libguestfs.spec.in b/libguestfs.spec.in index ed982a4..cfa1ec7 100644 --- a/libguestfs.spec.in +++ b/libguestfs.spec.in @@ -150,7 +150,7 @@ make INSTALLDIRS=vendor %check -make check +test -n "$QUICK_RPMBUILD" || make check %install @@ -181,6 +181,13 @@ popd find $RPM_BUILD_ROOT -name perllocal.pod -delete find $RPM_BUILD_ROOT -name .packlist -delete +rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.a +rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.la + +mkdir -p $RPM_BUILD_ROOT%{python_sitelib} +mv $RPM_BUILD_ROOT%{python_sitearch}/guestfs.py* \ + $RPM_BUILD_ROOT%{python_sitelib}/ + %clean rm -rf $RPM_BUILD_ROOT @@ -245,6 +252,10 @@ rm -rf $RPM_BUILD_ROOT %files python %defattr(-,root,root,-) +%{python_sitearch}/* +%{python_sitelib}/*.py +%{python_sitelib}/*.pyc +%{python_sitelib}/*.pyo %changelog -- 1.8.3.1