提交 c4f6087b 编写于 作者: L Lucas Meneghel Rodrigues 提交者: Lucas Meneghel Rodrigues

Merge pull request #48 from ruda/makefile_build_rpm

Add new rule 'build-rpm-all' to the Makefile.
......@@ -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.
先完成此消息的编辑!
想要评论请 注册