# ...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++ Framework for Document-based GNOME applications. Name: @PACKAGE@ Version: @VERSION@ Release: %rel Copyright: LGPL Group: System Environment/Libraries Packager: Eric Bourque Source: ftp://download.sourceforge.net/bakery/%{name}-%{version}.tar.gz URL: http://bakery.sourceforge.net/ Prefix: /usr BuildRoot: /var/tmp/%{name}-%{version}-root Requires: gtkmm2, gconfmm, libglademm, libxml++ %description Bakery is a C++ Framework for creating GNOME applications using Gnome-- and Gtk--. Bakery provides a Document/View architecture, but it doesn't force you to use the whole architecture. Bakery provides default functionality, which can be easily customized. Bakery makes it easy to start developing GNOME applications. Bakery gives your application structure. Bakery will provide easy access to GNOME technologies such as Bonobo and GConf. %package devel Summary: Headers for developing programs that will use bakery. Group: Development/Libraries Requires: %{name}, gtkmm2-devel, gconfmm-devel, libglademm-devel, libxml++-devel %description devel This package contains the headers that programmers will need to develop applications which will use bakery. %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 if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi 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 %defattr(-, root, root) %doc examples/ AUTHORS COPYING ChangeLog INSTALL NEWS README %{prefix}/include/bakery-2.0 #{prefix}/lib/*.a # uncomment this one for static libs %{prefix}/lib/*.so %{prefix}/lib/*.la %{prefix}/lib/pkgconfig/bakery-2.0.pc ########################################################################### %changelog * Thu Sep 25 2003 Eric Bourque - updated for bakery 2.0 * Tue Mar 20 2001 Eric Bourque - adapted from gnome--.spec