blob: ce2c935c623625a4f4c1e584b403d4a6a6182c22 (
plain)
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
26
27
28
29
30
31
32
33
34
35
|
SRCDIR := $(shell pwd)
NAME := oracle-instantclient-18.3
RPMDEFINES := --define "_sourcedir $(SRCDIR)" \
--define "_specdir $(SRCDIR)" \
--define "_srcrpmdir $(SRCDIR)" \
--define "_rpmdir $(SRCDIR)"
SRCDEFINES := --define "dist .remi" \
--define "_source_filedigest_algorithm 1" \
--define "_binary_filedigest_algorithm 1"
arch:
mv *.src.rpm /data/rpms/SRPMS.remi/ && echo done || echo Nothing to do
clean:
@echo Clean $(NAME) in $(SRCDIR)
@rm -rfv *~ noarch x86_64 *.src.rpm
srpm64:
rpmbuild $(RPMDEFINES) $(SRCDEFINES) -bs $(NAME)-x86_64.spec
build64:
rpmbuild $(RPMDEFINES) -bb $(NAME)-x86_64.spec
srpm32:
rpmbuild $(RPMDEFINES) $(SRCDEFINES) -bs $(NAME)-i386.spec
build32:
rpmbuild $(RPMDEFINES) -bb $(NAME)-i386.spec
bp:
rpmbuild $(RPMDEFINES) -bp $(NAME).spec
|