File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ rpm-package:
82
82
cp $(SQLITE_LIB ) rpm_root/usr/local/lib
83
83
84
84
mkdir -p rpm_root/BUILD rpm_root/RPMS rpm_root/SOURCES rpm_root/SPECS rpm_root/SRPMS
85
- mkdir -p rpm_root/SPECS
86
85
echo "%define _topdir $(shell pwd)/rpm_root" > rpm_root/SPECS/sqlwrite.spec
87
86
echo "Name: sqlwrite" >> rpm_root/SPECS/sqlwrite.spec
88
87
echo "Version: 1.0" >> rpm_root/SPECS/sqlwrite.spec
@@ -98,7 +97,8 @@ rpm-package:
98
97
echo "/usr/local/lib/$(LIBFILE)" >> rpm_root/SPECS/sqlwrite.spec
99
98
echo "/usr/local/lib/$(SQLITE_LIB)" >> rpm_root/SPECS/sqlwrite.spec
100
99
101
- rpmbuild -bb rpm_root/SPECS/sqlwrite.spec --buildroot $(shell pwd)/rpm_root
100
+ # Run rpmbuild with the --noclean flag to prevent deleting the spec file
101
+ rpmbuild -bb rpm_root/SPECS/sqlwrite.spec --buildroot $(shell pwd)/rpm_root --noclean
102
102
cp rpm_root/RPMS/*/sqlwrite-1.0-1.*.rpm sqlwrite-linux.rpm
103
103
104
104
You can’t perform that action at this time.
0 commit comments