Skip to content

Commit

Permalink
fixing weird internal requirement in rpmbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Jan 30, 2024
1 parent d11e318 commit cb537cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ mkdir -p "$RPMBUILD_PATH"/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
tar --create --file "$RPMBUILD_PATH"/SOURCES/ton.tar.gz --transform 's,^,ton-dev/,' -C "$NIX_RESULT_PATH" .

rpmbuild --define "_topdir $RPMBUILD_PATH" \
--define "_prefix /usr" \
--define "_bindir /usr/bin" \
--define "_libdir /usr/lib" \
--define "_datadir /usr/share" \
--define "_prefix /usr/local" \
--define "_bindir /usr/local/bin" \
--define "_libdir /usr/local/lib" \
--define "_datadir /usr/local/share" \
--define "releasever $TON_RELEASE" \
--target "$PACKAGE_ARCH" \
-v -bb "$RPM_TEMPLATE_PATH"
Expand Down
2 changes: 2 additions & 0 deletions packages/rpm/SPECS/ton.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Source0: ton.tar.gz
Provides: %{_bindir}/create-state, %{_bindir}/fift

%global __os_install_post %{_usr}/lib/rpm/brp-compress %{nil} # disable brp-strip
%global __provides_exclude_from %{_libdir}
%global __requires_exclude ^(/usr/bin/create-state|/usr/bin/fift)$

%description
A collection of The Open Network core software and utilities.
Expand Down

0 comments on commit cb537cd

Please sign in to comment.