libunistring-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. # Basic Information
  3. Name: libunistring
  4. Summary: library for manipulating Unicode strings
  5. Summary(ja): Unicode 文字列を処理するライブラリ
  6. Version: 0.9.4
  7. Release: 2%{?_dist_release}
  8. License: GPLv3+
  9. Group: System Environment/Libraries
  10. URL: http://www.gnu.org/software/libunistring/
  11. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: yasumichi
  16. # Dependency
  17. BuildRequires: texinfo
  18. BuildRequires: texlive
  19. BuildRequires: perl
  20. %description
  21. Text files are nowadays usually encoded in Unicode, and may consist of very
  22. different scripts – from Latin letters to Chinese Hanzi –, with many kinds
  23. of special characters – accents, right-to-left writing marks, hyphens,
  24. Roman numbers, and much more. But the POSIX platform APIs for text do not
  25. contain adequate functions for dealing with particular properties of many
  26. Unicode characters. In fact, the POSIX APIs for text have several
  27. assumptions at their base which don't hold for Unicode text.
  28. This library provides functions for manipulating Unicode strings and for
  29. manipulating C strings according to the Unicode standard.
  30. #%%description -l ja
  31. #%ここに日本語で詳細を記述してください。
  32. %package devel
  33. Summary: Development files and documentation for libunistring
  34. Summary(ja): libunistring の開発用ファイルとドキュメント
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. %description devel
  38. Development files and documentation for libunistring
  39. %package -n compat32-%{name}
  40. Summary: library for manipulating Unicode strings
  41. Summary(ja): Unicode 文字列を処理するライブラリ
  42. Group: Development/Libraries
  43. Requires: %{name} = %{version}-%{release}
  44. %description -n compat32-%{name}
  45. Text files are nowadays usually encoded in Unicode, and may consist of very
  46. different scripts – from Latin letters to Chinese Hanzi –, with many kinds
  47. of special characters – accents, right-to-left writing marks, hyphens,
  48. Roman numbers, and much more. But the POSIX platform APIs for text do not
  49. contain adequate functions for dealing with particular properties of many
  50. Unicode characters. In fact, the POSIX APIs for text have several
  51. assumptions at their base which don't hold for Unicode text.
  52. This library provides functions for manipulating Unicode strings and for
  53. manipulating C strings according to the Unicode standard.
  54. %package -n compat32-%{name}-devel
  55. Summary: Development files and documentation for libunistring
  56. Summary(ja): libunistring の開発用ファイルとドキュメント
  57. Group: Development/Libraries
  58. Requires: compat32-%{name} = %{version}-%{release}
  59. Requires: %{name}-devel = %{version}-%{release}
  60. %description -n compat32-%{name}-devel
  61. Development files and documentation for libunistring
  62. %prep
  63. %setup -q
  64. %build
  65. %configure --disable-static
  66. %{__make} %{?_smp_mflags}
  67. %install
  68. %{__rm} -rf ${RPM_BUILD_ROOT}
  69. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  70. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libunistring.la
  71. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  72. %clean
  73. %{__rm} -rf ${RPM_BUILD_ROOT}
  74. %post -p /sbin/ldconfig
  75. %postun -p /sbin/ldconfig
  76. %files
  77. %defattr(-,root,root)
  78. %doc AUTHORS COPYING ChangeLog HACKING NEWS README THANKS
  79. %{_libdir}/*.so.*
  80. %files devel
  81. %{_includedir}/uni*.h
  82. %{_includedir}/unistring
  83. %{_libdir}/libunistring.so
  84. %{_docdir}/libunistring
  85. %{_infodir}/libunistring.info.gz
  86. %if %{build_compat32}
  87. %files -n compat32-%{name}
  88. %defattr(-,root,root,-)
  89. %{_libdir}/*.so.*
  90. %files -n compat32-%{name}-devel
  91. %{_libdir}/libunistring.so
  92. %endif
  93. %changelog
  94. * Tue Jan 27 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.4-2
  95. - create compat32 packages
  96. * Mon Oct 6 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.4-1
  97. - updated to 0.9.4
  98. - moved libunistring to System Environment/Libraries
  99. - added %%post and %%postun
  100. * Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
  101. - add Requires: %{name} (devel package)
  102. * Wed Aug 15 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.3-1
  103. - initial build for Vine Linux