-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
25 lines (19 loc) · 633 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PKGNAME=nagios-plugins-eudat-b2access
SPECFILE=${PKGNAME}.spec
FILES=check_b2access.py ${SPECFILE}
PKGVERSION=$(shell grep -s '^Version:' $(SPECFILE) | sed -e 's/Version:\s*//')
srpm: dist
rpmbuild -ts --define='dist .el6' ${PKGNAME}-${PKGVERSION}.tar.gz
rpm: dist
rpmbuild -ta ${PKGNAME}-${PKGVERSION}.tar.gz
dist:
rm -rf dist
mkdir -p dist/${PKGNAME}-${PKGVERSION}
cp -pr ${FILES} dist/${PKGNAME}-${PKGVERSION}/
tar zcf dist/${PKGNAME}-${PKGVERSION}.tar.gz -C dist ${PKGNAME}-${PKGVERSION}
mv dist/${PKGNAME}-${PKGVERSION}.tar.gz .
rm -rf dist
sources: dist
clean:
rm -rf ${PKGNAME}-${PKGVERSION}.tar.gz
rm -rf dist