File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ build_prepare: archive
31
31
srpm : build_prepare
32
32
/usr/bin/mock \
33
33
-r $(MOCK_CONFIG ) \
34
+ $(MOCK_OPTIONS ) \
34
35
--define " __version $( VERSION) " \
35
36
--define " __release $( BUILD_NUMBER) " \
36
37
--enable-network \
@@ -46,6 +47,7 @@ srpm: build_prepare
46
47
rpm : srpm
47
48
/usr/bin/mock \
48
49
-r $(MOCK_CONFIG ) \
50
+ $(MOCK_OPTIONS ) \
49
51
--define " __version $( VERSION) " \
50
52
--define " __release $( BUILD_NUMBER) " \
51
53
--enable-network \
Original file line number Diff line number Diff line change 1
1
# RPM packages for librdkafka
2
2
3
+ On a system with RPM mock installed, simply run make to create RPM packages:
4
+
5
+ $ make
6
+
7
+ Additional mock options may be specified using MOCK_OPTIONS:
8
+
9
+ $ make MOCK_OPTIONS='--bootstrap-chroot'
10
+
11
+
3
12
## Build with Mock on docker
4
13
5
14
From the librdkafka top-level directory:
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ if [[ $on_builder == 0 ]]; then
39
39
40
40
mkdir -p ${PWD} /packaging/rpm/cache/mock
41
41
42
- docker run --cap-add=SYS_ADMIN \
42
+ docker run \
43
43
--privileged \
44
44
-t \
45
45
-v ${PWD} /packaging/rpm/cache/mock:/var/cache/mock \
You can’t perform that action at this time.
0 commit comments