xref: /third_party/cares/c-ares.spec (revision 324c9471)
1Name:           c-ares
2Version:        1.18.1
3Release:        7
4Summary:        A C library for asynchronous DNS requests
5
6License:        MIT
7URL:            https://github.com/c-ares/c-ares
8Source0:        https://github.com/c-ares/c-ares/releases/download/cares-1_18_1/%{name}-%{version}.tar.gz
9
10BuildRequires:  gcc make autoconf automake libtool g++
11# Patch0 from Redhat is applied for stopping overriding AC_CONFIG_MACRO_DIR
12Patch0:         0000-Use-RPM-compiler-options.patch
13Patch1:         backport-disable-live-tests.patch
14Patch2:         backport-add-str-len-check-in-config_sortlist-to-avoid-stack-overflow.patch
15Patch3:         backport-CVE-2023-32067.patch
16Patch4:         backport-001-CVE-2023-31130.patch
17Patch5:         backport-002-CVE-2023-31130.patch
18Patch6:         backport-003-CVE-2023-31130.patch
19Patch7:         backport-001-CVE-2023-31147.patch
20Patch8:         backport-002-CVE-2023-31124_CVE-2023-31147.patch
21Patch9:         backport-003-CVE-2023-31147.patch
22Patch10:        backport-004-CVE-2023-31147.patch
23Patch11:        backport-005-CVE-2023-31147.patch
24Patch12:        backport-CVE-2023-31124.patch
25Patch13:        backport-CVE-2024-25629.patch
26
27%description
28This is c-ares, an asynchronous resolver library. It is intended for applications
29which need to perform DNS queries without blocking, or need to perform multiple
30
31%package        devel
32Summary:        C-ares development files
33Requires:       %{name} = %{version}-%{release} pkgconfig
34
35%description    devel
36The headers and libraries files that c-ares required to compile applications or
37shared objects are contained in %{name}-devel package.
38
39%package_help
40
41%prep
42%autosetup -n %{name}-%{version} -p1
43
44%build
45autoreconf -if
46%configure --enable-shared --disable-static --disable-dependency-tracking
47make %{?_smp_mflags}
48
49%install
50%make_install
51%delete_la
52%ldconfig_scriptlets
53
54%check
55%make_build -C test
56./test/arestest
57
58%files
59%doc CHANGES LICENSE.md
60%{_libdir}/*.so.*
61
62%files devel
63%{_libdir}/pkgconfig/*.pc
64%{_libdir}/libcares.so
65%{_includedir}/*.h
66
67%files help
68%doc NEWS README.cares README.md
69%{_mandir}/man3/*
70
71%changelog
72* Mon May 29 2023 xinghe <xinghe2@h-partners.com> - 1.18.1-7
73- Type:CVE
74- CVE:CVE-2023-31124 CVE-2023-31147
75- SUG:NA
76- DESC:fix CVE-2023-31124 CVE-2023-31147
77
78* Sun May 28 2023 hehuazhen <hehuazhen@huawei.com> - 1.18.1-6
79- Type:CVE
80- CVE:CVE-2023-32067 CVE-2023-31130
81- SUG:restart
82- DESC:fix CVE-2023-32067 CVE-2023-31130
83
84* Sat Feb 25 2023 yanglu <yanglu72@h-partners.com> - 1.18.1-5
85- Type:bugfix
86- CVE:NA
87- SUG:NA
88- DESC:delete a static library file
89       add BuildRequires make to fix build problem
90
91* Fri Feb 10 2023 xingwei <xingwei14@h-partners.com> - 1.18.1-4
92- Type:cves
93- CVE:CVE-2022-4904
94- SUG:NA
95- DESC:fix CVE-2022-4904
96
97* Thu Jun 09 2022 gaihuiying <eaglegai@163.com> - 1.18.1-3
98- Type:bugfix
99- Id:NA
100- SUG:NA
101- DESC:enable test
102
103* Mon Apr 18 2022 quanhongfei <quanhongfei@h-partners.com> - 1.18.1-2
104- Type:bugfix
105- Id:NA
106- SUG:NA
107- DESC:add libcares.a to c-ares-devel
108
109* Thu Dec 02 2021 quanhongfei <quanhongfei@huawei.com> - 1.18.1-1
110- Type:requirements
111- Id:NA
112- SUG:NA
113- DESC:update c-ares to 1.18.1
114
115* Thu Aug 12 2021 gaihuiying <gaihuiying1@huawei.com> - 1.17.1-2
116- fix CVE-2021-3672
117
118* Sat Jan 30 2021 xihaochen <xihaochen@huawei.com> - 1.17.1-1
119- Type:requirements
120- Id:NA
121- SUG:NA
122- DESC:update c-ares to 1.17.1
123
124* Tue Sep 8 2020 lunankun <lunankun@huawei.com> - 1.16.1-2
125- Type:bugfix
126- ID:NA
127- SUG:NA
128- DESC:fix source0 url
129
130* Wed Jul 22 2020 gaihuiying <gaihuiying1@huawei.com> - 1.16.1-1
131- Type:requirement
132- ID:NA
133- SUG:NA
134- DESC:update c-ares version to 1.16.1
135
136* Mon Sep 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.15.0-1
137- Package Init
138