icu-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. %define sover 40
  2. Summary: International Components for Unicode
  3. Summary(ja): ユニコード用国際化コンポーネント
  4. Name: icu
  5. Version: 4.0.1
  6. Release: 1%{?_dist_release}
  7. Group: Development/Tools
  8. License: MIT
  9. URL: http://www.ibm.com/software/globalization/icu/
  10. Source0: http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_0_1-src.tgz
  11. Source1: http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_0_1-docs.zip
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. #Requires: libicu%{sover} = %{version}
  14. Requires: libicu = %{version}-%{release}
  15. BuildRequires: gcc-c++
  16. BuildRequires: unzip perl
  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 --enable-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. #%{_sysconfdir}/icu/
  75. %{_bindir}/derb
  76. %{_bindir}/genbrk
  77. %{_bindir}/gencnval
  78. %{_bindir}/genctd
  79. %{_bindir}/genrb
  80. %{_bindir}/makeconv
  81. %{_bindir}/pkgdata
  82. %{_bindir}/uconv
  83. %{_sbindir}/*
  84. %{_mandir}/man?/*
  85. %exclude %{_mandir}/man1/icu-config.1*
  86. %files -n libicu
  87. %defattr(-, root, root, 0755)
  88. %{_libdir}/*.so.*
  89. %files -n libicu-devel
  90. %defattr(-, root, root, 0755)
  91. %{_bindir}/icu-config
  92. %{_includedir}/layout
  93. %{_includedir}/unicode
  94. %{_libdir}/*.so
  95. %{_libdir}/*.a
  96. %{_libdir}/%{name}
  97. %{_mandir}/man1/icu-config.1*
  98. %dir %{_datadir}/icu/
  99. %dir %{_datadir}/icu/4.0.1
  100. %{_datadir}/icu/4.0.1/config
  101. %{_datadir}/icu/4.0.1/install-sh
  102. %{_datadir}/icu/4.0.1/mkinstalldirs
  103. %doc %{_datadir}/icu/4.0.1/license.html
  104. %files -n libicu-doc
  105. %defattr(-,root,root,-)
  106. %doc docs/*
  107. %changelog
  108. * Sun Mar 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.1-1vl5
  109. - new upstream release
  110. - updated URL
  111. * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 3.6-1vl5
  112. - applied new versioning policy, spec in utf-8
  113. * Tue Sep 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.6-0vl1
  114. - updated to 3.6
  115. - removed ".so ver" from libicu package name
  116. - changed Group to Development/Tools
  117. - changed libicu-doc Group to Applications/Documentation
  118. * Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.4.1-0vl1
  119. - updated to 3.4.1
  120. * Sun Jul 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.2-3vl1
  121. - updated to 3.2 based on Fedora extra
  122. - new subpackage libicu-doc for API document
  123. * Sat Oct 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0-0vl1
  124. - Build for Vine Linux
  125. - add developers document to devel package
  126. - add Japanese summary
  127. * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1
  128. - Fixed a typo in the dependencies "libuci" should be "libicu". (Daniel Demus)
  129. * Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-0
  130. - Initial package. (using DAR)