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