[12273] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[12386] | 3 | %define sover 67 |
---|
[12263] | 4 | %define minorver 1 |
---|
[11365] | 5 | |
---|
[12386] | 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 |
---|
[521] | 14 | |
---|
[12386] | 15 | License: MIT |
---|
| 16 | URL: http://icu-project.org/ |
---|
[521] | 17 | |
---|
[12386] | 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 |
---|
[521] | 20 | |
---|
[12386] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | BuildRequires: gcc-c++ |
---|
| 23 | BuildRequires: unzip perl |
---|
| 24 | Requires: libicu%{sover} = %{version}-%{release} |
---|
[8084] | 25 | |
---|
[521] | 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 | |
---|
[12386] | 31 | |
---|
[12263] | 32 | %package -n libicu%{sover} |
---|
[521] | 33 | Summary: International Components for Unicode (library) |
---|
| 34 | Summary(ja): ユニコード用国際化コンポーネント (ライブラリ) |
---|
| 35 | Group: System Environment/Libraries |
---|
[12263] | 36 | Provides: libicu = %{version}-%{release} |
---|
[521] | 37 | |
---|
[12263] | 38 | %description -n libicu%{sover} |
---|
[521] | 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 | |
---|
[12386] | 43 | |
---|
[521] | 44 | %package -n libicu-devel |
---|
| 45 | Summary: Header files, libraries and development documentation for libicu |
---|
| 46 | Summary(ja): libicu 用のヘッダファイル、ライブラリおよび開発用ドキュメント |
---|
| 47 | Group: Development/Libraries |
---|
[12263] | 48 | Requires: libicu%{sover} = %{version}-%{release} |
---|
[521] | 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 | |
---|
[12386] | 55 | |
---|
[521] | 56 | %package -n libicu-doc |
---|
| 57 | Summary: Documentation for International Components for Unicode |
---|
| 58 | Summary(ja): ユニコード用国際化コンポーネントのドキュメント |
---|
| 59 | Group: Applications/Documentation |
---|
[12263] | 60 | Requires: libicu%{sover} = %{version}-%{release} |
---|
[521] | 61 | |
---|
| 62 | %description -n libicu-doc |
---|
| 63 | This package contains the development documentation for %{name}. |
---|
| 64 | |
---|
[12386] | 65 | |
---|
[12273] | 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 | |
---|
[12386] | 81 | %debug_package |
---|
| 82 | |
---|
| 83 | |
---|
[521] | 84 | %prep |
---|
[12263] | 85 | %setup -q -n icu |
---|
[12131] | 86 | |
---|
[521] | 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 | |
---|
[12386] | 95 | |
---|
[521] | 96 | %build |
---|
| 97 | cd source |
---|
| 98 | export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
---|
| 99 | export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
---|
[798] | 100 | %configure --disable-static --with-data-packaging=library --disable-samples |
---|
[12131] | 101 | make %{?_smp_mflags} |
---|
[521] | 102 | |
---|
[12386] | 103 | |
---|
[521] | 104 | %install |
---|
| 105 | rm -rf $RPM_BUILD_ROOT |
---|
| 106 | make -C source install DESTDIR=$RPM_BUILD_ROOT |
---|
[818] | 107 | cp -pR ./source/tools/ctestfw/libicutest.so* $RPM_BUILD_ROOT/%{_libdir} |
---|
[521] | 108 | chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.* |
---|
| 109 | |
---|
[12131] | 110 | %ifarch x86_64 |
---|
[521] | 111 | %check || : |
---|
[12131] | 112 | make %{?_smp_mflags} -C source check |
---|
| 113 | %endif |
---|
[521] | 114 | |
---|
[12386] | 115 | |
---|
[521] | 116 | %clean |
---|
| 117 | rm -rf $RPM_BUILD_ROOT |
---|
| 118 | |
---|
[12386] | 119 | |
---|
[12263] | 120 | %post -n libicu%{sover} -p /sbin/ldconfig |
---|
[521] | 121 | |
---|
[12263] | 122 | %postun -n libicu%{sover} -p /sbin/ldconfig |
---|
[521] | 123 | |
---|
[12386] | 124 | |
---|
[521] | 125 | %files |
---|
| 126 | %defattr(-, root, root, 0755) |
---|
[11365] | 127 | %license LICENSE |
---|
[521] | 128 | %doc license.html readme.html |
---|
| 129 | %{_bindir}/derb |
---|
| 130 | %{_bindir}/genbrk |
---|
[798] | 131 | %{_bindir}/gencfu |
---|
[521] | 132 | %{_bindir}/gencnval |
---|
[7938] | 133 | %{_bindir}/gendict |
---|
[521] | 134 | %{_bindir}/genrb |
---|
[798] | 135 | %{_bindir}/icuinfo |
---|
[521] | 136 | %{_bindir}/makeconv |
---|
| 137 | %{_bindir}/pkgdata |
---|
| 138 | %{_bindir}/uconv |
---|
| 139 | %{_sbindir}/* |
---|
| 140 | %{_mandir}/man?/* |
---|
| 141 | %exclude %{_mandir}/man1/icu-config.1* |
---|
| 142 | |
---|
[12263] | 143 | %files -n libicu%{sover} |
---|
[11365] | 144 | %license LICENSE |
---|
[521] | 145 | %defattr(-, root, root, 0755) |
---|
| 146 | %{_libdir}/*.so.* |
---|
| 147 | |
---|
| 148 | %files -n libicu-devel |
---|
[11365] | 149 | %license LICENSE |
---|
[521] | 150 | %defattr(-, root, root, 0755) |
---|
| 151 | %{_bindir}/icu-config |
---|
| 152 | %{_includedir}/unicode |
---|
| 153 | %{_libdir}/*.so |
---|
| 154 | %{_libdir}/%{name} |
---|
[11365] | 155 | %{_libdir}/pkgconfig/*.pc |
---|
[521] | 156 | %{_mandir}/man1/icu-config.1* |
---|
[7938] | 157 | %{_datadir}/%{name} |
---|
[521] | 158 | |
---|
| 159 | %files -n libicu-doc |
---|
[11365] | 160 | %license LICENSE |
---|
[521] | 161 | %defattr(-,root,root,-) |
---|
| 162 | %doc docs/* |
---|
| 163 | |
---|
[12273] | 164 | %if %{build_compat32} |
---|
| 165 | %files -n compat32-libicu%{sover} |
---|
| 166 | %license LICENSE |
---|
| 167 | %defattr(-, root, root, 0755) |
---|
| 168 | %{_libdir}/*.so.* |
---|
| 169 | %endif |
---|
| 170 | |
---|
[12386] | 171 | |
---|
[521] | 172 | %changelog |
---|
[12386] | 173 | * Fri Apr 24 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 67.1-1 |
---|
| 174 | - updated to 67.1. |
---|
| 175 | |
---|
[12339] | 176 | * Thu Mar 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 66.1-1 |
---|
| 177 | - updated to 66.1. |
---|
| 178 | |
---|
[12273] | 179 | * Sun Oct 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 65.1-2 |
---|
| 180 | - made to build compat32-* package. |
---|
| 181 | |
---|
[12263] | 182 | * Sun Oct 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 65.1-1 |
---|
| 183 | - updated to 65.1. |
---|
| 184 | |
---|
[12131] | 185 | * Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.3-1 |
---|
| 186 | - updated to 60.3. |
---|
[12273] | 187 | - disabled tests on i686. |
---|
[12131] | 188 | |
---|
[11365] | 189 | * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.2-1 |
---|
| 190 | - updated to 60.2. |
---|
| 191 | |
---|
[10413] | 192 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-2 |
---|
| 193 | - rebuild with gcc-5.4.0 |
---|
| 194 | |
---|
[9791] | 195 | * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-1 |
---|
| 196 | - update to 56.1 |
---|
| 197 | |
---|
[9073] | 198 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 54.1-1 |
---|
| 199 | - update to 54.1 |
---|
| 200 | |
---|
[8084] | 201 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 52.1-1 |
---|
| 202 | - new upstream release |
---|
| 203 | |
---|
[7938] | 204 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.2-1 |
---|
| 205 | - update to 51.2 |
---|
| 206 | |
---|
[818] | 207 | * Tue Apr 13 2010 Shu KONNO <owa@bg.wakwak.com> 4.4-2 |
---|
| 208 | - install libicutest.so* |
---|
| 209 | |
---|
[798] | 210 | * Sat Apr 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-1 |
---|
| 211 | - new upstream release |
---|
| 212 | - built with new toolchain |
---|
| 213 | |
---|
[521] | 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) |
---|