ip-lookup/build-fedora.sh

13 lines
403 B
Bash
Raw Normal View History

2024-02-26 02:27:38 -05:00
#!/bin/bash
2024-02-26 02:23:14 -05:00
rpmbuild -bb ip-lookup.spec --define "_sourcedir $(pwd)" --define "_specdir $(pwd)" --define "_builddir $(pwd)" --define "_srcrpmdir $(pwd)" --define "_rpmdir $(pwd)"
2024-02-26 02:27:38 -05:00
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