Summary: The Xlt Widget Set.
Name: Xlt
Version: 9.2.9
Release: 5
License: GPL
Group: System Environment/Libraries
Source: http://prdownloads.sourceforge.net/xlt/Xlt-%{version}.tar.gz
URL: http://sourceforge.net/projects/xlt/

BuildRoot: %{_tmppath}/%{name}-root

BuildPreReq: openmotif-devel >= 2.2.2

Conflicts: lesstif < 0.93.15
Conflicts: lesstif-devel < 0.93.15

Prefix: /usr/X11R6

%description
The Xlt widget set is a group of larger and smaller utility widgets.
In addition the Xlt library also suppplied a couple of convenience
functions (and macros) to help with certain tasks while programming
with the Motif API.

%package devel
Summary: Static library and header files for Xlt development.
Group: Development/Libraries
Requires: %{name} = %{version}

%description devel
The Xlt widget set is a group of larger and smaller utility widgets.
In addition the Xlt library also suppplied a couple of convenience
functions (and macros) to help with certain tasks while programming
with the Motif API.

This package provides the libraries, include files, and other
resources needed for developing Xlt applications.

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" \
%configure --prefix=%{prefix} \
           --libdir=%{prefix}/%{_lib} \
           --includedir=%{prefix}/include \
           --mandir=%{prefix}/man \
           --enable-build-12 \
           --enable-default-12 \
           --disable-build-20 \
           --disable-build-21 \
           --enable-static \
           --enable-shared
make

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT

rm -rf $RPM_BUILD_ROOT%{prefix}/LessTif

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{prefix}/%{_lib}/*so.*

%files devel
%defattr(-,root,root)
%{prefix}/include/*
%{prefix}/man/man?/*
%{prefix}/%{_lib}/*so
%{prefix}/%{_lib}/*.a
%{prefix}/%{_lib}/*.la

%changelog
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Sun Nov 10 2002 Than Ngo <than@redhat.com> 9.2.9-4
- fix some build problem

* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Sun May 26 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Wed May 22 2002 Harald Hoyer <harald@redhat.de>
- updated to 9.2.9

* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Wed Nov 28 2001 Than Ngo <than@redhat.com> 9.0.9-1
- separate rpm