Changeset 733
- Timestamp:
- Apr 6, 2016, 4:31:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified spec/trunk/SPECS/icu-legacy.spec ¶
r699 r733 7 7 Group: System/Libraries 8 8 Version: %{_icu_full_version} 9 Release: 1%{?dist} 10 Requires: libicu = %{version} 9 Release: 2%{?dist} 11 10 Url: http://ibm.com/software/globalization/icu 12 11 13 Source0: icu4c-4_2_1-src.tgz 14 Source1: icu-mh-os2 15 Patch0: icu-os2.patch 12 Source0: icu-legacy.zip 16 13 17 14 BuildRoot: %{_tmppath}/%{name}-%{version}-build … … 39 36 The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com> 40 37 41 %package -n libicu 38 %package -n libicu-legacy 42 39 License: IBM Public License 43 40 Summary: International Components for Unicode (development files) 44 41 Group: Development/Libraries/C and C++ 45 42 46 %description -n libicu 43 %description -n libicu-legacy 47 44 ICU is a set of C and C++ libraries that provides robust and 48 45 full-featured Unicode support. This package contains the runtime … … 56 53 The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com> 57 54 58 %package -n libicu-devel59 License: IBM Public License60 Summary: International Components for Unicode (development files)61 Group: Development/Libraries/C and C++62 Requires: libicu = %{version}63 64 %description -n libicu-devel65 ICU is a C++ and C library that provides robust and full-featured66 Unicode support. This package contains the development files for ICU.67 68 69 70 Authors:71 --------72 The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>73 74 %package -n libicu-doc75 License: IBM Public License76 Summary: International Components for Unicode (html documentation)77 Group: Development/Libraries/C and C++78 79 %description -n libicu-doc80 ICU is a C++ and C library that provides robust and full-featured81 Unicode support. This package contains the html documentation.82 83 84 85 Authors:86 --------87 The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>88 89 %package -n icu-data90 License: IBM Public License91 Summary: International Components for Unicode (Sources for the Data in ICU)92 Group: System/Libraries93 Requires: libicu >= %{version}94 95 %description -n icu-data96 ICU is a C++ and C library that provides robust and full-featured97 Unicode support. This package contains the source files for the data98 found in the "icu" package.99 100 This data describes the Unicode data (normative and informative) and101 also all the table-based converters provided in the ICU distribution.102 103 This package contains uncompiled source data. Precompiled data is in104 the `libicu%{version}' package.105 106 107 108 Authors:109 --------110 The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>111 55 112 56 %prep 113 57 %setup -q -n icu 114 %patch0 -p1115 116 cp %{SOURCE1} source/config/mh-os2117 58 118 59 %build 119 120 cd source 121 rm -f config.cache 122 123 script_dir=%{_topdir}/BUILD/%{name}/source 124 export PATH="$script_dir/bin${PATH:+;$PATH}" 125 export BEGINLIBPATH="$script_dir/lib;$script_dir/stubdata;$script_dir/tools/ctestfw;${BEGINLIBPATH:+;$BEGINLIBPATH}" 126 export LIBPATHSTRICT=T 127 128 #force libc to use sh for system() in pkgdata.exe 129 export EEEMXSHELL="sh" 130 131 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 132 export LDFLAGS="-Zomf -Zhigh-mem" 133 export LIBS="-lurpo -lpthread" 134 %configure \ 135 --disable-static \ 136 --enable-shared \ 137 --without-samples \ 138 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 139 make %{?_smp_mflags} 140 141 %install 142 rm -rf ${RPM_BUILD_ROOT} 143 144 script_dir=%{_topdir}/BUILD/%{name}/source 145 export PATH="$script_dir/bin${PATH:+;$PATH}" 146 export BEGINLIBPATH="$script_dir/lib;$script_dir/stubdata;$script_dir/tools/ctestfw;${BEGINLIBPATH:+;$BEGINLIBPATH}" 147 export LIBPATHSTRICT=T 148 149 cd source 150 make DESTDIR=$RPM_BUILD_ROOT install 151 # to extract debug info 152 #chmod a+rx $RPM_BUILD_ROOT%{_libdir}/*.so.* 153 # install uncompiled source data: 154 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/unidata 155 install -m 644 data/unidata/*.txt $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/unidata 156 ln -s unidata/UnicodeData.txt $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/ 157 158 rm $RPM_BUILD_ROOT%{_libdir}/*.a.bak 159 rm $RPM_BUILD_ROOT%{_libdir}/icu??.dll 160 rm $RPM_BUILD_ROOT%{_libdir}/icudt??.dll 161 mv $RPM_BUILD_ROOT%{_libdir}/icudt%{_icu_dll_version}.1.dll $RPM_BUILD_ROOT%{_libdir}/icudt%{_icu_dll_version}.dll 162 163 # run test suite: 164 #pushd data 165 #ln -sf build/*.cnv build/*.res build/*.dat build/*.brk . 166 #popd 167 #make check || echo "make check returned $?, ignored." 168 #popd 169 rm $RPM_BUILD_ROOT/%{_datadir}/icu/%{version}/license.html 170 rm $RPM_BUILD_ROOT/%{_datadir}/icu/%{version}/install-sh 60 mkdir -p %{buildroot}%{_libdir} 61 cp -p *.dll %{buildroot}%{_libdir} 171 62 172 63 %clean … … 176 67 %defattr(-, root, root) 177 68 %doc license.html readme.html 178 %dir %{_libdir}/icu/179 %dir %{_libdir}/icu/%{version}180 %{_libdir}/icu/current181 %{_bindir}/derb.exe182 %{_bindir}/genbrk.exe183 %{_bindir}/gencfu.exe184 %{_bindir}/gencnval.exe185 %{_bindir}/genrb.exe186 %{_bindir}/genctd.exe187 %{_bindir}/makeconv.exe188 %{_bindir}/pkgdata.exe189 %{_bindir}/uconv.exe190 %{_mandir}/*/*191 69 192 %files -n libicu 70 %files -n libicu-legacy 193 71 %defattr(-, root, root) 194 72 %attr (755, root, root) %{_libdir}/*.dll 195 73 196 %files -n libicu-devel197 %defattr(-, root, root)198 %{_libdir}/*.a199 %{_includedir}/unicode/200 %{_includedir}/layout/201 %{_libdir}/icu/%{version}/Makefile.inc202 %{_libdir}/icu/%{version}/pkgdata.inc203 %{_libdir}/icu/Makefile.inc204 %{_libdir}/icu/pkgdata.inc205 %{_bindir}/icu-config206 %dir %{_datadir}/icu207 %dir %{_datadir}/icu/%{version}208 %{_datadir}/icu/%{version}/mkinstalldirs209 %{_datadir}/icu/%{version}/config/210 %{_sbindir}/*.exe211 212 #%files -n libicu-doc213 #%defattr(-, root, root)214 #%doc html/215 216 %files -n icu-data217 %defattr(-, root, root)218 %{_datadir}/icu/%{version}/unidata/219 %{_datadir}/icu/%{version}/UnicodeData.txt220 221 74 %changelog 75 * Wed Apr 06 2016 yd <yd@os2power.com> 4.2.1-2 76 - repackage legacy dlls.
Note:
See TracChangeset
for help on using the changeset viewer.