Skip to content

Commit

Permalink
Merge codyps#17
Browse files Browse the repository at this point in the history
17: do-rpm: set build flags to the rpm provided ones (instead of using dev flags) r=jmesmon a=jmesmon

Fixes codyps#11

Co-authored-by: Cody P Schafer <[email protected]>
  • Loading branch information
bors[bot] and codyps committed Mar 28, 2020
2 parents f2b9364 + 3337adb commit 6d56b3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ illum-ctl

# FIXME: remove once config.h is shoved in one of the build subdirs
config.h

/BUILD/
/RPMS/
/SRPMS/
/RPM_SOURCES/
2 changes: 1 addition & 1 deletion do-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ gzip -9 RPM_SOURCES/ccan-"$ccan_ph".tar

sed -e s,%ver%,$pv,g -e s,%dist%,$dist,g -e s,%commit%,$ph,g -e s,%ccan_commit%,$ccan_ph,g < $pn.spec.in > RPM_SOURCES/$pn.spec

rpmbuild -D_topdir" $(pwd)" -D_sourcedir" $(pwd)"/RPM_SOURCES -D_specdir" $(pwd)"/RPM_SOURCES -ba RPM_SOURCES/"$pn".spec
rpmbuild --nodeps -D_topdir" $(pwd)" -D_sourcedir" $(pwd)"/RPM_SOURCES -D_specdir" $(pwd)"/RPM_SOURCES -ba RPM_SOURCES/"$pn".spec
3 changes: 2 additions & 1 deletion illum.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ rmdir ccan
mv $(basename %{SOURCE1} .tar.gz) ccan

%build
./build
%set_build_flags
./build -v

%install
rm -rf $RPM_BUILD_ROOT
Expand Down

0 comments on commit 6d56b3b

Please sign in to comment.