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