gettext-vl.spec 13 KB

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