Name: Xbae Version: 4.60.4 Release: 1 Summary: Motif matrix, caption and text input widgets. Group: System Environment/Libraries # all the files are covered by the MIT license, except DebugUtil.c LGPLv2+ License: LGPLv2+ URL: http://xbae.sourceforge.net/ Source0: http://downloads.sourceforge.net/xbae/xbae-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description XbaeMatrix is a free Motif(R) table widget (also compatible with the free LessTif) which presents an editable array of string data to the user in a scrollable table similar to a spreadsheet. The rows and columns of the Matrix may optionally be labelled. A number of "fixed" and "trailing fixed" rows or columns may be specified. The XbaeCaption widget is a simple Motif manager widget that associates a label with a child. In addition the XbaeInput widget is being distributed, a text input field that provides generic customised data entry and formatting for strings. %package devel Summary: Development files and documentation for Xbae. Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: automake %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n xbae-%{version} %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static make %{?_smp_mflags} cp ./src/.libs/lib%{name}.so.4 . gmake distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q ./src/.libs/lib%{name}.a ./lib%{name}.so.4 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install # prepare the main docs cd examples make clean cd .. find doc -name '*akefile*' -exec rm {} \; find examples -name '*akefile*' -exec rm {} \; ( cd ${RPM_BUILD_ROOT} for dir in include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS ChangeLog NEWS COPYING README %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system,-) %doc doc/* examples %{_includedir}/* %{_libdir}/*.la %{_mandir}/man?/* %{_datadir}/aclocal/* /usr/include/* /usr/lib/*.la %changelog * Thu Oct 01 2009 Michael Perzl - 4.60.4-1 - first version for AIX V5.1 and higher