gettext-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. %define libtoolize :
  2. Summary: GNU libraries and utilities for producing multi-lingual messages.
  3. Summary(ja): マルチリンガルメッセージを生成するためのGNU ライブラリ/ユーティリティ
  4. Name: gettext
  5. Version: 0.17
  6. Release: 5%{?_dist_release}
  7. License: GPLv3 and LGPLv2+
  8. Group: Development/Tools
  9. Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
  10. URL: http://www.gnu.org/software/gettext/
  11. Source2: msghack.py
  12. Patch5: gettext-0.17-open-args.patch
  13. Patch6: gettext-0.17-autopoint-CVS-441481.patch
  14. Patch7: gettext-0.17-rpathFix.patch
  15. Patch8: gettext-xgettext-python-unicode-surrogate-473946.patch
  16. BuildRequires: libtool, bison, gcc-c++
  17. BuildRequires: expat-devel
  18. Requires(post): /sbin/install-info
  19. Requires(preun): /sbin/install-info
  20. Buildroot: %{_tmppath}/%{name}-%{version}-root
  21. Packager: daisuke
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. The GNU gettext package provides a set of tools and documentation for
  26. producing multi-lingual messages in programs. Tools include a set of
  27. conventions about how programs should be written to support message
  28. catalogs, a directory and file naming organization for the message
  29. catalogs, a runtime library which supports the retrieval of translated
  30. messages, and stand-alone programs for handling the translatable and
  31. the already translated strings. Gettext provides an easy to use
  32. library and tools for creating, using, and modifying natural language
  33. catalogs and is a powerful and simple method for internationalizing
  34. programs.
  35. %description -l ja
  36. GNU gettext パッケージはプログラム中でマルチリンガルメッセージを生成する
  37. ためのツールと文書を提供します. ツールはメッセージカタログをサポートするために
  38. プログラムがどのように書かれるべきかの申し合わせと, メッセージカタログのための
  39. ディレクトリとファイル名の組織化と, 翻訳されたメッセージの埋め合わせを
  40. サポートするためのランタイムライブラリと, 翻訳可能でかつすでに翻訳された文字列
  41. を取り扱う独立したプログラムを含みます. gettext は簡単に使えるライブラリ
  42. と自然言語のカタログを生成, 使用, 修正するツールと, 国際化プログラム
  43. のための強力かつシンプルな方法を提供します.
  44. %package devel
  45. Summary: Development files for gettext
  46. Summary(ja): gettext 用開発ファイル
  47. Group: Development/Tools
  48. License: LGPLv2+
  49. Requires: %{name} = %{version}-%{release}
  50. Requires: %{name}-libs = %{version}-%{release}
  51. Requires(post): /sbin/install-info
  52. Requires(preun): /sbin/install-info
  53. %description devel
  54. This package contains all development related files necessary for
  55. developing or compiling applications/libraries that needs
  56. internationalization capability. You also need this package if you
  57. want to add gettext support for your project.
  58. %description devel -l ja
  59. このパッケージには、マルチリンガル機能を持つアプリケーションや
  60. ライブラリを開発・コンパイルするのに必要な開発関連ファイルが収録
  61. されています。
  62. %package libs
  63. Summary: Libraries for gettext
  64. Summary(ja): gettext 用共有ライブラリ
  65. Group: System Environment/Libraries
  66. License: LGPLv2+
  67. %description libs
  68. This package contains libraries used internationalization support.
  69. %description libs -l ja
  70. このパッケージには国際化サポートに必要な共有ライブラリが収録されています。
  71. %prep
  72. %setup -q
  73. %patch5 -p0 -b .5-open-args~
  74. %patch6 -p0 -b .6-autopoint~
  75. %patch7 -p0 -b .rpathFix~
  76. %patch8 -p0 -b .unicode~
  77. %build
  78. ## running autoreconf for automake-1.11.1
  79. autoreconf -fi
  80. [ -f /usr/share/automake/depcomp ] && cp -f /usr/share/automake/{depcomp,ylwrap} . || :
  81. %configure --without-included-gettext --enable-nls \
  82. --enable-shared --disable-static --with-pic=yes \
  83. --disable-csharp --disable-java
  84. make %{?_smp_mflags}
  85. %install
  86. rm -rf $RPM_BUILD_ROOT
  87. # Fix busted no-emacs install for $lispdir/po-mode.el
  88. %makeinstall lispdir=%{buildroot}/usr/share/emacs/site-lisp \
  89. aclocaldir=%{buildroot}/usr/share/aclocal
  90. # delete po-mode
  91. %{__rm} -rf %{buildroot}/usr/share/emacs/site-lisp
  92. mkdir -p %{buildroot}/bin
  93. mv %{buildroot}/%{_bindir}/gettext %{buildroot}/bin
  94. ln -s ../../bin/gettext %{buildroot}/%{_bindir}/gettext
  95. install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}/msghack
  96. pushd %{buildroot}
  97. rm -f .%{_infodir}/dir .%{_includedir}/libintl.h
  98. popd
  99. %find_lang %{name}-runtime
  100. %find_lang %{name}-tools
  101. cat %{name}-*.lang > %{name}.lang
  102. # remove unpackaged files from the buildroot
  103. rm -rf $RPM_BUILD_ROOT/usr/share/doc
  104. rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
  105. rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias
  106. %__rm -rf %{buildroot}%{_docdir}/%{name}
  107. %clean
  108. rm -rf $RPM_BUILD_ROOT
  109. %post
  110. /sbin/ldconfig
  111. /sbin/install-info %{_infodir}/gettext.info.gz %{_infodir}/dir || :
  112. %preun
  113. if [ "$1" = 0 ]; then
  114. /sbin/install-info --delete %{_infodir}/gettext.info.gz %{_infodir}/dir || :
  115. fi
  116. exit 0
  117. %postun -p /sbin/ldconfig
  118. %post devel
  119. /sbin/ldconfig
  120. /sbin/install-info %{_infodir}/autosprintf.info %{_infodir}/dir || :
  121. %preun devel
  122. if [ "$1" = 0 ]; then
  123. /sbin/install-info --delete %{_infodir}/autosprintf.info %{_infodir}/dir || :
  124. fi
  125. %postun devel -p /sbin/ldconfig
  126. %post libs -p /sbin/ldconfig
  127. %postun libs -p /sbin/ldconfig
  128. %files -f gettext.lang
  129. %defattr(-,root,root,-)
  130. %doc gettext-runtime/ABOUT-NLS AUTHORS gettext-runtime/BUGS
  131. %doc COPYING ChangeLog gettext-tools/misc/DISCLAIM README
  132. %doc NEWS THANKS
  133. %doc gettext-runtime/man/*.1.html
  134. %doc gettext-runtime/intl/COPYING*
  135. /bin/*
  136. %{_bindir}/*
  137. %{_libdir}/libgettextlib-%{version}.so
  138. %{_libdir}/libgettextsrc-%{version}.so
  139. %{_infodir}/gettext*
  140. %{_mandir}/man1/*
  141. %{_libdir}/gettext
  142. %{_datadir}/gettext/archive.tar.gz
  143. %{_datadir}/gettext/styles
  144. %files devel
  145. %defattr(-,root,root,-)
  146. %doc gettext-runtime/man/*.3.html ChangeLog
  147. %{_datadir}/gettext/ABOUT-NLS
  148. %{_datadir}/gettext/projects/
  149. %{_datadir}/gettext/config.rpath
  150. %{_datadir}/gettext/*.h
  151. %{_datadir}/gettext/intl
  152. %{_datadir}/gettext/po
  153. %{_datadir}/gettext/msgunfmt.tcl
  154. %{_datadir}/aclocal/*
  155. %{_includedir}/*
  156. %{_infodir}/autosprintf*
  157. %{_libdir}/libasprintf.so
  158. %{_libdir}/libgettextpo.so
  159. %{_libdir}/libgettextlib.so
  160. %{_libdir}/libgettextsrc.so
  161. %{_libdir}/preloadable_libintl.so
  162. %{_mandir}/man3/*
  163. %{_datadir}/%{name}/javaversion.class
  164. %doc gettext-runtime/intl-java/javadoc*
  165. %files libs
  166. %defattr(-,root,root,-)
  167. %{_libdir}/libasprintf.so.*
  168. %{_libdir}/libgettextpo.so.*
  169. %changelog
  170. * Wed Feb 24 2010 IWAI, Masaharu <iwai@alib.jp> - 0.17-5
  171. - split to po-mode package: [VineSeed:20076]
  172. - update Packager value: update format
  173. - running autoreconf for automake-1.11.1 in %%build
  174. * Tue Dec 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> - 0.17-4
  175. - correct some output messages on po-mode-install.sh
  176. - use %%emacsen_pkgdir
  177. * Sun May 10 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-3
  178. - we better not to use BuildConflicts very often :-P
  179. instead we pass --disable-java to configure here
  180. - add --enable-shared --disable-static --without-included-gettext to configure
  181. - remove .la files
  182. - add -devel and --libs subpackages
  183. * Wed May 6 2009 IWAI, Masaharu <iwai@alib.jp> 0.17-2
  184. - apply vine-default
  185. - update po-mode-init.el (Source1)
  186. - update po-mode-install.sh (Source3)
  187. - update po-mode-remove.sh (Source4)
  188. - add vine-default-po-mode.el (Source5): based 0.17-1's po-mode-init.el
  189. - update %%doc: gettext-runtime/libasprintf/autosprintf_all.html
  190. * Sat Aug 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-1
  191. - new upstream release
  192. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.16.1-1vl5
  193. - applied new versioning policy, spec in utf-8
  194. * Wed Jan 31 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.16.1-0vl2
  195. - changelog update missing
  196. * Tue Jan 30 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.16.1-0vl1
  197. - new upstream release
  198. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.14.5-0vl6
  199. - changed po-mode Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  200. * Mon Aug 21 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.14.5-0vl5
  201. - add BuildConflicts: libgcj34-devel not to depend on libgcj34
  202. * Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.14.5-0vl4
  203. - add BuildConflicts: libgcj-devel not to depend on libgcj
  204. - add BuildRequires: emacsen (if emacsen_pkg is enabled)
  205. - remove unneeded files at the %%install
  206. * Mon Aug 07 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.14.5-0vl3
  207. - rebuilt without libgcj package
  208. * Sat Aug 05 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.14.5-0vl2
  209. - modified emacsen-common path
  210. * Wed Jun 15 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.14.5-0vl1
  211. - new upstream release
  212. - updated Source3
  213. - added --disable-csharp
  214. * Wed Apr 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.14.1-0vl2
  215. - remove dependency to libgcj
  216. * Wed Apr 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.14.1-0vl1
  217. - new upstream release
  218. * Mon Sep 22 2003 IWAI, Masaharu <iwai@alib.jp> 0.12.1-1vl2
  219. - build without libgcj package
  220. - create po-mode package for Emacsen
  221. * Sun Sep 21 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.1-1vl1
  222. - based on Redhat Rawhide 0.12.1-1
  223. - dropped all patches (Rawhide does so)
  224. - Source100(ja.po) is much older than source, dropped
  225. - s/Copyright/License/
  226. * Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.11.5-0vl1
  227. - new upstream release
  228. * Mon Jun 10 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  229. - sync with rawhide 0.11.2-2 and Mandrake 0.11.2-4mdk
  230. * Wed Jun 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  231. - sync with RH6.2
  232. * Fri Apr 28 2000 Bill Nottingham <notting@redhat.com>
  233. - minor configure tweaks for ia64
  234. * Sun Feb 27 2000 Cristian Gafton <gafton@redhat.com>
  235. - add --comments to msghack
  236. * Thu Feb 10 2000 Cristian Gafton <gafton@redhat.com>
  237. - fix bug #9240 - gettextize has the right aclocal patch
  238. * Wed Jan 12 2000 Cristian Gafton <gafton@redhat.com>
  239. - add the --diff and --dummy options
  240. * Wed Oct 06 1999 Cristian Gafton <gafton@redhat.com>
  241. - add the --missing option to msghack
  242. * Wed Sep 22 1999 Cristian Gafton <gafton@redhat.com>
  243. - updated msghack not to merge in fuzzies in the master catalogs
  244. * Sat Sep 18 1999 Norihito Ohmori <ohmori@flatout.org>
  245. - update ja.po
  246. * Tue Sep 14 1999 Jun Nishii <jun@flatout.org>
  247. - use message.c.diff-2
  248. * Thu Aug 26 1999 Cristian Gafton <gafton@redhat.com>
  249. - updated msghack to understand --append
  250. * Wed Aug 11 1999 Cristian Gafton <gafton@redhat.com>
  251. - updated msghack to correctly deal with sorting files
  252. * Tue Jun 29 1999 Norihito Ohmori <ohmori@flatout.org>
  253. - added multibyte patch for msgmerge
  254. * Sun Jun 27 1999 Norihito Ohmori <ohmori@flatout.org>
  255. - ja locale support from JaPO Project
  256. * Thu May 06 1999 Cristian Gafton <gafton@redhat.com>
  257. - msghack updates
  258. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  259. - auto rebuild in the new build environment (release 8)
  260. * Mon Mar 08 1999 Cristian Gafton <gafton@redhat.com>
  261. - added patch for misc hacks to facilitate rpm translations
  262. * Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com>
  263. - patch to allow to build on ARM
  264. * Wed Sep 30 1998 Jeff Johnson <jbj@redhat.com>
  265. - add Emacs po-mode.el files.
  266. * Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com>
  267. - include the aclocal support files
  268. * Fri Sep 3 1998 Bill Nottingham <notting@redhat.com>
  269. - remove devel package (functionality is in glibc)
  270. * Tue Sep 1 1998 Jeff Johnson <jbj@redhat.com>
  271. - update to 0.10.35.
  272. * Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com>
  273. - add gettextize.
  274. - create devel package for libintl.a and libgettext.h.
  275. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  276. - translations modified for de, fr, tr
  277. * Sun Nov 02 1997 Cristian Gafton <gafton@redhat.com>
  278. - added info handling
  279. - added misc-patch (skip emacs-lisp modofications)
  280. * Sat Nov 01 1997 Erik Troan <ewt@redhat.com>
  281. - removed locale.aliases as we get it from glibc now
  282. - uses a buildroot
  283. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  284. - Built against glibc