gettext-vl.spec 15 KB

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