• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
25
26%description
27This is c-ares, an asynchronous resolver library. It is intended for applications
28which need to perform DNS queries without blocking, or need to perform multiple
29
30%package        devel
31Summary:        C-ares development files
32Requires:       %{name} = %{version}-%{release} pkgconfig
33
34%description    devel
35The headers and libraries files that c-ares required to compile applications or
36shared objects are contained in %{name}-devel package.
37
38%package_help
39
40%prep
41%autosetup -n %{name}-%{version} -p1
42
43%build
44autoreconf -if
45%configure --enable-shared --disable-static --disable-dependency-tracking
46make %{?_smp_mflags}
47
48%install
49%make_install
50%delete_la
51%ldconfig_scriptlets
52
53%check
54%make_build -C test
55./test/arestest
56
57%files
58%doc CHANGES LICENSE.md
59%{_libdir}/*.so.*
60
61%files devel
62%{_libdir}/pkgconfig/*.pc
63%{_libdir}/libcares.so
64%{_includedir}/*.h
65
66%files help
67%doc NEWS README.cares README.md
68%{_mandir}/man3/*
69
70%changelog
71* Mon May 29 2023 xinghe <xinghe2@h-partners.com> - 1.18.1-7
72- Type:CVE
73- CVE:CVE-2023-31124 CVE-2023-31147
74- SUG:NA
75- DESC:fix CVE-2023-31124 CVE-2023-31147
76
77* Sun May 28 2023 hehuazhen <hehuazhen@huawei.com> - 1.18.1-6
78- Type:CVE
79- CVE:CVE-2023-32067 CVE-2023-31130
80- SUG:restart
81- DESC:fix CVE-2023-32067 CVE-2023-31130
82
83* Sat Feb 25 2023 yanglu <yanglu72@h-partners.com> - 1.18.1-5
84- Type:bugfix
85- CVE:NA
86- SUG:NA
87- DESC:delete a static library file
88       add BuildRequires make to fix build problem
89
90* Fri Feb 10 2023 xingwei <xingwei14@h-partners.com> - 1.18.1-4
91- Type:cves
92- CVE:CVE-2022-4904
93- SUG:NA
94- DESC:fix CVE-2022-4904
95
96* Thu Jun 09 2022 gaihuiying <eaglegai@163.com> - 1.18.1-3
97- Type:bugfix
98- Id:NA
99- SUG:NA
100- DESC:enable test
101
102* Mon Apr 18 2022 quanhongfei <quanhongfei@h-partners.com> - 1.18.1-2
103- Type:bugfix
104- Id:NA
105- SUG:NA
106- DESC:add libcares.a to c-ares-devel
107
108* Thu Dec 02 2021 quanhongfei <quanhongfei@huawei.com> - 1.18.1-1
109- Type:requirements
110- Id:NA
111- SUG:NA
112- DESC:update c-ares to 1.18.1
113
114* Thu Aug 12 2021 gaihuiying <gaihuiying1@huawei.com> - 1.17.1-2
115- fix CVE-2021-3672
116
117* Sat Jan 30 2021 xihaochen <xihaochen@huawei.com> - 1.17.1-1
118- Type:requirements
119- Id:NA
120- SUG:NA
121- DESC:update c-ares to 1.17.1
122
123* Tue Sep 8 2020 lunankun <lunankun@huawei.com> - 1.16.1-2
124- Type:bugfix
125- ID:NA
126- SUG:NA
127- DESC:fix source0 url
128
129* Wed Jul 22 2020 gaihuiying <gaihuiying1@huawei.com> - 1.16.1-1
130- Type:requirement
131- ID:NA
132- SUG:NA
133- DESC:update c-ares version to 1.16.1
134
135* Mon Sep 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.15.0-1
136- Package Init
137