2019-12-25 15:41:42 +08:00
|
|
|
%define aprver 1
|
|
|
|
|
|
|
|
|
|
Name: apr
|
2024-02-03 22:39:31 +08:00
|
|
|
Version: 1.7.4
|
2024-09-25 17:10:25 +08:00
|
|
|
Release: 4
|
2019-12-25 15:41:42 +08:00
|
|
|
Summary: Apache Portable Runtime.
|
|
|
|
|
License: ASL 2.0 and BSD with advertising and ISC and BSD
|
|
|
|
|
URL: http://apr.apache.org
|
|
|
|
|
Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
|
Source1: apr-wrapper.h
|
|
|
|
|
|
|
|
|
|
Patch0: apr-1.2.2-libdir.patch
|
|
|
|
|
Patch1: apr-1.2.7-pkgconf.patch
|
2024-08-13 17:28:33 +08:00
|
|
|
Patch2: backport-memory-unix-apr_pools.c-apr_pool_cleanup_register.patch
|
2024-09-25 17:10:25 +08:00
|
|
|
Patch3: backport-001-CVE-2023-49582.patch
|
2019-12-25 15:41:42 +08:00
|
|
|
|
|
|
|
|
BuildRequires: gcc autoconf libtool libuuid-devel python3 lksctp-tools-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries
|
|
|
|
|
that provide a predictable and consistent interface to underlying platform-specific implementations.
|
|
|
|
|
The primary goal is to provide an API to which software developers may code and be assured of
|
|
|
|
|
predictable if not identical behaviour regardless of the platform on which their software is built,
|
|
|
|
|
relieving them of the need to code special-case conditions to work around or take advantage of
|
|
|
|
|
platform-specific deficiencies or features.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Apache Portable Runtime development kit.
|
|
|
|
|
Requires: %{name} = %{version}-%{release} pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Apache Portable Runtime development kit.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./buildconf
|
|
|
|
|
export ac_cv_search_shm_open=no
|
|
|
|
|
%configure \
|
|
|
|
|
--includedir=%{_includedir}/%{name}-%{aprver} --with-installbuilddir=%{_libdir}/%{name}-%{aprver}/build \
|
|
|
|
|
--with-devrandom=/dev/urandom
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
%make_install
|
|
|
|
|
install -D -m 0644 build/find_apr.m4 %{buildroot}/%{_datadir}/aclocal/find_apr.m4
|
|
|
|
|
sed -ri '/^dependency_libs/{s,-l(uuid|crypt) ,,g}' \
|
|
|
|
|
%{buildroot}%{_libdir}/libapr*.la
|
|
|
|
|
sed -ri '/^LIBS=/{s,-l(uuid|crypt) ,,g;s/ */ /g}' \
|
|
|
|
|
%{buildroot}%{_bindir}/%{name}-%{aprver}-config
|
|
|
|
|
sed -ri '/^Libs/{s,-l(uuid|crypt) ,,g}' \
|
|
|
|
|
%{buildroot}%{_libdir}/pkgconfig/%{name}-%{aprver}.pc
|
|
|
|
|
%ifarch %{multilib_arches}
|
|
|
|
|
install -D -m 0644 %{buildroot}%{_includedir}/%{name}-%{aprver}/apr.h \
|
|
|
|
|
%{buildroot}%{_includedir}/%{name}-%{aprver}/%{name}-%{_arch}.h
|
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}-%{aprver}/apr.h
|
|
|
|
|
%endif
|
|
|
|
|
rm -rf %{buildroot}%{_libdir}/apr.exp
|
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libapr-*.a
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc CHANGES NOTICE
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_libdir}/libapr-%{aprver}.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_bindir}/%{name}-%{aprver}-config
|
|
|
|
|
%{_libdir}/libapr-%{aprver}.*a
|
|
|
|
|
%{_libdir}/libapr-%{aprver}.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%dir %{_libdir}/%{name}-%{aprver}
|
|
|
|
|
%dir %{_libdir}/%{name}-%{aprver}/build
|
|
|
|
|
%{_libdir}/%{name}-%{aprver}/build/*
|
|
|
|
|
%dir %{_includedir}/%{name}-%{aprver}
|
|
|
|
|
%{_includedir}/%{name}-%{aprver}/*.h
|
|
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc docs/APRDesign.html docs/canonical_filenames.html
|
|
|
|
|
%doc docs/incomplete_types docs/non_apr_programs
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-09-25 17:10:25 +08:00
|
|
|
* Wed Sep 25 2024 caixiaomeng <caixiaomeng2@huawei.com> - 1.7.4-4
|
|
|
|
|
- fix CVE-2023-49582
|
|
|
|
|
|
2024-08-13 17:28:33 +08:00
|
|
|
* Tue Aug 13 2024 wangjiang <wangjiang37@h-partners.com> - 1.7.4-3
|
|
|
|
|
- fix segfaults error
|
|
|
|
|
|
2024-02-20 16:54:05 +08:00
|
|
|
* Tue Feb 20 2024 liweigang <izmirvii@gmail.com> - 1.7.4-2
|
|
|
|
|
- modify changelog format and delete unused source
|
|
|
|
|
|
2024-02-03 22:39:31 +08:00
|
|
|
* Sat Feb 3 2024 caixiaomeng <caixiaomeng2@huawei.com> - 1.7.4-1
|
2024-02-20 16:54:05 +08:00
|
|
|
- Update to 1.7.4
|
2024-02-03 22:39:31 +08:00
|
|
|
|
2023-02-13 11:33:22 +08:00
|
|
|
* Mon Feb 13 2023 fuanan <fuanan3@h-partners.com> - 1.7.0-5
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- ID:CVE-2022-24963
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix CVE-2022-24963
|
|
|
|
|
|
2022-03-31 16:54:15 +08:00
|
|
|
* Thu Mar 31 2022 panxiaohe <panxh.life@foxmail.com> - 1.7.0-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix the compilation failure when autoconf-2.71 is used
|
|
|
|
|
|
2021-03-30 10:44:41 +08:00
|
|
|
* Tue Mar 30 2021 shenyangyang<shenyangyang4@huawei.com> - 1.7.0-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Rebuild for openEuler-rpm-config moving /usr/lib/rpm/openEuler/xxxx
|
|
|
|
|
to /usr/lib/xxxx
|
|
|
|
|
|
2021-03-19 14:31:17 +08:00
|
|
|
* Fri Mar 19 2021 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 1.7.0-2
|
|
|
|
|
- Type: CVE
|
|
|
|
|
- ID: CVE-2017-12613
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC:Fix CVE-2017-12613
|
|
|
|
|
|
2020-07-23 18:36:10 +08:00
|
|
|
* Thu Jul 23 2020 liuchenguang<liuchenguang4@huawei.com> - 1.7.0-1
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: update to 1.7.0
|
|
|
|
|
|
2020-07-14 16:21:27 +08:00
|
|
|
* Tue Jul 14 2020 linwei<linwei54@huawei.com> - 1.6.5-6
|
|
|
|
|
- Type: bugfix
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: Delete the patch because CVE-2017-12613 is already fixed
|
|
|
|
|
|
2020-06-24 17:31:17 +08:00
|
|
|
* Wed Jun 24 2020 linwei<linwei54@huawei.com> - 1.6.5-5
|
|
|
|
|
- Type: cves
|
|
|
|
|
- ID: CVE-2017-12613
|
|
|
|
|
- SUG: restart
|
|
|
|
|
- DESC: fix CVE-2017-12613
|
|
|
|
|
|
2019-12-25 15:41:42 +08:00
|
|
|
* Tue Dec 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.5-4
|
|
|
|
|
- quality enhancement synchronization github patch
|
|
|
|
|
|
|
|
|
|
* Tue Oct 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.5-3
|
|
|
|
|
- optimize spec file.
|
|
|
|
|
|
|
|
|
|
* Sat Sep 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.5-2
|
|
|
|
|
- Package rebuild.
|
|
|
|
|
|
|
|
|
|
* Wed Sep 04 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.5-1
|
|
|
|
|
- Package init.
|