Python files. Add $QUICK_RPMBUILD flag to avoid running tests.
authorRichard Jones <rjones@redhat.com>
Mon, 13 Apr 2009 19:07:03 +0000 (20:07 +0100)
committerRichard Jones <rjones@redhat.com>
Mon, 13 Apr 2009 19:07:03 +0000 (20:07 +0100)
libguestfs.spec.in

index ed982a4..cfa1ec7 100644 (file)
@@ -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