libunistring-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. # Basic Information
  3. Name: libunistring
  4. Version: 0.9.4
  5. Release: 1%{?_dist_release}
  6. License: GPLv3+
  7. Group: Development/Libraries
  8. URL: http://www.gnu.org/software/libunistring/
  9. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: library for manipulating Unicode strings
  15. Summary(ja): Unicode 文字列を処理するライブラリ
  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
  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.a
  71. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libunistring.la
  72. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  73. %clean
  74. %{__rm} -rf ${RPM_BUILD_ROOT}
  75. %files
  76. %defattr(-,root,root,-)
  77. %doc AUTHORS COPYING ChangeLog HACKING NEWS README THANKS
  78. %{_libdir}/*.so.*
  79. %files devel
  80. %defattr(-,root,root,-)
  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. * Mon Jan 26 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.4-1
  95. - update to 0.9.4
  96. - create compat32 packages
  97. * Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
  98. - add Requires: %{name} (devel package)
  99. * Wed Aug 15 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.3-1
  100. - initial build for Vine Linux