/[packages]/cauldron/icu/current/SPECS/icu.spec
ViewVC logotype

Contents of /cauldron/icu/current/SPECS/icu.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1738910 - (show annotations) (download)
Tue Aug 3 20:50:50 2021 UTC (7 weeks, 5 days ago) by luigiwalser
File size: 4484 byte(s)
69.1
1 %define major 69
2 %define libname %mklibname icu %{major}
3 %define develname %mklibname icu -d
4
5 %define dataname %{name}%{major}-data
6
7 %define tarballver %(echo %version|tr '.' '_')
8 %define dashver %(echo %version|tr '.' '-')
9
10 # re-enable when upgrading this package to a new version
11 %define with_tests 1
12
13 Summary: International Components for Unicode
14 Name: icu
15 Epoch: 1
16 Version: 69.1
17 Release: %mkrel 1
18 License: Unicode
19 Group: System/Libraries
20 URL: http://site.icu-project.org/
21 Source0: https://github.com/unicode-org/icu/releases/download/release-%{dashver}/icu4c-%{tarballver}-src.tgz
22 Patch0: icu-50.1-disable-renaming.patch
23 BuildRequires: doxygen
24 Requires: %{libname} = %{epoch}:%{version}
25
26 %description
27 The International Components for Unicode (ICU) libraries provide robust and
28 full-featured Unicode services on a wide variety of platforms. ICU supports
29 the most current version of the Unicode standard, and they provide support
30 for supplementary Unicode characters (needed for GB 18030 repertoire support).
31
32 As computing environments become more heterogeneous, software portability
33 becomes more important. ICU lets you produce the same results across all the
34 various platforms you support, without sacrificing performance. It offers
35 great flexibility to extend and customize the supplied services, which
36 include:
37
38 * Text: Unicode text handling, full character properties and character set
39 conversions (500+ codepages)
40 * Analysis: Unicode regular expressions; full Unicode sets; character, word
41 and line boundaries
42 * Comparison: Language sensitive collation and searching
43 * Transformations: normalization, upper/lowercase, script transliterations
44 (50+ pairs)
45 * Locales: Comprehensive locale data (230+) and resource bundle architecture
46 * Complex Text Layout: Arabic, Hebrew, Indic and Thai
47 * Time: Multi-calendar and time zone
48 * Formatting and Parsing: dates, times, numbers, currencies, messages and
49 rule based
50
51 %package -n %{dataname}
52 Summary: Shared data for the International Components for Unicode
53 Group: System/Libraries
54 BuildArch: noarch
55
56 %description -n %{dataname}
57 Shared data for the International Components for Unicode.
58
59 %package doc
60 Summary: Documentation for the International Components for Unicode
61 Group: System/Libraries
62 Requires: %{name}
63 BuildArch: noarch
64
65 %description doc
66 Documentation for the International Components for Unicode.
67
68 %package -n %{libname}
69 Summary: Libraries for the International Components for Unicode
70 Group: System/Libraries
71 Requires: %{dataname} = %{epoch}:%{version}-%{release}
72
73 %description -n %{libname}
74 Libraries for the International Components for Unicode.
75
76 %package -n %{develname}
77 Summary: Development files for the International Components for Unicode
78 Group: Development/Other
79 Requires: %{libname} = %{epoch}:%{version}-%{release}
80 Provides: %{name}%{major}-devel = %{epoch}:%{version}-%{release}
81 Provides: %{name}-devel = %{epoch}:%{version}-%{release}
82 Provides: lib%{name}-devel = %{epoch}:%{version}-%{release}
83
84 %description -n %{develname}
85 Development files and headers for the International Components for Unicode.
86
87 %prep
88 %setup -q -n %{name}
89 %autopatch -p1
90
91 %build
92 pushd source
93 %configure \
94 --with-library-bits=64else32 \
95 --with-data-packaging=archive \
96 --disable-renaming \
97 --disable-samples
98 mkdir -p data/out/tmp
99 # fix test failures
100 sed -i.testdata -r -e 's#/genrb#/genrb $(ICU_DATA_OPT)#' test/testdata/rules.mk
101 %__make
102 %__make doc
103 popd
104
105 %if %{with_tests}
106 %check
107 pushd source
108 export LC_ALL=C LANG=en
109 %ifarch aarch64
110 make check ||:
111 %else
112 make check
113 %endif
114 popd
115 %endif
116
117 %install
118 %make_install -C source
119
120 %files
121 %{_bindir}/*
122 %exclude %{_bindir}/icu-config
123 %{_sbindir}/*
124
125 %files -n %{dataname}
126 %dir %{_datadir}/%{name}
127 %dir %{_datadir}/%{name}/%{version}
128 %{_datadir}/%{name}/%{version}/icudt%{major}l.dat
129
130 %files doc
131 %doc readme.html source/doc/html/*
132 %{_mandir}/man1/*
133 %{_mandir}/man8/*
134
135 %files -n %{libname}
136 %{_libdir}/*.so.%{major}{,.*}
137
138 %files -n %{develname}
139 %{_bindir}/icu-config
140 %{_libdir}/*.so
141 %{_libdir}/pkgconfig/*.pc
142 %dir %{_includedir}/unicode
143 %{_includedir}/unicode/*
144 %dir %{_libdir}/%{name}
145 %dir %{_libdir}/%{name}/%{version}
146 %{_libdir}/%{name}/%{version}/Makefile.inc
147 %{_libdir}/%{name}/%{version}/pkgdata.inc
148 %{_libdir}/%{name}/Makefile.inc
149 %{_libdir}/%{name}/current
150 %{_libdir}/%{name}/pkgdata.inc
151 %{_datadir}/%{name}/%{version}/config
152 %{_datadir}/%{name}/%{version}/install-sh
153 %{_datadir}/%{name}/%{version}/LICENSE
154 %{_datadir}/%{name}/%{version}/mkinstalldirs

  ViewVC Help
Powered by ViewVC 1.1.28