icu60-vl.spec 6.0 KB

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