From 28c8da9787ee7fc592e9ed396bb69a98a71a3f6e Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 1 Apr 2009 16:28:46 +0200 Subject: Automatic package name detection --- GNUmakefile | 5 ++++- README | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 3ca24ef..a019300 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,6 @@ -NAME = changeme +# Change the following to an explicit package name if you want +# the spec file name to be different from the directory name +# for some reason. +NAME = $(notdir $(realpath .)) dummy := $(shell test -f git-rpm/git-rpm.mk || git submodule update --init) include git-rpm/git-rpm.mk diff --git a/README b/README index 7f1adc9..d5f1175 100644 --- a/README +++ b/README @@ -1,8 +1,7 @@ # How to use this file: -# 0. run "git init" -# 1. git submodule add 'git://fedorapeople.org/~ndim/git-rpm.git' git-rpm -# 2. copy git-rpm/GNUmakefile to your top directory: -# $ cp git-rpm/GNUmakefile . +# 0. $ mkdir mypkg && cd mypkg && git init +# 1. $ git submodule add 'git://fedorapeople.org/~ndim/git-rpm.git' git-rpm +# 2. $ ln -s git-rpm/GNUmakefile . # 3. write mypkg.spec, and fill in at least the Summary: line # 4. run "make setup" to created the upload directory to the server # 5. write mypkg.spec, patches, Source: files, etc. -- cgit