diff --git a/.gitignore b/.gitignore index d6f9125..a406b34 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -udns_0.0.9.tar.gz -/udns-0.2.tar.gz -/udns-0.4.tar.gz +udns-*.tar.gz diff --git a/sources b/sources index 7111cba..7c64a46 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -51e141b044b078d71ebb71f823959c1b udns-0.4.tar.gz +SHA512 (udns-0.6.tar.gz) = 9846c476e23f148565d2ea986352c34a364ec5b949db3821a8ed6bdf5d33b830f0afbbcf4d441420a36c57620236a01ef04f6f8b2619f6ec64595bab5524afe1 diff --git a/udns-configure-c99.patch b/udns-configure-c99.patch new file mode 100644 index 0000000..e1e5049 --- /dev/null +++ b/udns-configure-c99.patch @@ -0,0 +1,15 @@ +Avoid incorrect pointer types and a pointer-to-int conversion with inet_pton and inet_ntop. +diff -ru udns-0.6.orig/configure udns-0.6.new/configure +--- udns-0.6.orig/configure 2024-07-26 06:54:06.000000000 +0200 ++++ udns-0.6.new/configure 2024-07-30 15:14:16.142462741 +0200 +@@ -94,8 +94,8 @@ + int main() { + char buf[64]; + long x = 0; +- inet_ntop(AF_INET, &x, buf, sizeof(buf)); +- inet_pton(AF_INET, buf, &x); ++ inet_ntop(AF_INET, (void *) &x, buf, sizeof(buf)); ++ inet_pton(AF_INET, buf, (void *) &x); + return x; + } + EOF diff --git a/udns.spec b/udns.spec index 821354c..ef473a7 100644 --- a/udns.spec +++ b/udns.spec @@ -1,10 +1,14 @@ -Summary: DNS resolver library for both synchronous and asynchronous DNS queries -Name: udns -Version: 0.4 -Release: 17%{?dist} -License: LGPLv2+ -URL: http://www.corpit.ru/mjt/udns.html -Source: http://www.corpit.ru/mjt/udns/udns-%{version}.tar.gz +Name: udns +Version: 0.6 +Release: 5%{?dist} +Summary: DNS resolver library for both synchronous and asynchronous DNS queries +License: LGPL-2.1-or-later +URL: http://www.corpit.ru/mjt/udns.html +Source: http://www.corpit.ru/mjt/udns/udns-%{version}.tar.gz + +# Provide autoconf-style fake prototype for socket to avoid implicit function declarations. +Patch0: udns-configure-c99.patch + BuildRequires: make BuildRequires: gcc @@ -22,7 +26,7 @@ documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep -%setup -q +%autosetup -p1 %build CFLAGS="%{optflags}" ./configure --enable-ipv6 @@ -49,6 +53,48 @@ CFLAGS="%{optflags}" ./configure --enable-ipv6 %{_libdir}/libudns.so %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Tue Jul 30 2024 Michal Ambroz - 0.6-1 +- bump to 0.6 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Mar 10 2024 Michal Ambroz - 0.5-1 +- bump to 0.5 + +* Sat Jan 27 2024 Fedora Release Engineering - 0.4-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Dec 15 2023 Florian Weimer - 0.4-23 +- Further C compatibility fixes + +* Sat Jul 22 2023 Fedora Release Engineering - 0.4-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.4-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jan 10 2023 Florian Weimer - 0.4-20 +- C99 compatibility fixes for the autoconf-style configure script (#2159628) + +* Sat Jul 23 2022 Fedora Release Engineering - 0.4-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 0.4-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 0.4-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild