- Support and report resolver failure by using default IP addresses,
- Simple code refactoring.
This commit is contained in:
72
SPECS/myip.spec
Normal file
72
SPECS/myip.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
%define name myip
|
||||
%define version 1.2.0
|
||||
%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/myip
|
||||
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
|
||||
Distribution: Rx3 Free Software
|
||||
Vendor: Rx3
|
||||
Packager: Arnaud G. GIBERT <arnaud@rx3.net>
|
||||
|
||||
Requires: bind-utils
|
||||
|
||||
|
||||
|
||||
%description
|
||||
Simple script to get your public and private IP.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
|
||||
|
||||
|
||||
%build
|
||||
|
||||
|
||||
|
||||
%install
|
||||
install -D -pm 755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -D -pm 755 var/www/cgi-bin/%{name}.cgi %{buildroot}%{_webcgi}/%{name}.cgi
|
||||
|
||||
|
||||
|
||||
%check
|
||||
|
||||
|
||||
|
||||
%files
|
||||
%doc ReadMe.txt ReleaseNotes.txt
|
||||
%license GNU_GPL-3.0.txt GNU_LGPL-3.0.txt GNU_FDL-1.3.txt
|
||||
%{_bindir}/%{name}
|
||||
%{_webcgi}/%{name}.cgi
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Sep 18 2025 Arnaud G. GIBERT <arnaud@rx3.net> - 1.2.0-1rx3.mga9
|
||||
- Update to 1.2.0
|
||||
|
||||
* Tue Sep 9 2025 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.0-1rx3.mga9
|
||||
- Update to 1.1.0
|
||||
|
||||
* Sat Jul 26 2025 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.1-1rx3.mga9
|
||||
- Filter output to remove errors and only keep IP
|
||||
|
||||
* Sun Apr 6 2025 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.0-1rx3.mga9
|
||||
- Create initial SPEC file for 1.0.0 on Mageia 9
|
||||
Reference in New Issue
Block a user