From d41220c7e8444c266606ef401b95edee8001917b Mon Sep 17 00:00:00 2001 From: Wizzard Date: Mon, 26 Feb 2024 02:23:14 -0500 Subject: [PATCH] Fedora build --- build-fedora.sh | 1 + ip-lookup.spec | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 build-fedora.sh create mode 100644 ip-lookup.spec diff --git a/build-fedora.sh b/build-fedora.sh new file mode 100644 index 0000000..74a3fb9 --- /dev/null +++ b/build-fedora.sh @@ -0,0 +1 @@ +rpmbuild -bb ip-lookup.spec --define "_sourcedir $(pwd)" --define "_specdir $(pwd)" --define "_builddir $(pwd)" --define "_srcrpmdir $(pwd)" --define "_rpmdir $(pwd)" diff --git a/ip-lookup.spec b/ip-lookup.spec new file mode 100644 index 0000000..c79bce3 --- /dev/null +++ b/ip-lookup.spec @@ -0,0 +1,29 @@ +Name: ip-lookup +Version: 1.2 +Release: 1%{?dist} +Summary: A simple IP lookup tool +License: GPL +URL: https://deadzone.lol +BuildArch: x86_64 + +BuildRequires: gcc, libcurl-devel, cjson-devel +Requires: curl, cjson + +%description +A simple IP lookup tool that shows city, ASN, and other information. + +%prep +echo "Prep step; possibly unnecessary for direct binary build" + +%build +make -C $(pwd) + +%install +install -Dm755 bin/ip-lookup %{buildroot}%{_bindir}/ip-lookup + +%files +%{_bindir}/ip-lookup + +%changelog +* Mon Feb 26 2024 Rich - 1.2-1 +- Initial package for ip-lookup