gettext-vl.spec 13 KB

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