File dx.spec of Package opendx
#
# spec file for package dx (Version 4.4.4)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: dx
%define samplesversion 4.4.0
BuildRequires: bison flex freeglut-devel freetype2-devel gcc-c++ ImageMagick-devel libpng-devel libtiff-devel openmotif openmotif-devel tcsh update-desktop-files
%if %suse_version > 1000
BuildRequires: libdrm-devel
%endif
%if %suse_version > 1020
BuildRequires: libexpat0
%endif
#BuildRequires: fdupes
Version: 4.4.4
Release: 57
Summary: IBM Open Visualization Data Explorer
License: IBM Public License
Group: Productivity/Graphics/Visualization/Other
Requires: tcsh jre1.1.x
Autoreqprov: on
URL: http://opendx.org/
Source0: dx-%{version}.tar.bz2
Source1: dxsamples-%{samplesversion}.tar.bz2
Source2: dx.desktop
Patch0: dx-%{version}-string.patch
Patch1: dx-%{version}-rights.patch
Patch2: dx-%{version}-xkiso.patch
Patch3: dx-%{version}-uninitialized_var.patch
Patch4: dx-%{version}-implicit_decl.patch
Patch5: dx-%{version}-return_value.patch
Patch6: dx-%{version}-increment.patch
Patch7: dx-%{version}-undefined_code.patch
Patch8: dx-%{version}-manpage.patch
Patch9: dx-linux-sys.patch
Patch10: dx-%{version}-array-overflow.patch
Patch20: dxsamples-%{samplesversion}-java.patch
Patch21: dxsamples-%{samplesversion}-DESTDIR.patch
Patch22: dxsamples-%{samplesversion}-rights.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1000
Recommends: dx-data = %{version}, dx-doc = %{version}, dx-devel = %{version}
%endif
%description
The Open Visualization Data Explorer is a visualization framework that
gives users the ability to apply advanced visualization and analysis
techniques to their data. These techniques can be applied to help users
gain new insights into data from applications in a wide variety of
fields including science, engineering, medicine, and business.
Authors:
--------
(C) COPYRIGHT International Business Machines Corp. 1991-1997
%package doc
Summary: Additional Package Documentation for dx
Group: Productivity/Graphics/Visualization/Other
Provides: dxdoc
Requires: dx = %{version}
Obsoletes: dxdoc
%description doc
This package contains the documentation for the IBM Open Visualization
Data Explorer in HTML format.
Authors:
--------
(C) COPYRIGHT International Business Machines Corp. 1991-1997
%package data
Summary: Sample data for the IBM Open Visualization Data Explorer
Group: Productivity/Graphics/Visualization/Other
Provides: dxdata
Requires: dx = %{version}
Obsoletes: dxdata
# files externalfilter* caused requirement on libc.so.1 which is obsolete and nothing provides it. Excluded.
Autoreqprov: on
%description data
This package contains some sample data for the IBM Open Visualization
Data Explorer.
Authors:
--------
(C) COPYRIGHT International Business Machines Corp. 1991-1997
%package devel
Summary: Headers, static libs and source code files for the Data Explorer
Group: Productivity/Graphics/Visualization/Other
Requires: dx = %{version}
Requires: xorg-x11-libICE-devel, xorg-x11-libSM-devel, xorg-x11-libXau-devel, xorg-x11-libxcb-devel, xorg-x11-libX11-devel, xorg-x11-libXt-devel, xorg-x11-libXext-devel, xorg-x11-libXmu-devel, xorg-x11-libXp-devel, zlib-devel, libpng-devel, libjpeg-devel, xorg-x11-libXrender-devel, libexpat-devel, freetype2-devel, fontconfig-devel, openmotif-devel, libtiff-devel, xorg-x11-libXpm-devel, xorg-x11-devel, glibc-devel, Mesa-devel
Autoreqprov: on
%description devel
This package contains header files of the IBM Open Visualization
Data Explorer.
Authors:
--------
(C) COPYRIGHT International Business Machines Corp. 1991-1997
%prep
%setup -q -b 1
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10
# gzip the man page and rename it correctly
# when doing this be sure patch8 (*manpage.patch) is applied
mv man/manl/dx.l man/manl/dx.1
gzip -9 man/manl/dx.1
# samples
cd ../dxsamples-%{samplesversion}
%patch20
%patch21
%patch22
%build
%{?suse_update_config:%{suse_update_config -f}}
libtoolize --force
aclocal
autoheader
automake -a -i
# automake doing strange things in Makefile.in, fixing in install:
autoconf
%if "%(xft-config --prefix)" == "/usr"
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fsigned-char" \
CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions -fno-strict-aliasing -fsigned-char" \
./configure --prefix=/opt --x-includes=/usr/include --x-libraries=%{_libdir}
%else
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fsigned-char" \
CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions -fno-strict-aliasing -fsigned-char" \
./configure --prefix=/opt
%endif
# don't use make %{?jobs:-j%jobs}, it will fail
make
#
# dx-samples
cd ../dxsamples-%{samplesversion}
#rm aclocal.m4
libtoolize --force
aclocal
autoheader
automake -a -i
autoconf
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/opt
# don't use make %{?jobs:-j%jobs}, it will fail
make
%install
make DESTDIR=$RPM_BUILD_ROOT \
prefix=/opt \
install
#
# dx samples
cd $RPM_BUILD_DIR/dxsamples-%{samplesversion}
make DESTDIR=$RPM_BUILD_ROOT \
prefix=/opt \
install
#
install -d $RPM_BUILD_ROOT/usr/bin
ln -sf /opt/dx/bin/dx $RPM_BUILD_ROOT/usr/bin/dx
rm -f $RPM_BUILD_ROOT/opt/bin/dx
# workaround for that strange renaming in Makefile.in made by autoconf
mv $RPM_BUILD_ROOT/usr/share/man/mang $RPM_BUILD_ROOT/usr/share/man/man1
%suse_update_desktop_file -i dx Education Science Math
#%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,755)
%doc AUTHORS COPYING ChangeLog LICENSE NEWS README*
%doc /usr/share/man/man1/dx.1.gz
/usr/bin/dx
/usr/share/applications/dx.desktop
/opt/dx/bin/
/opt/dx/bin_linux/
/opt/dx/fonts/
/opt/dx/help/
/opt/dx/java/
/opt/dx/lib/
/opt/dx/lib_linux/
# .la files go into devel
%exclude /opt/dx/lib_linux/*.la
# header files goes into devel
%exclude /opt/dx/include
# .la files go into devel
%exclude /opt/dx/lib_linux
# source code goes into devel
%exclude /opt/dx/lib/outboard.c
/opt/dx/man/
/opt/dx/ui/
%dir /opt/dx/
%files doc
%defattr(-,root,root,755)
/opt/dx/doc/
/opt/dx/html/
%files data
%defattr(-,root,root,755)
/opt/dx/samples/
%exclude /opt/dx/samples/data/externalfilter_*
%exclude /opt/dx/samples/data/externalfilter
# source code files goes into devel
%exclude /opt/dx/samples/*/*.c
%exclude /opt/dx/samples/*/*/*.c
%exclude /opt/dx/samples/*/*/*.h
%exclude /opt/dx/samples/*/*/*/*.c
%files devel
%defattr(-,root,root,755)
/opt/dx/include
/opt/dx/lib_linux
/opt/dx/lib/outboard.c
/opt/dx/samples/*/*.c
/opt/dx/samples/*/*/*.c
/opt/dx/samples/*/*/*.h
/opt/dx/samples/*/*/*/*.c
%changelog
* Fri Sep 07 2007 - lmichnovic@suse.cz
- added ImageMagick to BuildRequires
* Mon Aug 13 2007 - lmichnovic@suse.cz
- another array overflow by typo (array-overflow.patch)
- do not include linux/sys.h (linux-sys.patch)
* Wed Jun 13 2007 - lmichnovic@suse.cz
- fixed wrong requires on version in subpackages
- excluding externalfilter* precompiled executables from data subpackage
which caused requirement on historic glibc and won't work anyway
* Wed May 30 2007 - lmichnovic@suse.cz
- splitted off devel sub package
- fixed strange name of man page and installing to %_mandir (manpage.patch)
- using Recommends tag for subpackages
- defining includedir and libdir of X due to change of prefix in X.org 7.x
* Wed May 23 2007 - lmichnovic@suse.cz
- installing to /opt (it is O.K. with FHS)
* Fri Apr 27 2007 - lmichnovic@suse.cz
- added renamed package libexpat0 into BuildRequires
* Thu Mar 29 2007 - lmichnovic@suse.cz
- added bison and flex into BuildRequires
* Tue Feb 20 2007 - lmichnovic@suse.cz
- removed bindir.patch, making symbolic link instead
* Thu Feb 15 2007 - lmichnovic@suse.cz
- fixed bindir to /usr/bin (bindir.patch)
* Tue Feb 13 2007 - lmichnovic@suse.cz
- moved from /opt to /usr/share
* Tue Jan 23 2007 - lmichnovic@suse.cz
- fixed uninitialized matrix (added to uninitialized_var.patch)
- fixed undefined evaluation of code (undefined_code.patch)
* Mon Dec 11 2006 - lmichnovic@suse.cz
- fixed non deterministic evaluation of code (increment.patch)
* Mon Sep 25 2006 - lmichnovic@suse.cz
- update dx to version 4.4.4
* Many bug fixes, few features.
- obsoletes matrix.patch
* Mon Jun 26 2006 - lmichnovic@suse.cz
- fixed wrong computation of a matrix (matrix.patch) [#188294]
* Fri May 19 2006 - lmichnovic@suse.cz
- repacked tarball; problematic files has now correct licence [#170130]
* Wed Apr 19 2006 - lmichnovic@suse.cz
- Added freetype2-devel into BuildRequires
* Mon Mar 13 2006 - rguenther@suse.de
- use -fsigned-char for build
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 - lmichnovic@suse.cz
- update to version 4.4.0
- remade build section
- removed flex-old and add flex again from NFB
* Mon Jan 09 2006 - ro@suse.de
- comment out stray malloc call
* Fri Dec 02 2005 - lmichnovic@suse.cz
- changed needforbuild to build package with flex-old
* Mon Sep 26 2005 - lmichnovic@suse.cz
- fixed uninitialized variables and implicit declaration
* Sun Sep 25 2005 - ro@suse.de
- fix implicit declaration
* Fri Apr 22 2005 - meissner@suse.de
- Original author cannot count to 4, fixed single
byte buffer overflow.
- Fixed 0 -> NULL sentinels with X*Va calls.
* Mon Apr 26 2004 - ro@suse.de
- added no-strict-aliasing
* Mon Feb 16 2004 - ro@suse.de
- turn autoreqprov off for subpackage dx-data
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Mon Oct 13 2003 - ro@suse.de
- drop explicit requires for mesa
* Sat Aug 16 2003 - adrian@suse.de
- add desktop file
* Tue May 27 2003 - ro@suse.de
- remove unpackaged files from buildroot
* Tue Feb 04 2003 - ro@suse.de
- make it build (xkiso.dif get XK_ISO_ defined from keysymdefs.h)
* Fri Nov 29 2002 - pmladek@suse.cz
- fixed includes to compile with gcc-3.3
- used <errno.h> to define the symbol errno
* Tue Nov 19 2002 - ro@suse.de
- removed requires to lesstif (openmotif is used anyway)
* Tue Nov 19 2002 - pmladek@suse.cz
- fixed to build with autoconf-2.56:
* removed old aclocal.m4
* removed duplicity in AC_OUTPUT
* Thu Nov 07 2002 - tcrhak@suse.cz
- fixed for bison 1.75: end rules with semicolons,
separate nonterminals in %%type declarations by spaces (not commas)
* Thu Aug 08 2002 - pmladek@suse.cz
- updated to version 4.2.0
- added missing java samples from CVS
- removed obsolete patch which fixes duplicit line from
java/usermacros/Makefile.am
- used mesa-devel-packages in neededforbuild
- java support is not built because it hardly depends on netsacape
* Wed Aug 07 2002 - ro@suse.de
- no more netscape4 - no more netscape4 support
* Wed Apr 17 2002 - pmladek@suse.cz
- fixed to compile with gcc-3.1
* Tue Apr 02 2002 - pmladek@suse.cz
- fixed to compile samples.jar
* Fri Mar 29 2002 - pmladek@suse.cz
- fixed to compile with autoconf-2.53
- removed duplicit line from java/usermacros/Makefile.am
* Tue Mar 05 2002 - pmladek@suse.cz
- fixed rights of directories [#14415]
* Thu Feb 14 2002 - ro@suse.de
- fix bad owner/group
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Fri Nov 30 2001 - pmladek@suse.cz
- updated on version 4.1.3
- compiled also java parts
- compiled with support for netscape
- removed obsolete README.SuSE
- fixed compilation with BuildRoot
* Wed May 09 2001 - uli@suse.de
- bzipped tarballs
* Tue Apr 17 2001 - kukuk@suse.de
- Remove version macro for subpackage
* Wed Mar 07 2001 - ro@suse.de
- changed neededforbuild <mesadev> to <mesa-devel>
* Fri Dec 15 2000 - smid@suse.cz
- link /usr/bin/dx => ../../opt/dx/bin/dx added
* Wed Nov 29 2000 - smid@suse.cz
- subpackages renamed: dxdoc => dx-doc; dxdata => dx-data
* Tue Nov 21 2000 - ro@suse.de
- use openmotif
* Mon May 22 2000 - smid@suse.cz
- mesadev added to neededforbuild
* Tue Apr 18 2000 - smid@suse.cz
- upgrade to 4.1.0
- buildroot added
* Thu Feb 03 2000 - marquardt@suse.de
- made work around for new axp gcc (added -fno-exceptions to CXXFLAGS)
* Thu Feb 03 2000 - marquardt@suse.de
- splitted the big rpm into binary, data and doc rpms
* Tue Feb 01 2000 - marquardt@suse.de
- fixed some bugs in configure{.in} for compilation on alpha arch
* Tue Jan 25 2000 - uli@suse.de
- fixed A LOT of dirty code gcc-2.95 complains about
* Mon Jan 17 2000 - marquardt@suse.de
- initial release