m17n-lib-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Name: m17n-lib
  2. Version: 1.7.0
  3. Release: 1%{?_dist_release}
  4. Summary: Multilingual text library
  5. Summary(ja): 多言語テキストライブラリ
  6. License: LGPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://www.nongnu.org/m17n/
  9. Source0: http://download.savannah.gnu.org/releases/m17n/%{name}-%{version}.tar.gz
  10. Patch0: %{name}-1.6.1-multilib.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: fontconfig-devel
  13. BuildRequires: fribidi-devel
  14. BuildRequires: gd-devel
  15. BuildRequires: libotf-devel
  16. BuildRequires: libthai-devel
  17. BuildRequires: libxml2-devel
  18. BuildRequires: libXt-devel
  19. BuildRequires: m17n-db-devel
  20. BuildConflicts: anthy-devel
  21. Requires: m17n-db
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. m17n-lib is a multilingual text library used primarily to allow
  26. the input of many languages with the input table maps from m17n-db.
  27. %package devel
  28. Summary: Development files for the %{name} package
  29. Summary(ja): %{name} の開発用ファイル
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: %{name}-tools = %{version}-%{release}
  33. Requires: pkgconfig
  34. %description devel
  35. Development files for the %{name} package.
  36. %package tools
  37. Summary: m17n GUI Library tools
  38. Summary(ja): m17n GUI ライブラリツール集
  39. Group: Applications/Text
  40. Requires: m17n-db
  41. Requires: %{name} = %{version}-%{release}
  42. %description tools
  43. Tools to test M17n GUI widget library.
  44. %prep
  45. %setup -q
  46. %patch0 -p1
  47. mkdir -p docs_to_include
  48. cp -pr example docs_to_include
  49. %build
  50. autoreconf -ivf
  51. %configure \
  52. --disable-rpath \
  53. --disable-static \
  54. --with-fontconfig \
  55. --with-gd
  56. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  57. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  58. # parallel make usage with make command fails build on koji
  59. make
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  63. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  64. # remove unused files
  65. rm -f $RPM_BUILD_ROOT%{_libdir}/m17n/1.0/libmimx-anthy.so
  66. rm -f $RPM_BUILD_ROOT%{_libdir}/m17n/1.0/libmimx-ispell.so
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %check
  70. make check
  71. %post -p /sbin/ldconfig
  72. %postun -p /sbin/ldconfig
  73. %post tools -p /sbin/ldconfig
  74. %postun tools -p /sbin/ldconfig
  75. %files
  76. %defattr(-,root,root)
  77. %doc AUTHORS COPYING NEWS ChangeLog README
  78. %dir %{_libdir}/m17n
  79. %dir %{_libdir}/m17n/1.0
  80. %{_bindir}/m17n-conv
  81. %{_libdir}/libm17n.so.*
  82. %{_libdir}/libm17n-core.so.*
  83. %{_libdir}/libm17n-flt.so.*
  84. %files devel
  85. %defattr(-,root,root)
  86. %doc docs_to_include/example
  87. %{_bindir}/m17n-config
  88. %{_includedir}/*
  89. %{_libdir}/lib*.so
  90. %{_libdir}/pkgconfig/*
  91. %files tools
  92. %defattr(-,root,root)
  93. %{_bindir}/m17n-date
  94. %{_bindir}/m17n-dump
  95. %{_bindir}/m17n-edit
  96. %{_bindir}/m17n-view
  97. %{_libdir}/m17n/1.0/libm17n-X.so
  98. %{_libdir}/m17n/1.0/libm17n-gd.so
  99. %{_libdir}/libm17n-gui.so.*
  100. %changelog
  101. * Thu Apr 2 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.7.0-1
  102. - update to 1.7.0
  103. - fixed lib*.so.? location
  104. - added BuildRequires: fribidi-devel, libthai-devel and m17-db-devel
  105. - added Japanese summary
  106. - split tools into tools subpackage
  107. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.4-1
  108. - update to 1.6.4
  109. - add BuildRequires: libXt-devel
  110. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.5-5
  111. - rebuild with VineSeed environment
  112. * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.5-4
  113. - rebuilt with gd-2.1.0.
  114. * Sun May 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.5.5-3
  115. - add BuildRequires: libxml2-devel
  116. - add BuildConflicts: anthy-devel
  117. * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.5-2
  118. - rebuilt with rpm-4.8.1 for pkg-config
  119. * Sun Feb 7 2010 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1
  120. - new upstream release
  121. * Tue Apr 7 2009 Shu KONNO <owa@bg.wakwak.com> 1.5.4-2
  122. - dropt %%{?_smp_mflags}
  123. * Wed Apr 1 2009 IWAI, Masaharu <iwai@alib.jp> 1.5.4-1
  124. - initial release