specfile name change and man page install Makefile.in fixes [Milan]

This commit is contained in:
Heinz Mauelshagen 2011-12-16 14:24:44 +01:00
parent 7a3aafddcc
commit d16ae4ed95
3 changed files with 6 additions and 2 deletions

View File

@ -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))

View File

@ -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

View File

@ -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