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