glib-vl.spec 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. # overwrite configure macro (remove --target option)
  3. %define configure CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; ./configure --host=%{_host} --build=%{_build} --program-prefix=%{?_program_prefix} --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir}
  4. # Note that this is NOT a relocatable package
  5. %define debug on
  6. Summary: A library of handy utility functions.
  7. Summary(ja): 便利なユーティリティ関数ライブラリ
  8. Name: glib
  9. Version: 1.2.10
  10. Release: 3%{?_dist_release}
  11. License: LGPL
  12. Group: System Environment/Libraries
  13. URL: http://www.gtk.org
  14. Source: ftp://ftp.gimp.org/pub/gtk/v1.2/%{name}-%{version}.tar.gz
  15. Patch1: glib-1.2.10-isowarning.patch
  16. Patch2: glib-1.2.10-gcc34.patch
  17. Patch3: glib-1.2.10-config.sub-x86_64.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. %description
  20. Glib is a handy library of utility functions. This C
  21. library is designed to solve some portability problems
  22. and provide other useful functionality which most
  23. programs require.
  24. Glib is used by GDK, GTK+ and many applications.
  25. You should install Glib because many of your applications
  26. will depend on this library.
  27. This package rebuilds binaries with debug option.
  28. %description -l ja
  29. Glib は便利なユーティリティ関数ライブラリです。この C
  30. ライブラリはいくつかのよく遭遇する問題を解決し、多くの
  31. プログラムで必要な有用な機能を提供するために作られました。
  32. このパッケージでは debug option 付きで binary を 作成します。
  33. %package devel
  34. Summary: Libraries and header files for glib development
  35. Group: Development/Libraries
  36. Requires(post,preun): /sbin/install-info
  37. %description devel
  38. Static libraries and header files for the support library for the GIMP's X
  39. libraries, which are available as public libraries. GLIB includes generally
  40. useful data structures.
  41. %description devel -l ja
  42. GIMP の X ライブラリをサポートする静的関数およびヘッダファイルです。
  43. GLIB には使いやすいデータストラクチャーも含まれています。
  44. ## to build compat32 for x86_64 architecture support
  45. %package -n compat32-%{name}
  46. Summary: A library of handy utility functions.
  47. Group: System Environment/Libraries
  48. Requires: %{name} = %{version}
  49. %description -n compat32-%{name}
  50. Glib is a handy library of utility functions. This C
  51. library is designed to solve some portability problems
  52. and provide other useful functionality which most
  53. programs require.
  54. %package -n compat32-%{name}-devel
  55. Summary: Libraries and header files for glib development
  56. Group: Development/Libraries
  57. Requires: compat32-%{name} = %{version}
  58. %description -n compat32-%{name}-devel
  59. Static libraries and header files for the support library for the GIMP's X
  60. libraries, which are available as public libraries. GLIB includes generally
  61. useful data structures.
  62. %prep
  63. %setup -q
  64. %patch1 -p1 -b .isowarning
  65. %patch2 -p1 -b .gcc34
  66. %patch3 -p1 -b .config.sub
  67. %build
  68. if [ %{debug} = "on" ] ; then
  69. export CFLAGS="$RPM_OPT_FLAGS -g"
  70. else
  71. export CFLAGS="$RPM_OPT_FLAGS"
  72. fi
  73. %configure
  74. %__make
  75. %install
  76. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  77. %makeinstall
  78. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  79. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  80. #%find_lang %{name}
  81. %clean
  82. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  83. %post -p /sbin/ldconfig
  84. %postun -p /sbin/ldconfig
  85. %post devel
  86. /sbin/install-info %{_infodir}/glib.info* %{_infodir}/dir
  87. %preun devel
  88. if [ "$1" = 0 ]; then
  89. /sbin/install-info --delete %{_infodir}/glib.info* %{_infodir}/dir
  90. fi
  91. %post -n compat32-%{name} -p /sbin/ldconfig
  92. %postun -n compat32-%{name} -p /sbin/ldconfig
  93. %files
  94. %defattr(-, root, root)
  95. %doc AUTHORS COPYING ChangeLog NEWS README
  96. %{_libdir}/libglib-1.2.so.*
  97. %{_libdir}/libgthread-1.2.so.*
  98. %{_libdir}/libgmodule-1.2.so.*
  99. %files devel
  100. %defattr(-, root, root)
  101. %{_bindir}/*
  102. %{_libdir}/lib*.so
  103. %{_libdir}/lib*.a
  104. %{_libdir}/glib
  105. %{_libdir}/pkgconfig/*
  106. %{_includedir}/*
  107. %{_datadir}/aclocal/*
  108. %{_infodir}/*
  109. %{_mandir}/man1/*
  110. ## to build compat32 for x86_64 architecture support
  111. %if %{build_compat32}
  112. %files -n compat32-%{name}
  113. %defattr(-, root, root)
  114. %{_libdir}/libglib-1.2.so.*
  115. %{_libdir}/libgthread-1.2.so.*
  116. %{_libdir}/libgmodule-1.2.so.*
  117. %files -n compat32-%{name}-devel
  118. %defattr(-, root, root)
  119. %{_libdir}/lib*.so
  120. %{_libdir}/lib*.a
  121. %{_libdir}/glib
  122. %{_libdir}/pkgconfig/*
  123. %endif
  124. %changelog
  125. * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-3
  126. - spec in UTF-8
  127. * Sat May 10 2008 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.10-2
  128. - updated %%if %%{build_compat32} case related statements
  129. * Tue May 6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-1
  130. - applied new versioning policy
  131. - moved Requires(post,preun): /sbin/install-info to devel package
  132. * Fri Feb 10 2006 Shu KONNO <owa@bg.wakwak.com> 1.2.10-0vl7
  133. - added compat32-* packages for x86_64 architecture support
  134. - added glib-1.2.10-config.sub-x86_64.patch
  135. * Tue Feb 07 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.10-0vl6
  136. - rebuild
  137. - disable %%find_lang macro
  138. - refine %%configure macro
  139. - add PreReq: ldconfig, install-info instead of /sbin/install-info
  140. * Wed Jul 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.10-0vl5
  141. - rebuilt
  142. - change from Copyright to License
  143. - add patch2
  144. - remove info/dir
  145. * Wed Dec 25 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.10-0vl4
  146. - rebuilt with new toolchain
  147. - TODO: we better remove info files when glib2 be ready to ship...
  148. * Thu Oct 11 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.2.10-0vl3
  149. - Applied RH patch (glib-1.2.10-isowarning.patch)
  150. * Sat Jul 21 2001 Owen Taylor <otaylor@redhat.com>
  151. - Add #pragma GCC system_header to supress warnings when in -pedantic
  152. mode. (41271)
  153. - Added %%{_libdir}/pkgconfig to devel file list.
  154. * Sat Jul 14 2001 <sagami@vinelinux.org>
  155. - 1.2.10-0vl2: put %%patch0 at %%setup, not %%build. But already applied:-)
  156. * Tue Apr 3 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.2.10-0vl1
  157. - New upstream release.
  158. * Wed Mar 7 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.2.9-0vl1
  159. - New upstream release.
  160. * Mon Feb 05 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  161. - 1.2.8-0vl2
  162. - fixed files section so as not to own mandir itself
  163. - use better macros
  164. * Mon May 29 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  165. - updated to 1.2.8
  166. * Thu Feb 17 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  167. - [glib-1.2.7-0vl1]
  168. * Mon Sep 27 1999 Jun Nishii <jun@flatout.org>
  169. - [glib-1.2.6-1]
  170. * Mon Sep 27 1999 Jun Nishii <jun@flatout.org>
  171. - [glib-1.2.5-1]
  172. * Fri Sep 7 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  173. [glib-1.2.4-2.1]
  174. - added debug option to CFLAG.
  175. * Fri Sep 6 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  176. [glib-1.2.4-2]
  177. - gzip info.
  178. * Fri Sep 3 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  179. [glib-1.2.4-1]
  180. - version 1.2.4.
  181. - bzip2 source.
  182. - info is installed in glib-devel.
  183. * Sat Aug 21 1999 Jun Nishii <jun@flatout.org>
  184. - added Japanese summary and description
  185. - build for Vine-1.9
  186. * Mon Jun 7 1999 Owen Taylor <otaylor@redhat.com>
  187. - version 1.2.3
  188. * Thu Mar 25 1999 Michael Fulbright <drmike@redhat.com>
  189. - version 1.2.1
  190. * Fri Feb 26 1999 Michael Fulbright <drmike@redhat.com>
  191. - Version 1.2
  192. * Thu Feb 25 1999 Michael Fulbright <drmike@redhat.com>
  193. - version 1.2.0pre1
  194. * Tue Feb 23 1999 Cristian Gafton <gafton@redhat.com>
  195. - new description tags
  196. * Sun Feb 21 1999 Michael Fulbright <drmike@redhat.com>
  197. - removed libtoolize from %build
  198. * Thu Feb 11 1999 Michael Fulbright <drmike@redhat.com>
  199. - added libgthread to file list
  200. * Fri Feb 05 1999 Michael Fulbright <drmike@redhat.com>
  201. - version 1.1.15
  202. * Wed Feb 03 1999 Michael Fulbright <drmike@redhat.com>
  203. - version 1.1.14
  204. * Mon Jan 18 1999 Michael Fulbright <drmike@redhat.com>
  205. - version 1.1.13
  206. * Wed Jan 06 1999 Michael Fulbright <drmike@redhat.com>
  207. - version 1.1.12
  208. * Wed Dec 16 1998 Michael Fulbright <drmike@redhat.com>
  209. - updated in preparation for the GNOME freeze
  210. * Mon Apr 13 1998 Marc Ewing <marc@redhat.com>
  211. - Split out glib package