13 Star 0 Fork 6

ocs-upgrade/icu

forked from OpenCloudOS Stream/icu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
icu.spec 3.82 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-12-17 17:30 . Upgrade to version 74.2
%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.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-upgrade/icu.git
[email protected]:ocs-upgrade/icu.git
ocs-upgrade
icu
icu
master

搜索帮助