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