source: trunk/Makefile@ 172

Last change on this file since 172 was 169, checked in by kdeugau, 12 years ago

/trunk

Light tweak on the .spec to reflect the GPL2+ header
Add bash as a dependency in the .spec file, so we can use /bin/bash

in scriptlets. Debian's migration of /bin/sh -> /bin/dash has
turned out to have some very unfortunate effects on scriptlets...

Trim empty lines and comment lines from %files sections
Typofix a warning
Tighten up build-dependency checking:

  • add a ##fixme to ponder regarding the exact syntax for the entries
  • find a workable way to detect if virtual packages are installed, at least for this week

Extend the characters checked for in sonames for auto-requires
Expand a newly-found macro "buildsubdir" -> %_topdir/BUILD/<tarball-dir>

  • Property svn:keywords set to Id
File size: 885 bytes
Line 
1# quick makefile for debbuild
2# $Id: Makefile 169 2012-09-13 20:15:44Z kdeugau $
3
4MANIFEST = \
5 debbuild Makefile COPYING debbuild.spec
6
7PKGNAME=debbuild
8VERSION=0.9.6
9
10MANDIR=/usr/share/man
11CONFDIR=/etc
12
13all:
14 # nothing to do
15
16install:
17 mkdir -p $(DESTDIR)/usr/bin
18 cp debbuild $(DESTDIR)/usr/bin
19
20 mkdir -p $(DESTDIR)$(MANDIR)/man8
21 pod2man --center="DeepNet Dev Tools" --section 8 \
22 debbuild | gzip > $(DESTDIR)$(MANDIR)/man8/debbuild.8.gz
23
24dist:
25 mkdir $(PKGNAME)-$(VERSION)
26 tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xvf -)
27 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec
28 /usr/bin/perl -p -e 's/[\d.]+"; #VERSION#/$(VERSION)";/' < debbuild > $(PKGNAME)-$(VERSION)/debbuild
29 tar cvf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
30 gzip -v -f -9 $(PKGNAME)-$(VERSION).tar
31 rm -rf $(PKGNAME)-$(VERSION)
32 gpg -a --detach-sign $(PKGNAME)-$(VERSION).tar.gz
Note: See TracBrowser for help on using the repository browser.