1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define sover 67 |
---|
4 | %define minorver 1 |
---|
5 | |
---|
6 | Summary: International Components for Unicode |
---|
7 | Summary(ja): ユニコード用国際化コンポーネント |
---|
8 | Name: icu |
---|
9 | Version: %{sover}.%{minorver} |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | Group: Development/Tools |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | |
---|
15 | License: MIT |
---|
16 | URL: http://icu-project.org/ |
---|
17 | |
---|
18 | Source0: https://github.com/unicode-org/icu/releases/download/release-%{sover}-%{minorver}/icu4c-%{sover}_%{minorver}-src.tgz |
---|
19 | Source1: https://github.com/unicode-org/icu/releases/download/release-%{sover}-%{minorver}/icu4c-%{sover}_%{minorver}-docs.zip |
---|
20 | |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | BuildRequires: gcc-c++ |
---|
23 | BuildRequires: unzip perl |
---|
24 | Requires: libicu%{sover} = %{version}-%{release} |
---|
25 | |
---|
26 | %description |
---|
27 | ICU is a C++ and C library that provides robust and full-featured Unicode |
---|
28 | support. This package contains the Unicode character database and derived |
---|
29 | properties, along with converters and time zones data. |
---|
30 | |
---|
31 | |
---|
32 | %package -n libicu%{sover} |
---|
33 | Summary: International Components for Unicode (library) |
---|
34 | Summary(ja): ユニコード用国際化コンポーネント (ライブラリ) |
---|
35 | Group: System Environment/Libraries |
---|
36 | Provides: libicu = %{version}-%{release} |
---|
37 | |
---|
38 | %description -n libicu%{sover} |
---|
39 | ICU is a C++ and C library that provides robust and full-featured Unicode |
---|
40 | support. This package contains the runtime libraries for ICU. It does not |
---|
41 | contain any of the data files needed at runtime. |
---|
42 | |
---|
43 | |
---|
44 | %package -n libicu-devel |
---|
45 | Summary: Header files, libraries and development documentation for libicu |
---|
46 | Summary(ja): libicu 用のヘッダファイル、ライブラリおよび開発用ドキュメント |
---|
47 | Group: Development/Libraries |
---|
48 | Requires: libicu%{sover} = %{version}-%{release} |
---|
49 | |
---|
50 | %description -n libicu-devel |
---|
51 | This package contains the header files, static libraries for %{name}. |
---|
52 | If you like to develop programs using %{name}, you will need to install |
---|
53 | %{name}-devel. |
---|
54 | |
---|
55 | |
---|
56 | %package -n libicu-doc |
---|
57 | Summary: Documentation for International Components for Unicode |
---|
58 | Summary(ja): ユニコード用国際化コンポーネントのドキュメント |
---|
59 | Group: Applications/Documentation |
---|
60 | Requires: libicu%{sover} = %{version}-%{release} |
---|
61 | |
---|
62 | %description -n libicu-doc |
---|
63 | This package contains the development documentation for %{name}. |
---|
64 | |
---|
65 | |
---|
66 | # compat32 |
---|
67 | %if %{build_compat32} |
---|
68 | %package -n compat32-libicu%{sover} |
---|
69 | Summary: International Components for Unicode (library) |
---|
70 | Summary(ja): ユニコード用国際化コンポーネント (ライブラリ) |
---|
71 | Group: System Environment/Libraries |
---|
72 | Provides: compat32-libicu = %{version}-%{release} |
---|
73 | |
---|
74 | %description -n compat32-libicu%{sover} |
---|
75 | ICU is a C++ and C library that provides robust and full-featured Unicode |
---|
76 | support. This package contains the runtime libraries for ICU. It does not |
---|
77 | contain any of the data files needed at runtime. |
---|
78 | %endif |
---|
79 | |
---|
80 | |
---|
81 | %debug_package |
---|
82 | |
---|
83 | |
---|
84 | %prep |
---|
85 | %setup -q -n icu |
---|
86 | |
---|
87 | find . -name CVS -o -name .cvsignore | xargs -r rm -rf |
---|
88 | perl -pi -e 's/^(HAVE_DOT\b.*=).*$/$1 YES/' source/Doxyfile.in |
---|
89 | |
---|
90 | mkdir docs |
---|
91 | pushd docs |
---|
92 | unzip %{SOURCE1} |
---|
93 | popd |
---|
94 | |
---|
95 | |
---|
96 | %build |
---|
97 | cd source |
---|
98 | export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
---|
99 | export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
---|
100 | %configure --disable-static --with-data-packaging=library --disable-samples |
---|
101 | make %{?_smp_mflags} |
---|
102 | |
---|
103 | |
---|
104 | %install |
---|
105 | rm -rf $RPM_BUILD_ROOT |
---|
106 | make -C source install DESTDIR=$RPM_BUILD_ROOT |
---|
107 | cp -pR ./source/tools/ctestfw/libicutest.so* $RPM_BUILD_ROOT/%{_libdir} |
---|
108 | chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.* |
---|
109 | |
---|
110 | %ifarch x86_64 |
---|
111 | %check || : |
---|
112 | make %{?_smp_mflags} -C source check |
---|
113 | %endif |
---|
114 | |
---|
115 | |
---|
116 | %clean |
---|
117 | rm -rf $RPM_BUILD_ROOT |
---|
118 | |
---|
119 | |
---|
120 | %post -n libicu%{sover} -p /sbin/ldconfig |
---|
121 | |
---|
122 | %postun -n libicu%{sover} -p /sbin/ldconfig |
---|
123 | |
---|
124 | |
---|
125 | %files |
---|
126 | %defattr(-, root, root, 0755) |
---|
127 | %license LICENSE |
---|
128 | %doc license.html readme.html |
---|
129 | %{_bindir}/derb |
---|
130 | %{_bindir}/genbrk |
---|
131 | %{_bindir}/gencfu |
---|
132 | %{_bindir}/gencnval |
---|
133 | %{_bindir}/gendict |
---|
134 | %{_bindir}/genrb |
---|
135 | %{_bindir}/icuinfo |
---|
136 | %{_bindir}/makeconv |
---|
137 | %{_bindir}/pkgdata |
---|
138 | %{_bindir}/uconv |
---|
139 | %{_sbindir}/* |
---|
140 | %{_mandir}/man?/* |
---|
141 | %exclude %{_mandir}/man1/icu-config.1* |
---|
142 | |
---|
143 | %files -n libicu%{sover} |
---|
144 | %license LICENSE |
---|
145 | %defattr(-, root, root, 0755) |
---|
146 | %{_libdir}/*.so.* |
---|
147 | |
---|
148 | %files -n libicu-devel |
---|
149 | %license LICENSE |
---|
150 | %defattr(-, root, root, 0755) |
---|
151 | %{_bindir}/icu-config |
---|
152 | %{_includedir}/unicode |
---|
153 | %{_libdir}/*.so |
---|
154 | %{_libdir}/%{name} |
---|
155 | %{_libdir}/pkgconfig/*.pc |
---|
156 | %{_mandir}/man1/icu-config.1* |
---|
157 | %{_datadir}/%{name} |
---|
158 | |
---|
159 | %files -n libicu-doc |
---|
160 | %license LICENSE |
---|
161 | %defattr(-,root,root,-) |
---|
162 | %doc docs/* |
---|
163 | |
---|
164 | %if %{build_compat32} |
---|
165 | %files -n compat32-libicu%{sover} |
---|
166 | %license LICENSE |
---|
167 | %defattr(-, root, root, 0755) |
---|
168 | %{_libdir}/*.so.* |
---|
169 | %endif |
---|
170 | |
---|
171 | |
---|
172 | %changelog |
---|
173 | * Fri Apr 24 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 67.1-1 |
---|
174 | - updated to 67.1. |
---|
175 | |
---|
176 | * Thu Mar 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 66.1-1 |
---|
177 | - updated to 66.1. |
---|
178 | |
---|
179 | * Sun Oct 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 65.1-2 |
---|
180 | - made to build compat32-* package. |
---|
181 | |
---|
182 | * Sun Oct 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 65.1-1 |
---|
183 | - updated to 65.1. |
---|
184 | |
---|
185 | * Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.3-1 |
---|
186 | - updated to 60.3. |
---|
187 | - disabled tests on i686. |
---|
188 | |
---|
189 | * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.2-1 |
---|
190 | - updated to 60.2. |
---|
191 | |
---|
192 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-2 |
---|
193 | - rebuild with gcc-5.4.0 |
---|
194 | |
---|
195 | * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-1 |
---|
196 | - update to 56.1 |
---|
197 | |
---|
198 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 54.1-1 |
---|
199 | - update to 54.1 |
---|
200 | |
---|
201 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 52.1-1 |
---|
202 | - new upstream release |
---|
203 | |
---|
204 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.2-1 |
---|
205 | - update to 51.2 |
---|
206 | |
---|
207 | * Tue Apr 13 2010 Shu KONNO <owa@bg.wakwak.com> 4.4-2 |
---|
208 | - install libicutest.so* |
---|
209 | |
---|
210 | * Sat Apr 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-1 |
---|
211 | - new upstream release |
---|
212 | - built with new toolchain |
---|
213 | |
---|
214 | * Sun Mar 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.1-1vl5 |
---|
215 | - new upstream release |
---|
216 | - updated URL |
---|
217 | |
---|
218 | * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 3.6-1vl5 |
---|
219 | - applied new versioning policy, spec in utf-8 |
---|
220 | |
---|
221 | * Tue Sep 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.6-0vl1 |
---|
222 | - updated to 3.6 |
---|
223 | - removed ".so ver" from libicu package name |
---|
224 | - changed Group to Development/Tools |
---|
225 | - changed libicu-doc Group to Applications/Documentation |
---|
226 | |
---|
227 | * Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.4.1-0vl1 |
---|
228 | - updated to 3.4.1 |
---|
229 | |
---|
230 | * Sun Jul 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.2-3vl1 |
---|
231 | - updated to 3.2 based on Fedora extra |
---|
232 | - new subpackage libicu-doc for API document |
---|
233 | |
---|
234 | * Sat Oct 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0-0vl1 |
---|
235 | - Build for Vine Linux |
---|
236 | - add developers document to devel package |
---|
237 | - add Japanese summary |
---|
238 | |
---|
239 | * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1 |
---|
240 | - Fixed a typo in the dependencies "libuci" should be "libicu". (Daniel Demus) |
---|
241 | |
---|
242 | * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-0 |
---|
243 | - Initial package. (using DAR) |
---|