icu-vl.spec 5.1 KB

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