gtkmm-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. %define name gtkmm
  2. %define version 1.2.10
  3. %define release 0vl3
  4. Summary: A C++ interface for the GTK+ (a GUI library for X).
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. License: LGPL
  9. Group: System Environment/Libraries
  10. Source: ftp://ftp.gtk.org/pub/gtk/gtk--/%{name}-%{version}.tar.bz2
  11. URL: http://gtkmm.sourceforge.net/
  12. Obsoletes: Gtk--, gtk--
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. Requires: gtk+, glib, libsigc++10
  15. BuildPrereq: gtk+-devel, glib-devel, libsigc++10-devel
  16. %description
  17. This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
  18. library. The interface provides a convenient interface for C++
  19. programmers to create GUIs with GTK+'s flexible object-oriented framework.
  20. Features include type safe callbacks, widgets that are extensible using
  21. inheritance and over 110 classes that can be freely combined to quickly
  22. create complex user interfaces.
  23. %package devel
  24. Summary: Headers for developing programs that will use Gtk--.
  25. Group: Development/Libraries
  26. Obsoletes: Gtk---devel, gtk---devel
  27. Requires: %{name}, gtk+-devel, glib-devel, libsigc++10-devel
  28. %description devel
  29. This package contains the headers that programmers will need to develop
  30. applications which will use Gtk--, the C++ interface to the GTK+
  31. (the Gimp ToolKit) GUI library.
  32. %prep
  33. %setup -q
  34. %build
  35. # ...hope this can be removed soon
  36. %ifarch alpha
  37. ARCH_FLAGS="--host=alpha-linux-gnu"
  38. %endif
  39. # Needed for snapshot releases.
  40. if [ ! -f configure ]; then
  41. CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ./autogen.sh $ARCH_FLAGS \
  42. --prefix=%{_prefix} \
  43. --disable-static \
  44. --enable-shared --enable-docs
  45. else
  46. CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ./configure $ARCH_FLAGS \
  47. --prefix=%{_prefix} \
  48. --disable-maintainer-mode \
  49. --disable-static \
  50. --enable-shared --enable-docs
  51. fi
  52. if [ "$SMP" != "" ]; then
  53. make -j$SMP "MAKE=make -j$SMP"
  54. make
  55. else
  56. make
  57. fi
  58. # since the tutorial and FAQ is not build by default
  59. #make -C docs/tutorial/
  60. #make -C docs/FAQ/
  61. %install
  62. if [ -d %{buildroot} ]; then rm -rf %{buildroot}; fi
  63. make DESTDIR=%{buildroot} install
  64. # replace examples.conf by a really simple one
  65. echo 'CXXBUILD = g++ -O2 $< -o $@ `gtkmm-config --cflags --libs` ' \
  66. > examples/examples.conf
  67. rm examples/Makefile.am examples/Makefile.in examples/Makefile
  68. rm examples/examples.conf.in
  69. # strip down the docs
  70. # find docs/ \
  71. # \( -name 'Makefile' -or \
  72. # -name 'Makefile.in' -or \
  73. # -name 'Makefile.am' -or \
  74. # -name '*.m4' -or \
  75. # -name 'html' -or \
  76. # -name 'header' -or \
  77. # -name '*.h' \
  78. # \) -exec rm -rf {} \;
  79. %post -p /sbin/ldconfig
  80. %postun -p /sbin/ldconfig
  81. %clean
  82. rm -rf %{buildroot}
  83. %files
  84. %defattr(-, root, root)
  85. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README
  86. %{_libdir}/*.so.*
  87. %files devel
  88. %defattr(-, root, root)
  89. %doc examples/ docs/ AUTHORS COPYING ChangeLog INSTALL NEWS README
  90. %{_bindir}/*
  91. %{_includedir}/*.h
  92. %{_includedir}/gdk--
  93. %{_includedir}/gtk--
  94. %{_libdir}/*.la
  95. #{_libdir}/*.a
  96. %{_libdir}/*.so
  97. %{_libdir}/gtkmm/*
  98. %{_datadir}/aclocal/gtk--.m4
  99. ###########################################################################
  100. %changelog
  101. * Sun Dec 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-0vl3
  102. - Rename Requires: libsigc++10 and BuildRequires: libsigc++10
  103. * Sat Oct 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-0vl2
  104. - rebuild to remove dependancy
  105. - s/Copyright/License/
  106. * Mon Dec 2 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl1
  107. - new upstream release
  108. - rebuild with new toolchain
  109. * Mon Jun 10 2002 Tomoya TAKA <taka@vinelinux.org> 1.2.9-0vl1
  110. - update to 1.2.9
  111. - arrange spec file
  112. * Thu Feb 07 2002 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp>
  113. - 1.2.8-0vl2
  114. - fix files list
  115. * Wed Feb 06 2002 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp>
  116. - 1.2.8-0vl1
  117. - update source
  118. - Build for Vine Linux 2.5
  119. * Wed Feb 21 2001 yoneda kenji <yoneda@n.isl.titech.ac.jp>
  120. - packaged for Vine Linux 2.1
  121. * Sun May 21 2000 Herbert Valerio Riedel <hvr@gnu.org>
  122. - fixed up documentation in gtkmm-devel
  123. * Sun May 07 2000 Herbert Valerio Riedel <hvr@gnu.org>
  124. - CXXFLAGS are set too
  125. * Sun Feb 20 2000 Herbert Valerio Riedel <hvr@gnu.org>
  126. - gnome-- and gtk-- are packaged separately
  127. * Fri Jan 28 2000 Herbert Valerio Riedel <hvr@gnu.org>
  128. - adapted to the new docs
  129. * Sun Jan 2 2000 Herbert Valerio Riedel <hvr@gnu.org>
  130. - examples should be makeable now
  131. * Sun Dec 26 1999 Herbert Valerio Riedel <hvr@gnu.org>
  132. - commented out manpages for now...
  133. * Sat Dec 25 1999 Herbert Valerio Riedel <hvr@gnu.org>
  134. - added dependancies on libsigc++
  135. * Sat Nov 6 1999 Herbert Valerio Riedel <hvr@gnu.org>
  136. - cleanup for 1.1.x
  137. - changed rpm package name from Gtk-- to gtkmm
  138. - removed that static hack
  139. * Sat Oct 21 1999 Karl Einar Nelson <kenelson@ece.ucdavis.edu>
  140. - Changed dist from Gtk--- to gtkmm-
  141. * Sat Sep 11 1999 Herbert Valerio Riedel <hvr@gnu.org>
  142. - added SMP support
  143. - added custom release feature
  144. * Sun Aug 1 1999 Herbert Valerio Riedel <hvr@gnu.org>
  145. - Updated to gtk---1.1.x
  146. * Thu Jul 29 1999 Herbert Valerio Riedel <hvr@gnu.org>
  147. - Updated to gtk---1.0.x
  148. - Merged in changes from redhat's gtk--.spec
  149. - conditional build of static libraries by define 'STATIC'
  150. * Thu May 10 1998 Bibek Sahu <scorpio@dodds.net>
  151. - Upgraded to gtk---0.9.3
  152. * Thu Apr 30 1998 Bibek Sahu <scorpio@dodds.net>
  153. - Fixed problem with gtk---devel requiring libgtk-- (not gtk--). Oops.
  154. * Thu Apr 30 1998 Bibek Sahu <scorpio@dodds.net>
  155. - Fixed problem with most of the headers not being included.
  156. * Thu Apr 30 1998 Bibek Sahu <scorpio@dodds.net>
  157. - Upgraded to gtk---0.9.1
  158. * Tue Apr 28 1998 Bibek Sahu <scorpio@dodds.net>
  159. - Fixed to build gtk-- and gtk---devel packages.
  160. * Tue Apr 28 1998 Bibek Sahu <scorpio@dodds.net>
  161. - First (s)rpm build.