# ...for those missing static libraries... # # in order to build devel packages with static libs included you have to # change '--disable-static' to '--enable-static' and uncomment the line # containing the pattern ".../*.a" at the files section %define RELEASE 1 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} Summary: A C++ wrapper for GConf2 Name: @PACKAGE@ Version: @VERSION@ Release: %rel License: LGPL Group: System Environment/Libraries Packager: Eric Bourque Source: ftp://download.sourceforge/net/gtkmm/%{name}-%{version}.tar.gz URL: http://gtkmm.sourceforge.net Prefix: /usr BuildRoot: /var/tmp/%{name}-%{version}-root Requires: GConf2 %description This package provides a C++ interface for GConf2. It is a subpackage of the GTKmm project. The interface provides a convenient interface for C++ programmers to create Gnome GUIs with GTK+'s flexible object-oriented framework. %package devel Summary: Headers for developing programs that will use gconfmm Group: Development/Libraries Requires: %{name}, GConf2-devel %description devel This package contains the headers that programmers will need to develop applications which will use gconfmm, part of GTKmm, the C++ interface to the GTK+. %prep %setup -q %build # ...hope this can be removed soon %ifarch alpha ARCH_FLAGS="--host=alpha-linux-gnu" %endif # Needed for snapshot releases. if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCH_FLAGS \ --prefix=%{prefix} \ --disable-static \ --enable-shared --enable-docs else CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS \ --prefix=%{prefix} \ --disable-maintainer-mode \ --disable-static \ --enable-shared --enable-docs fi if [ "$SMP" != "" ]; then make -j$SMP "MAKE=make -j$SMP" make else make fi %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README %{prefix}/lib/*.so.* %files devel %{prefix}/include/gconfmm-2.0/*.h %{prefix}/include/gconfmm-2.0/gconfmm %{prefix}/lib/gconfmm-2.0 %{prefix}/lib/*.la #%{prefix}/lib/*.a # uncomment for static libraries %{prefix}/lib/*.so %{prefix}/lib/pkgconfig/gconfmm-2.0.pc %changelog * Wed Sep 24 2003 Eric Bourque - Initial build.