Summary: JX is a C++ application framework for X Windows.
Name: JX
Version: 1.5.3
Release: 1
ExclusiveArch: i386
ExclusiveOS: Linux
Copyright: SYPP License - Free for non-commercial use.
Group: X11/Libraries
Source: JX-1.5.3.tar
AutoReqProv: no

%description
JX is a full-featured C++ application framework and GUI class library \
for the X Window System.  (http://www.cco.caltech.edu/~jafl/jx/)

%prep
%setup 

%install

mkdir /usr/doc/JX-1.5.3
cp README FAQ LICENSE CHANGES doc/* /usr/doc/JX-1.5.3
cp -r libjcore/doc  /usr/doc/JX-1.5.3/libjcore
cp -r libjx/doc     /usr/doc/JX-1.5.3/libjx

cp -r include/jcore                   /usr/include/jcore
cp lib/libjcore-1_5_3.a              /usr/lib
install -m755 lib/libjcore-1_5_3.so  /usr/lib

cp -r include/jx                   /usr/include/jx
cp lib/libjx-1_5_3.a              /usr/lib
install -m755 lib/libjx-1_5_3.so  /usr/lib

cp lib/libACE-4_6.a          /usr/lib
cp lib/libACE-4_6.so         /usr/lib
cp -r ACE/ACE_wrappers/ace   /usr/include/ace
cp ACE/README                /usr/doc/JX-1.5.3/README_ACE
cp ACE/ACE_wrappers/VERSION  /usr/doc/JX-1.5.3/ACE_VERSION

cp programs/makemake/README /usr/doc/JX-1.5.3/README_makemake
install -m755 programs/makemake/makemake   /usr/bin
install -m755 programs/makemake/makecheck  /usr/bin
install -m755 programs/makemake/maketouch  /usr/bin

cp programs/jxlayout/README /usr/doc/JX-1.5.3/README_jxlayout
install -m755 programs/jxlayout/fdesign   /usr/X11R6/bin
install -m755 programs/jxlayout/jfdesign  /usr/X11R6/bin
install -m755 programs/jxlayout/jxlayout  /usr/X11R6/bin

mkdir /usr/lib/jx

mkdir /usr/lib/jx/jxlayout
cp programs/jxlayout/class_map       /usr/lib/jx/jxlayout
cp programs/jxlayout/option_map      /usr/lib/jx/jxlayout
cp programs/jxlayout/need_font_list  /usr/lib/jx/jxlayout

cp -r tutorial       /usr/lib/jx
cp -r libjcore/test  /usr/lib/jx/jcore_test
cp -r libjx/test     /usr/lib/jx/jx_test
cp -r ACE/test       /usr/lib/jx/ACE_test
cp -r include/make   /usr/lib/jx/make

mkdir /usr/lib/jx/lib
ln -s /usr/lib/libjcore-1_5_3.a   /usr/lib/jx/lib/libjcore-1_5_3.a
ln -s /usr/lib/libjcore-1_5_3.so  /usr/lib/jx/lib/libjcore-1_5_3.so
ln -s /usr/lib/libjx-1_5_3.a      /usr/lib/jx/lib/libjx-1_5_3.a
ln -s /usr/lib/libjx-1_5_3.so     /usr/lib/jx/lib/libjx-1_5_3.so
ln -s /usr/lib/libACE-4_6.a        /usr/lib/jx/lib/libACE-4_6.a
ln -s /usr/lib/libACE-4_6.so       /usr/lib/jx/lib/libACE-4_6.so

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files

%docdir /usr/doc/JX-1.5.3

/usr/include/jcore
/usr/include/jx
/usr/include/ace
/usr/lib/jx

/usr/doc/JX-1.5.3

/usr/lib/libjcore-1_5_3.a
/usr/lib/libjcore-1_5_3.so
/usr/lib/libjx-1_5_3.a
/usr/lib/libjx-1_5_3.so
/usr/lib/libACE-4_6.a
/usr/lib/libACE-4_6.so

/usr/bin/makemake
/usr/bin/makecheck
/usr/bin/maketouch

/usr/X11R6/bin/fdesign
/usr/X11R6/bin/jfdesign
/usr/X11R6/bin/jxlayout
