icu-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. %define sover 44
  2. Summary: International Components for Unicode
  3. Summary(ja): ユニコード用国際化コンポーネント
  4. Name: icu
  5. Version: 4.4
  6. Release: 2%{?_dist_release}
  7. Group: Development/Tools
  8. License: MIT
  9. URL: http://icu-project.org/
  10. Source0: http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_4-src.tgz
  11. Source1: http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_4-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}/genctd
  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}/*.a
  98. %{_libdir}/%{name}
  99. %{_mandir}/man1/icu-config.1*
  100. %dir %{_datadir}/icu/
  101. %dir %{_datadir}/icu/4.4
  102. %{_datadir}/icu/4.4/config
  103. %{_datadir}/icu/4.4/install-sh
  104. %{_datadir}/icu/4.4/mkinstalldirs
  105. %doc %{_datadir}/icu/4.4/license.html
  106. %files -n libicu-doc
  107. %defattr(-,root,root,-)
  108. %doc docs/*
  109. %changelog
  110. * Tue Apr 13 2010 Shu KONNO <owa@bg.wakwak.com> 4.4-2
  111. - install libicutest.so*
  112. * Sat Apr 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-1
  113. - new upstream release
  114. - built with new toolchain
  115. * Sun Mar 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.1-1vl5
  116. - new upstream release
  117. - updated URL
  118. * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 3.6-1vl5
  119. - applied new versioning policy, spec in utf-8
  120. * Tue Sep 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.6-0vl1
  121. - updated to 3.6
  122. - removed ".so ver" from libicu package name
  123. - changed Group to Development/Tools
  124. - changed libicu-doc Group to Applications/Documentation
  125. * Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.4.1-0vl1
  126. - updated to 3.4.1
  127. * Sun Jul 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.2-3vl1
  128. - updated to 3.2 based on Fedora extra
  129. - new subpackage libicu-doc for API document
  130. * Sat Oct 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0-0vl1
  131. - Build for Vine Linux
  132. - add developers document to devel package
  133. - add Japanese summary
  134. * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1
  135. - Fixed a typo in the dependencies "libuci" should be "libicu". (Daniel Demus)
  136. * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-0
  137. - Initial package. (using DAR)