icu-vl.spec 5.3 KB

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