提交 54c74757 编写于 作者: R Rudá Moura 提交者: Ruda Moura

Add new rule 'build-rpm-all' to the Makefile.

Add rule to build both source and binary RPMs.
Signed-off-by: NRuda Moura <rmoura@redhat.com>
上级 31294570
......@@ -10,6 +10,7 @@ all:
@echo "make build-deb-src - Generate a source debian package"
@echo "make build-deb-bin - Generate a binary debian package"
@echo "make build-deb-all - Generate both source and binary debian packages"
@echo "make build-rpm-all - Generate both source and binary RPMs"
@echo "make clean - Get rid of scratch and byte files"
source:
......@@ -37,8 +38,14 @@ build-deb-all: prepare-source
# build both source and binary packages
dpkg-buildpackage -i -I -rfakeroot
build-rpm-all: source
rpmbuild --define '_topdir %{getenv:PWD}' \
--define '_sourcedir %{_topdir}/dist/' \
--define "avocadoversion $(VERSION)" \
-ba avocado.spec
clean:
$(PYTHON) setup.py clean
$(MAKE) -f $(CURDIR)/debian/rules clean
rm -rf build/ MANIFEST
$(MAKE) -f $(CURDIR)/debian/rules clean || true
rm -rf build/ MANIFEST BUILD BUILDROOT SPECS RPMS SRPMS
find . -name '*.pyc' -delete
Summary: Avocado Test Framework
Name: avocado
Version: 0.0.1
Version: %{avocadoversion}
Release: 1%{?dist}
License: GPLv2
Group: Development/Tools
URL: https://github.com/lmr/avocado
URL: http://avocado-framework.readthedocs.org/
Source: avocado-%{version}.tar.gz
BuildRequires: python2-devel
BuildArch: noarch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册