%define name Xbae %define srcname xbae %define version 4.60.4 %define release %mkrel 1 %define major 4 %define libname %mklibname %name %major %define develname %mklibname %name -d Summary: Xbae Widget Set Name: %name Version: %version Release: %release License: BSD Group: System/Libraries Url: http://xbae.sourceforge.net/ Source: http://prdownloads.sourceforge.net/xbae/%srcname-%version.tar.gz BuildRoot: %{_tmppath}/%name-root BuildRequires: lesstif-devel libxpm-devel XFree86-devel glibc-static-devel groff-for-man Requires: %libname = %version %description XbaeMatrix is a free Motif 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. %package -n %libname Summary: Xbae Widget Set Group: System/Libraries %description -n %libname XbaeMatrix is a free Motif 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. %package -n %develname Summary: Development tools for programs which will use the %name library Group: Development/Other Requires: %libname = %{version} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Obsoletes: %{mklibname Xbae 4 -d} %description -n %develname The %name-devel package includes the header files and static libraries necessary for developing programs using the %name library. If you are going to develop programs which will use this library you should install %name-devel. You'll also need to have the %name package installed. %prep rm -rf $RPM_BUILD_ROOT %setup -q -n %srcname-%version %build export LESSTIFTOP=$PWD export CFLAGS="$RPM_OPT_FLAGS" %configure --enable-shared --disable-static --disable-debug %make %install %makeinstall rm -rf $RPM_BUILD_ROOT/%_prefix/Xbae %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README %{_mandir}/man3/* %_datadir/Xbae %files -n %libname %defattr (-,root,root) %_libdir/*.so.* %files -n %develname %defattr (-,root,root) %doc doc/*.html %_includedir/%{name} %_libdir/*.so %_libdir/*.la %changelog * Fri Jul 20 2007 Adam Williamson <awilliamson@mandriva.com> 4.60.4-1mdv2008.0 + Revision: 54026 - rebuild against new lesstif - move docs out of lib package to devel package - move out of /usr/X11R6 - new devel policy - drop pointless manual provide in lib package - spec clean - new release 4.60.4 - Import Xbae * Tue Mar 21 2006 Lenny Cartier <lenny@mandriva.com> 4.60.2-1mdk - 4.60.2 * Thu May 12 2005 Olivier Thauvin <nanardon@mandriva.org> 4.60.0-1mdk - 4.60.0 * Tue Dec 07 2004 Lenny Cartier <lenny@mandrakesoft.com> 4.50.99-1mdk - 4.50.99 * Sat Nov 15 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.9.11-4mdk - move man files in separate package - fix provides - Franck Villaume <fvill@freesurf.fr> - more buildrequires : groff-for-man * Sat Apr 26 2003 Lenny Cartier <lenny@mandrakesoft.com> 4.9.11-3mdk - adjust buildrequires * Thu Jan 30 2003 Lenny Cartier <lenny@mandrakesoft.com> 4.9.11-2mdk - rebuild * Thu Oct 03 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.9.11-1mdk - libification - from Austin Acton <aacton@yorku.ca> : - initial package for Mandrake 9.0