|
|
03add60 |
Name: libicu67
|
|
|
03add60 |
Version: 67.1
|
|
|
4ef3660 |
Release: 2%{?dist}
|
|
|
03add60 |
Summary: Compat package with icu libraries
|
|
|
03add60 |
|
|
|
03add60 |
License: MIT and UCD and Public Domain
|
|
|
03add60 |
URL: http://site.icu-project.org/
|
|
|
03add60 |
Source0: https://github.com/unicode-org/icu/releases/download/release-67-1/icu4c-67_1-src.tgz
|
|
|
03add60 |
|
|
|
03add60 |
BuildRequires: gcc
|
|
|
03add60 |
BuildRequires: gcc-c++
|
|
|
03add60 |
BuildRequires: doxygen, autoconf, python3
|
|
|
03add60 |
BuildRequires: make
|
|
|
03add60 |
|
|
|
03add60 |
Patch4: gennorm2-man.patch
|
|
|
03add60 |
Patch5: icuinfo-man.patch
|
|
|
03add60 |
|
|
|
03add60 |
# Explicitly conflict with older icu packages that ship libraries
|
|
|
03add60 |
# with the same soname as this compat package
|
|
|
03add60 |
Conflicts: libicu < 68
|
|
|
03add60 |
|
|
|
03add60 |
%description
|
|
|
03add60 |
Compatibility package with icu libraries ABI version 67.
|
|
|
03add60 |
|
|
|
03add60 |
|
|
|
03add60 |
%{!?endian: %global endian %(%{__python3} -c "import sys;print (0 if sys.byteorder=='big' else 1)")}
|
|
|
03add60 |
# " this line just fixes syntax highlighting for vim that is confused by the above and continues literal
|
|
|
03add60 |
|
|
|
03add60 |
|
|
|
03add60 |
%prep
|
|
|
03add60 |
%autosetup -p1 -n icu
|
|
|
03add60 |
|
|
|
03add60 |
|
|
|
03add60 |
%build
|
|
|
03add60 |
pushd source
|
|
|
03add60 |
autoconf
|
|
|
03add60 |
CFLAGS='%optflags -fno-strict-aliasing'
|
|
|
03add60 |
CXXFLAGS='%optflags -fno-strict-aliasing'
|
|
|
03add60 |
# Endian: BE=0 LE=1
|
|
|
03add60 |
%if ! 0%{?endian}
|
|
|
03add60 |
CPPFLAGS='-DU_IS_BIG_ENDIAN=1'
|
|
|
03add60 |
%endif
|
|
|
03add60 |
|
|
|
03add60 |
#rhbz856594 do not use --disable-renaming or cope with the mess
|
|
|
03add60 |
OPTIONS='--with-data-packaging=library --disable-samples'
|
|
|
03add60 |
%if 0%{?debugtrace}
|
|
|
03add60 |
OPTIONS=$OPTIONS' --enable-debug --enable-tracing'
|
|
|
03add60 |
%endif
|
|
|
03add60 |
%configure $OPTIONS
|
|
|
03add60 |
|
|
|
03add60 |
#rhbz#225896
|
|
|
03add60 |
sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
|
|
|
03add60 |
#rhbz#813484
|
|
|
03add60 |
sed -i 's| \$(docfilesdir)/installdox||' Makefile
|
|
|
03add60 |
# There is no source/doc/html/search/ directory
|
|
|
03add60 |
sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
|
|
|
03add60 |
# rhbz#856594 The configure --disable-renaming and possibly other options
|
|
|
03add60 |
# result in icu/source/uconfig.h.prepend being created, include that content in
|
|
|
03add60 |
# icu/source/common/unicode/uconfig.h to propagate to consumer packages.
|
|
|
03add60 |
test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' -i common/unicode/uconfig.h
|
|
|
03add60 |
|
|
|
03add60 |
# more verbosity for build.log
|
|
|
03add60 |
sed -i -r 's|(PKGDATA_OPTS = )|\1-v |' data/Makefile
|
|
|
03add60 |
|
|
|
03add60 |
%make_build
|
|
|
03add60 |
|
|
|
03add60 |
|
|
|
03add60 |
%install
|
|
|
03add60 |
%make_install %{?_smp_mflags} -C source
|
|
|
03add60 |
chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
|
|
|
03add60 |
|
|
|
03add60 |
# Remove files that aren't needed for the compat package
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_bindir}
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_includedir}
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.so
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/icu/
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_sbindir}
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/icu/
|
|
|
03add60 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
|
03add60 |
|
|
|
03add60 |
|
|
|
03add60 |
%files
|
|
|
03add60 |
%license LICENSE
|
|
|
03add60 |
%{_libdir}/*.so.*
|
|
|
03add60 |
|
|
|
03add60 |
|
|
|
03add60 |
%changelog
|
|
|
4ef3660 |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 67.1-2
|
|
|
4ef3660 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
4ef3660 |
|
|
|
03add60 |
* Wed May 19 2021 Pete Walter <pwalter@fedoraproject.org> - 67.1-1
|
|
|
03add60 |
- Initial packaging
|