#----------------------------------------------------------------------------------------------------------------------------------- # # MyIP # # Copyright (C) 2025-2026 Arnaud G. GIBERT # mailto:arnaud@rx3.net # # This is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this program; If not, see # . # #----------------------------------------------------------------------------------------------------------------------------------- %define name myip %define version 1.2.1 %define release %mkrel 1rx3 %global debug_package %{nil} %global _webdir %{_localstatedir}/www %global _webcgi %{_webdir}/cgi-bin Name: %{name} Version: %{version} Release: %{release} Summary: Simple script to get your public and private IP addresses License: GPL URL: https://git.rx3.org/gitea/rx3/%{name} Source0: https://git.rx3.org/gitea/rx3/%{name}/archive/%{name}-%{version}.tar.gz Distribution: Rx3 Free Software Vendor: Rx3 Packager: Arnaud G. GIBERT BuildArch: noarch Requires: network_tools-libs %description Simple script to get your public and private IP. #----------------------------------------------------------------------------------------------------------------------------------- # Prep #----------------------------------------------------------------------------------------------------------------------------------- %prep %setup -q -n %{name} #----------------------------------------------------------------------------------------------------------------------------------- # Build #----------------------------------------------------------------------------------------------------------------------------------- %build #----------------------------------------------------------------------------------------------------------------------------------- # Install #----------------------------------------------------------------------------------------------------------------------------------- %install install -D -pm 644 etc/bash_completion.d/%{name} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} install -D -pm 755 bin/%{name} %{buildroot}%{_bindir}/%{name} install -D -pm 755 www/cgi-bin/%{name}.cgi %{buildroot}%{_webcgi}/%{name}.cgi #----------------------------------------------------------------------------------------------------------------------------------- # Check #----------------------------------------------------------------------------------------------------------------------------------- %check #----------------------------------------------------------------------------------------------------------------------------------- # Files #----------------------------------------------------------------------------------------------------------------------------------- %files %doc ReadMe.txt ReleaseNotes.txt ToDo.txt %license GNU_GPL-3.0.txt GNU_LGPL-3.0.txt GNU_FDL-1.3.txt %{_sysconfdir}/bash_completion.d/%{name} %{_bindir}/%{name} %{_webcgi}/%{name}.cgi #----------------------------------------------------------------------------------------------------------------------------------- # ChangeLog #----------------------------------------------------------------------------------------------------------------------------------- %%changelog * Tue Apr 21 2026 Arnaud G. GIBERT - 1.2.1-1rx3.mga9 - Update to 1.2.1 - Add bash completion script * Thu Sep 18 2025 Arnaud G. GIBERT - 1.2.0-1rx3.mga9 - Update to 1.2.0 * Tue Sep 9 2025 Arnaud G. GIBERT - 1.1.0-1rx3.mga9 - Update to 1.1.0 * Sat Jul 26 2025 Arnaud G. GIBERT - 1.0.1-1rx3.mga9 - Filter output to remove errors and only keep IP * Sun Apr 6 2025 Arnaud G. GIBERT - 1.0.0-1rx3.mga9 - Create initial SPEC file for 1.0.0 on Mageia 9