This commit is contained in:
Sergey Zhemoytel 2022-10-13 22:19:12 +03:00
parent d756d06122
commit ef97afb530

View file

@ -1,9 +1,16 @@
%define icule 0
%define iculx 0
%define major %(echo %{version} |cut -d. -f1)
%define libicudata %mklibname %{name}data %{major}
%define libicui18n %mklibname %{name}i18n %{major}
%define libicuio %mklibname %{name}io %{major}
%if %icule
%define libicule %mklibname %{name}le %{major}
%endif
%if %iculx
%define libiculx %mklibname %{name}lx %{major}
%endif
%define libicutest %mklibname %{name}test %{major}
%define libicutu %mklibname %{name}tu %{major}
%define libicuuc %mklibname %{name}uc %{major}
@ -25,6 +32,7 @@ Group: System/Libraries
URL: https://icu.unicode.org
Source0: https://github.com/unicode-org/icu/releases/download/release-%{releasever}/%{name}4c-%{tarballver}-src.tgz
Source1: https://github.com/unicode-org/icu/releases/download/release-%{releasever}/%{name}4c-%{tarballver}-docs.zip
Source1000: %{name}.rpmlintrc
Patch0: %{name}4c-49.1-setBreakType.patch
Patch1: icu-57.1-ICU-12936.patch
# From Fedora package
@ -123,8 +131,11 @@ Library for the International Components for Unicode - icuio.
%files -n %{libicuio}
%{_libdir}/libicuio.so.%{major}*
#----------------------------------------------------------------------------
%if %icule
%package -n %{libicule}
Summary: Library for the International Components for Unicode - icule
Group: System/Libraries
@ -135,8 +146,10 @@ Library for the International Components for Unicode - icule.
%files -n %{libicule}
%{_libdir}/libicule.so.%{major}*
%endif
#----------------------------------------------------------------------------
%if %icule
%package -n %{libiculx}
Summary: Library for the International Components for Unicode - iculx
Group: System/Libraries
@ -146,6 +159,7 @@ Library for the International Components for Unicode - iculx.
%files -n %{libiculx}
%{_libdir}/libiculx.so.%{major}*
%endif
#----------------------------------------------------------------------------
@ -191,8 +205,12 @@ Group: Development/Other
Requires: %{libicudata} = %{EVRD}
Requires: %{libicui18n} = %{EVRD}
Requires: %{libicuio} = %{EVRD}
%if %icule
Requires: %{libicule} = %{EVRD}
%endif
%if %iculx
Requires: %{libiculx} = %{EVRD}
%endif
Requires: %{libicutest} = %{EVRD}
Requires: %{libicutu} = %{EVRD}
Requires: %{libicuuc} = %{EVRD}
@ -206,9 +224,9 @@ Development files and headers for the International Components for Unicode.
%{_bindir}/icu-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/layout
#dir %{_includedir}/layout
%dir %{_includedir}/unicode
%{_includedir}/layout/*
#{_includedir}/layout/*
%{_includedir}/unicode/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*