gettext-vl.spec 14 KB

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