icu-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. %define sover 44
  2. Summary: International Components for Unicode
  3. Summary(ja): ユニコード用国際化コンポーネント
  4. Name: icu
  5. Version: 4.4
  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/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. chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
  65. %check || :
  66. make -C source check
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %post -n libicu -p /sbin/ldconfig
  70. %postun -n libicu -p /sbin/ldconfig
  71. %files
  72. %defattr(-, root, root, 0755)
  73. %doc license.html readme.html
  74. %{_bindir}/derb
  75. %{_bindir}/genbrk
  76. %{_bindir}/gencfu
  77. %{_bindir}/gencnval
  78. %{_bindir}/genctd
  79. %{_bindir}/genrb
  80. %{_bindir}/icuinfo
  81. %{_bindir}/makeconv
  82. %{_bindir}/pkgdata
  83. %{_bindir}/uconv
  84. %{_sbindir}/*
  85. %{_mandir}/man?/*
  86. %exclude %{_mandir}/man1/icu-config.1*
  87. %files -n libicu
  88. %defattr(-, root, root, 0755)
  89. %{_libdir}/*.so.*
  90. %files -n libicu-devel
  91. %defattr(-, root, root, 0755)
  92. %{_bindir}/icu-config
  93. %{_includedir}/layout
  94. %{_includedir}/unicode
  95. %{_libdir}/*.so
  96. #{_libdir}/*.a
  97. %{_libdir}/%{name}
  98. %{_mandir}/man1/icu-config.1*
  99. %dir %{_datadir}/icu/
  100. %dir %{_datadir}/icu/4.4
  101. %{_datadir}/icu/4.4/config
  102. %{_datadir}/icu/4.4/install-sh
  103. %{_datadir}/icu/4.4/mkinstalldirs
  104. %doc %{_datadir}/icu/4.4/license.html
  105. %files -n libicu-doc
  106. %defattr(-,root,root,-)
  107. %doc docs/*
  108. %changelog
  109. * Sat Apr 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-1
  110. - new upstream release
  111. - built with new toolchain
  112. * Sun Mar 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.1-1vl5
  113. - new upstream release
  114. - updated URL
  115. * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 3.6-1vl5
  116. - applied new versioning policy, spec in utf-8
  117. * Tue Sep 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.6-0vl1
  118. - updated to 3.6
  119. - removed ".so ver" from libicu package name
  120. - changed Group to Development/Tools
  121. - changed libicu-doc Group to Applications/Documentation
  122. * Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.4.1-0vl1
  123. - updated to 3.4.1
  124. * Sun Jul 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.2-3vl1
  125. - updated to 3.2 based on Fedora extra
  126. - new subpackage libicu-doc for API document
  127. * Sat Oct 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0-0vl1
  128. - Build for Vine Linux
  129. - add developers document to devel package
  130. - add Japanese summary
  131. * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1
  132. - Fixed a typo in the dependencies "libuci" should be "libicu". (Daniel Demus)
  133. * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-0
  134. - Initial package. (using DAR)