From d16ae4ed95b3ccb317baf3a8d7fd7b56c58599a2 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Fri, 16 Dec 2011 14:24:44 +0100 Subject: [PATCH] specfile name change and man page install Makefile.in fixes [Milan] --- Makefile.in | 5 ++++- ...isioning-tools.spec => device-mapper-persistent-data.spec | 2 +- mk_release | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) rename thin-provisioning-tools.spec => device-mapper-persistent-data.spec (95%) diff --git a/Makefile.in b/Makefile.in index 5dfcb42..ae9a070 100644 --- a/Makefile.in +++ b/Makefile.in @@ -41,6 +41,7 @@ LIBS=-lstdc++ INSTALL=@INSTALL@ DESTDIR=@prefix@ BINDIR=$(DESTDIR)/sbin +MANPATH=$(DESTDIR)$(MANDIR) .PHONEY: test-programs @@ -94,7 +95,9 @@ install: $(PROGRAMS) $(INSTALL) -m 755 -D thin_repair $(BINDIR)/thin_repair $(INSTALL) -m 755 -D thin_dump $(BINDIR)/thin_dump $(INSTALL) -m 755 -D thin_restore $(BINDIR)/thin_restore - $(INSTALL) -m 644 man8/* $(MANDIR)/man8 + $(INSTALL) -m 644 -D man8/thin_repair.8 $(MANPATH)/man8/thin_repair.8 + $(INSTALL) -m 644 -D man8/thin_dump.8 $(MANPATH)/man8/thin_dump.8 + $(INSTALL) -m 644 -D man8/thin_restore.8 $(MANPATH)/man8/thin_restore.8 -include $(subst .cc,.d,$(SOURCE)) -include $(subst .cc,.d,$(TEST_SOURCE)) diff --git a/thin-provisioning-tools.spec b/device-mapper-persistent-data.spec similarity index 95% rename from thin-provisioning-tools.spec rename to device-mapper-persistent-data.spec index eef41d3..f03f840 100644 --- a/thin-provisioning-tools.spec +++ b/device-mapper-persistent-data.spec @@ -24,7 +24,7 @@ manage device-mapper thin provisioning target metadata devices. %configure --enable-debug --enable-testing %install -make DESTDIR=%{buildroot} install +make DESTDIR=%{buildroot} MANDIR=%{_mandir} install %clean diff --git a/mk_release b/mk_release index a437647..2a4fa68 100644 --- a/mk_release +++ b/mk_release @@ -16,6 +16,7 @@ mkdir $dir git clone . $dir cd $dir git checkout $tag +autoreconf rm -rf .git cd $tmp tar jcvf $orig_dir/thin-provisioning-tools-$tag.tar.bz2 thin-provisioning-tools-$tag