icu-vl.spec 4.8 KB

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