代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/icu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%define major_ver %(echo %version | cut -d. -f1)
%define minor_ver %(echo %version | cut -d. -f2)
Summary: International Components for Unicode
Name: icu
Version: 74.2
Release: 1%{?dist}
License: MIT and UCD and Public Domain
URL: http://site.icu-project.org/
Source0: https://github.com/unicode-org/icu/releases/download/release-%{major_ver}-%{minor_ver}/icu4c-%{major_ver}_%{minor_ver}-src.tgz
BuildRequires: gcc, gcc-c++, make, autoconf, python
Requires: libicu = %{version}-%{release}
%description
International Components for Unicode (ICU) is an open-source project of mature
C/C++ and Java libraries for Unicode support, software internationalization,
and software globalization. ICU is widely portable to many operating systems
and environments. It gives applications the same results on all platforms and
between C, C++, and Java software. The ICU project is a technical committee of
the Unicode Consortium and sponsored, supported, and used by IBM and many other
companies.
%package -n libicu
Summary: International Components for Unicode - libraries
%description -n libicu
This package contains the libraries.
%package -n libicu-devel
Summary: International Components for Unicode - development files
Requires: pkgconfig
Requires: icu = %{version}-%{release}
%description -n libicu-devel
This package contains the development files.
%prep
%autosetup -p1 -n %{name}
%build
pushd source
autoconf
CFLAGS='%optflags -fno-strict-aliasing'
CXXFLAGS='%optflags -fno-strict-aliasing'
%configure \
--with-data-packaging=library \
--disable-samples \
--enable-debug \
--enable-tracing
sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
sed -i 's| \$(docfilesdir)/installdox||' Makefile
sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' -i common/unicode/uconfig.h
sed -i -r 's|(PKGDATA_OPTS = )|\1-v |' data/Makefile
%make_build
%install
%make_install %{?_smp_mflags} -C source
chmod +x %{buildroot}%{_libdir}/*.so.*
%check
if grep -q @VERSION@ source/tools/*/*.8 source/tools/*/*.1 source/config/*.1; then
exit 1
fi
%make_build -C source check
%files
%license license.html
%exclude %{_datadir}/%{name}/*/LICENSE
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*
%{_mandir}/man8/*.8*
%files -n libicu
%license LICENSE
%doc readme.html
%{_libdir}/*.so.*
%files -n libicu-devel
%license LICENSE
%doc source/samples/
%{_includedir}/unicode
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{version}
%{_datadir}/%{name}/%{version}/install-sh
%{_datadir}/%{name}/%{version}/mkinstalldirs
%{_datadir}/%{name}/%{version}/config
%changelog
* Tue Dec 17 2024 Miaojun Dong <[email protected]> - 74.2-1
- PHP upgrade requires upgrade to version 74.2
* Thu Sep 26 2024 OpenCloudOS Release Engineering <[email protected]> - 73.2-6
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <[email protected]> - 73.2-5
- Rebuilt for loongarch release
* Sun Oct 8 2023 Shuo Wang <[email protected]> - 73.2-4
- backport patch from upstream to fix test fail
* Fri Sep 08 2023 OpenCloudOS Release Engineering <[email protected]> - 73.2-3
- Rebuilt for OpenCloudOS Stream 23.09
* Wed Aug 23 2023 rockerzhu <[email protected]> - 73.2-2
- Rebuild.
* Thu Aug 03 2023 rockerzhu <[email protected]> - 73.2-1
- Update to 73.2.
* Fri Apr 28 2023 OpenCloudOS Release Engineering <[email protected]> - 71.1-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <[email protected]> - 71.1-2
- Rebuilt for OpenCloudOS Stream 23
* Fri Jul 01 2022 Zhao Zhen <[email protected]> - 71.1-1
- Initial Building.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。