1# ...for those missing static libraries...
2#
3# in order to build devel packages with static libs included you have to
4# change '--disable-static' to '--enable-static' and uncomment the line
5# containing the pattern ".../*.a" at the files section
6
7%define  RELEASE 1
8%define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
9
10Summary: 	A C++ interface for Gnome libs (a GUI library for X).
11Name: 		@PACKAGE@
12Version: 	@VERSION@
13Release: 	%rel
14Copyright: 	LGPL
15Group: 		System Environment/Libraries
16Packager:	Herbert Valerio Riedel <hvr@gnu.org>
17Source: 	ftp://download.sourceforge.net/gtkmm/%{name}-%{version}.tar.gz
18URL: 		http://gtkmm.sourceforge.net/
19Prefix: 	/usr
20BuildRoot: 	/var/tmp/%{name}-%{version}-root
21Requires:	gnome-libs, gtkmm2
22
23%description
24This package provides a C++ interface for GnomeUI.  It is a subpackage
25of the gnomemm project.  The interface provides a convenient interface for C++
26programmers to create Gnome GUIs with GTK+'s flexible object-oriented
27framework.
28
29%package	devel
30Summary: 	Headers for developing programs that will use libgnomecanvasmm.
31Group: 		Development/Libraries
32Requires:       %{name}, gnome-libs-devel
33
34%description    devel
35This package contains the headers that programmers will need to develop
36applications which will use libgnomecanvasmm, part of gnomemm - the C++ interface to
37the GTK+ GUI library.
38
39%prep
40%setup -q
41
42%build
43
44# ...hope this can be removed soon
45%ifarch alpha
46	ARCH_FLAGS="--host=alpha-linux-gnu"
47%endif
48
49# Needed for snapshot releases.
50if [ ! -f configure ]; then
51	CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCH_FLAGS \
52		--prefix=%{prefix} \
53		--disable-static \
54		--enable-shared --enable-docs
55else
56	CFLAGS="$RPM_OPT_FLAGS" ./configure  $ARCH_FLAGS \
57		--prefix=%{prefix} \
58		--disable-maintainer-mode \
59		--disable-static \
60		--enable-shared --enable-docs
61fi
62
63if [ "$SMP" != "" ]; then
64  make -j$SMP "MAKE=make -j$SMP"
65  make
66else
67  make
68fi
69
70%install
71if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
72make DESTDIR=$RPM_BUILD_ROOT install
73
74%post -p /sbin/ldconfig
75
76%postun -p /sbin/ldconfig
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(-, root, root)
83%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
84%{prefix}/lib/*.so.*
85
86%files  devel
87%defattr(-, root, root)
88%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
89%{prefix}/include/libgnomecanvasmm-2.0
90%{prefix}/lib/*.la
91#{prefix}/lib/*.a # uncomment this one for static libs
92%{prefix}/lib/*.so
93%{prefix}/lib/libgnomecanvasmm-2.0
94%{prefix}/lib/pkgconfig/libgnomecanvasmm-2.0.pc
95
96###########################################################################
97%changelog
98* Sun Dec 21 2003 Eric Bourque <ericb@computer.org>
99- fixed dependency to gtkmm2 instead of gtkmm
100* Thu Sep 25 2003 Eric Bourque <ericb@computer.org>
101- updated for libgnomecanvasmm-2.0
102* Tue Mar 20 2001 Eric Bourque <ericb@computer.org>
103- added gnome--.m4 to files devel section
104
105* Sat Mar 10 2001 Herbert Valerio Riedel <hvr@gnu.org>
106- improved examples.conf
107- fixed example build problems
108
109* Thu May 11 2000 Herbert Valerio Riedel <hvr@gnu.org>
110- removed lib/gtkmm from files section
111- removed empty obsolete tags
112
113* Sun Jan 30 2000 Karl Einar Nelson <kenelson@sourceforge.net>
114- adapted from gtk--.spec
115