Update build-fedora.sh

This commit is contained in:
Wizzard 2024-02-26 02:27:38 -05:00
parent f5bd28a6e1
commit df5433db25
1 changed files with 11 additions and 0 deletions

View File

@ -1 +1,12 @@
#!/bin/bash
rpmbuild -bb ip-lookup.spec --define "_sourcedir $(pwd)" --define "_specdir $(pwd)" --define "_builddir $(pwd)" --define "_srcrpmdir $(pwd)" --define "_rpmdir $(pwd)"
RPM_FILE=$(find $(pwd)/x86_64 -type f -name '*.rpm' ! -name '*.src.rpm')
if [ -n "$RPM_FILE" ]; then
echo "Installing $RPM_FILE..."
sudo dnf install "$RPM_FILE"
else
echo "No RPM package found to install."
fi