m17n-lib-vl.spec 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. %define ver 1.5.5
  2. %define rel 3
  3. Summary: a multilingual text processing library for the C language
  4. Name: m17n-lib
  5. Version: %{ver}
  6. Release: %{rel}%{?_dist_release}
  7. Source0: %{name}-%{version}.tar.gz
  8. License: LGPLv2.1+
  9. Group: System Environment/Libraries
  10. URL: http://www.m17n.org/m17n-lib-ja/
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: gd-devel fontconfig-devel
  13. BuildRequires: libxml2-devel
  14. BuildConflicts: anthy-devel
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. The m17n library is a multilingual text processing library for the C
  19. language.
  20. %package devel
  21. Summary: Development files for the %{name} package
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. Requires: pkgconfig
  25. %description devel
  26. Development files for the %{name} package.
  27. %prep
  28. %setup -q
  29. %build
  30. %configure --with-fontconfig --with-gd
  31. #%{__make} %{?_smp_mflags}
  32. ## don't use smp_mflags
  33. %{__make}
  34. %install
  35. %{__rm} -rf ${RPM_BUILD_ROOT}
  36. %{makeinstall}
  37. %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/*.a
  38. %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
  39. %clean
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %check
  42. make check
  43. %post -p /sbin/ldconfig
  44. %postun
  45. if [ "$1" = "0" ] ; then
  46. /sbin/ldconfig
  47. fi
  48. %files
  49. %defattr(-,root,root)
  50. %doc COPYING ChangeLog NEWS README TODO
  51. %{_bindir}/m17n*
  52. %{_libdir}/lib*.so.0.*
  53. %files devel
  54. %defattr(-,root,root)
  55. %doc example
  56. %{_includedir}/*.h
  57. %{_libdir}/lib*.so
  58. %{_libdir}/lib*.so.0
  59. %{_libdir}/pkgconfig/m17n*.pc
  60. %changelog
  61. * Sun May 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.5.5-3
  62. - add BuildRequires: libxml2-devel
  63. - add BuildConflicts: anthy-devel
  64. * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.5-2
  65. - rebuilt with rpm-4.8.1 for pkg-config
  66. * Sun Feb 7 2010 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1
  67. - new upstream release
  68. * Tue Apr 7 2009 Shu KONNO <owa@bg.wakwak.com> 1.5.4-2
  69. - dropt %%{?_smp_mflags}
  70. * Wed Apr 1 2009 IWAI, Masaharu <iwai@alib.jp> 1.5.4-1
  71. - initial release