gnomemm-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. %define name gnomemm
  2. %define version 1.2.4
  3. %define release 0vl4
  4. Summary: A C++ interface for Gnome libs (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://prdownloads.sourceforge.net/gtkmm/%{name}-%{version}.tar.gz
  11. Patch: gnomemm-gcc3.patch
  12. URL: http://gtkmm.sourceforge.net/
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Requires: gtk+ >= 1.2.7, gnome-libs, db4
  15. BuildPrereq: libsigc++10-devel >= 1.0.3, gtkmm-devel >= 1.2.5, gnome-libs-devel, db4-devel
  16. %description
  17. This package provides a C++ interface for GnomeUI. It is a subpackage
  18. of the Gtk-- project. The interface provides a convenient interface for C++
  19. programmers to create Gnome GUIs with GTK+'s flexible object-oriented
  20. framework.
  21. %package devel
  22. Summary: Headers for developing programs that will use Gnome--.
  23. Group: Development/Libraries
  24. Requires: %{name}, gnome-libs-devel
  25. %description devel
  26. This package contains the headers that programmers will need to develop
  27. applications which will use Gnome--, part of Gtk-- the C++ interface to
  28. the GTK+ (the Gimp ToolKit) GUI library.
  29. %prep
  30. %setup -q
  31. %patch0 -p1 -b .gcc3
  32. %build
  33. # ...hope this can be removed soon
  34. %ifarch alpha
  35. ARCH_FLAGS="--host=alpha-linux-gnu"
  36. %endif
  37. # Needed for snapshot releases.
  38. if [ ! -f configure ]; then
  39. CFLAGS="%{optflags}" ./autogen.sh $ARCH_FLAGS \
  40. --prefix=%{_prefix} \
  41. --disable-static \
  42. --enable-shared --enable-docs
  43. else
  44. CC="$CC" CXX="$CXX" CPP="$CPP" \
  45. CFLAGS="%{optflags}" ./configure $ARCH_FLAGS \
  46. --prefix=%{_prefix} \
  47. --disable-maintainer-mode \
  48. --disable-static \
  49. --enable-shared --enable-docs
  50. fi
  51. if [ "$SMP" != "" ]; then
  52. make -j$SMP "MAKE=make -j$SMP"
  53. make
  54. else
  55. make
  56. fi
  57. %install
  58. if [ -d %{buildroot} ]; then rm -rf %{buildroot}; fi
  59. make DESTDIR=%{buildroot} install
  60. # replace examples.conf by a really simple one
  61. (
  62. echo 'CXXBUILD = g++ -O2 $< -o $@ `gnome-config gnomemm --cflags --libs` '
  63. echo 'CXXCOMPILE = g++ -O2 -c $< -o $@ `gnome-config gnomemm --cflags` '
  64. echo 'CXXLINK = g++ -O2 -o $@ `gnome-config gnomemm --libs` '
  65. ) > examples/examples.conf
  66. rm examples/Makefile.am examples/Makefile.in examples/Makefile
  67. rm examples/examples.conf.in
  68. ## strip down the docs
  69. #find docs/ \
  70. #\( -name 'Makefile' -or \
  71. # -name 'Makefile.in' -or \
  72. # -name 'Makefile.am' -or \
  73. # -name '*.m4' -or \
  74. # -name 'html' -or \
  75. # -name 'header' -or \
  76. # -name '*.h' \
  77. #\) -exec rm -rf {} \;
  78. %post -p /sbin/ldconfig
  79. %postun -p /sbin/ldconfig
  80. %clean
  81. rm -rf %{buildroot}
  82. %files
  83. %defattr(-, root, root)
  84. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README
  85. %{_libdir}/*.so.*
  86. %files devel
  87. %defattr(-, root, root)
  88. %doc examples/ docs/ AUTHORS COPYING ChangeLog INSTALL NEWS README
  89. %{_includedir}/*.h
  90. %{_includedir}/gnome--
  91. %{_libdir}/*.la
  92. #{_libdir}/*.a # uncomment this one for static libs
  93. %{_libdir}/*.sh
  94. %{_libdir}/*.so
  95. %{_datadir}/aclocal/gnome--.m4
  96. ###########################################################################
  97. %changelog
  98. * Wed May 25 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-0vl4
  99. - rebuild for VineSeedPlus
  100. * Tue May 17 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.2.4-0vl3
  101. - fix 'BuildPrereq:'.
  102. * Tue May 17 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.2.4-0vl2
  103. - add Patch0.
  104. * Sat Oct 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-0vl1
  105. - new upstream release
  106. - rebuild to remove dependancy
  107. - s/Copyright/License/
  108. * Mon Dec 2 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.3-0vl1
  109. - new upstream release
  110. - build with new toolchain
  111. * Mon Jun 10 2002 Tomoya TAKA <taka@vinelinux.org> 1.2.2-0vl1
  112. - build for Vine Linux
  113. - arrange Requires and BuildPrereq
  114. - use rpm macros
  115. * Sat Mar 10 2001 Herbert Valerio Riedel <hvr@gnu.org>
  116. - improved examples.conf
  117. - fixed example build problems
  118. * Thu May 11 2000 Herbert Valerio Riedel <hvr@gnu.org>
  119. - removed lib/gtkmm from files section
  120. - removed empty obsolete tags
  121. * Sun Jan 30 2000 Karl Einar Nelson <kenelson@sourceforge.net>
  122. - adapted from gtk--.spec