X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=147f165b2cb31ffdbc37748f41ba934437c5074c;hb=9e66cac2ba5bc6334870746939dfc6bb22ebb649;hp=d0629898421aeacaa9bd2babd4fd3a5c93186656;hpb=2dc5c5a91cba301a3627f1c3f32fdb057e97d384;p=libvirt-python.git diff --git a/Makefile b/Makefile index d062989..147f165 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,11 @@ WEBFETCH := wget SHA1SUM := sha1sum -# tried to download this on the fly using git archive at git://libvirt.org/libvirt.git -# but it feels like git archive is not supported/allowed there -ALL += libvirt -libvirt-URL1 := http://mirror.onelab.eu/third-party/libvirt-1.0.4.tar.gz -libvirt-URL2 := http://planet-lab.org/third-party/libvirt-1.0.4.tar.gz -libvirt-SHA1SUM := 45e74a9a4c3a88c98ac4ae5d8200ea65c42b6951 -libvirt := $(notdir $(libvirt-URL1)) +ALL += libvirt-python +libvirt-python-URL1 := http://mirror.onelab.eu/third-party/libvirt-python-1.2.1.tar.gz +libvirt-python-URL2 := http://planet-lab.org/third-party/libvirt-python-1.2.1.tar.gz +libvirt-python-SHA1SUM := 874014e3b1b199919d40a34f12829fa1d610a2ea +libvirt-python := $(notdir $(libvirt-python-URL1)) all: $(ALL) .PHONY: all @@ -31,24 +29,22 @@ $($(1)): fi endef -$(eval $(call download_target,libvirt)) +$(eval $(call download_target,libvirt-python)) + +# install libvirt-devel +$(shell yum localinstall $(FAKEROOT)/RPMS/libvirt-devel-1.2.1-0.rpm) sources: $(ALL) .PHONY: sources #################### # default - overridden by the build -SPECFILE = libvirt.spec +SPECFILE = libvirt-python.spec PWD=$(shell pwd) PREPARCH ?= noarch RPMDIRDEFS = --define "_sourcedir $(PWD)" --define "_builddir $(PWD)" --define "_srcrpmdir $(PWD)" --define "_rpmdir $(PWD)" -BUILDOPTS = --without xen --without qemu --without hyperv --without phyp --without esx \ - --without netcf --without avahi --without polkit --without sasl --without audit \ - --without storage-iscsi --without storage-scsi --without storage-disk \ - --without storage-rbd --without selinux --without dtrace --without sanlock \ - --without libxl --with capng --with udev --with interface \ - --define 'packager PlanetLab' +BUILDOPTS = --with python3 --define 'packager PlanetLab' trees: sources rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bp --target $(PREPARCH) $(SPECFILE)