Skip to content

Commit

Permalink
convert rpmbuild to git style
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Sjerps committed Apr 6, 2018
1 parent 215d7d0 commit 9e9566c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SPECS/asmdisks.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Also supports EMC Powerpath and EMC DSSD volumes.
%install
rm -rf %{buildroot}
mkdir %{buildroot}
mv * %{buildroot}

%makeinstall

%files
%defattr(0444,root,root)
Expand Down
14 changes: 12 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# License : GPLv3+
# ---------------------------------------------------------------------------

version = 1.4.4
prefix = /usr/local
bindir = $(prefix)/bin
mandir = $(prefix)/share/man
Expand All @@ -14,15 +15,24 @@ sysconfdir = /etc

all:

src:
tar -jcvf $(HOME)/SOURCES/asmdisks-$(version).tbz2 --transform "s|^|asmdisks/|" *

rpm: src
cd ../SPECS ; rpmbuild -ba asmdisks.spec

install:
install -d 0755 $(bindir)
install -d 0755 $(sysconfdir)/bash_completion.d
install -d 0755 $(mandir)/man1
install -d 0755 $(docdir)
install -d 0755 $(docdir)/asmdisks
install -m 0755 bin/asm bin/asmstat bin/diskheader bin/wipedisk $(bindir)
install -m 0644 bin/asm.bash $(sysconfdir)/bash_completion.d
install -m 0644 man/* $(mandir)/man1/
install -m 0444 doc/* $(docdir)/
install -m 0444 doc/* $(docdir)/asmdisks/

clean:
rm $(HOME)/SOURCES/asmdisks-$(version).tbz2

.PHONY: install

0 comments on commit 9e9566c

Please sign in to comment.