Skip to content

Commit 4819019

Browse files
committed
Fix.
1 parent 5ffc1de commit 4819019

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ rpm-package:
8282
cp $(SQLITE_LIB) rpm_root/usr/local/lib
8383

8484
mkdir -p rpm_root/BUILD rpm_root/RPMS rpm_root/SOURCES rpm_root/SPECS rpm_root/SRPMS
85-
mkdir -p rpm_root/SPECS
8685
echo "%define _topdir $(shell pwd)/rpm_root" > rpm_root/SPECS/sqlwrite.spec
8786
echo "Name: sqlwrite" >> rpm_root/SPECS/sqlwrite.spec
8887
echo "Version: 1.0" >> rpm_root/SPECS/sqlwrite.spec
@@ -98,7 +97,8 @@ rpm-package:
9897
echo "/usr/local/lib/$(LIBFILE)" >> rpm_root/SPECS/sqlwrite.spec
9998
echo "/usr/local/lib/$(SQLITE_LIB)" >> rpm_root/SPECS/sqlwrite.spec
10099

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
102102
cp rpm_root/RPMS/*/sqlwrite-1.0-1.*.rpm sqlwrite-linux.rpm
103103

104104

0 commit comments

Comments
 (0)