71 lines
1.8 KiB
RPMSpec
71 lines
1.8 KiB
RPMSpec
Name: gdl
|
|
Version: 0.8.10
|
|
Release: 3%{?dist}
|
|
Summary: GNU Data Language
|
|
|
|
Group: Applications/Engineering
|
|
License: GPL
|
|
URL: http://gnudatalanguage.sourceforge.net/
|
|
Source0: http://dl.sf.net/gnudata/%{name}-%{version}.tar.gz
|
|
Patch0: gdl-0.8.10-hdf5.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: readline-devel, ncurses-devel
|
|
BuildRequires: gsl-devel, plplot-devel, ImageMagick-c++-devel
|
|
BuildRequires: netcdf-devel, hdf5-devel, libjpeg-devel
|
|
BuildRequires: python-devel, python-numarray, python-matplotlib
|
|
%ifnarch ppc ppc64
|
|
BuildRequires: hdf-devel
|
|
%define hdfconfig %{nil}
|
|
%define hdfinclude "-I/usr/include/hdf"
|
|
%define hdflib "-L%{_libdir}/hdf"
|
|
%else
|
|
%define hdfconfig "--with-hdf=no"
|
|
%define hdfinclude %{nil}
|
|
%define hdflib %{nil}
|
|
%endif
|
|
|
|
|
|
%description
|
|
A free IDL (Interactive Data Language) compatible incremental compiler
|
|
(ie. runs IDL programs). IDL is a registered trademark of Research
|
|
Systems Inc.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -p1 -b .orig
|
|
|
|
|
|
%build
|
|
%configure --disable-static \
|
|
INCLUDES="-I/usr/include/netcdf-3 %{hdfinclude}" \
|
|
LIBS="-L%{_libdir}/netcdf-3 %{hdflib} -L/usr/X11R6/%{_lib}"
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
rm -r $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS ChangeLog COPYING HACKING NEWS PYTHON.txt README TODO
|
|
%{_bindir}/gdl
|
|
|
|
|
|
%changelog
|
|
* Thu Sep 22 2005 - Orion Poplawski <orion@cora.nwra.com> - 0.8.10-3
|
|
- Disable hdf with configure on ppc
|
|
|
|
* Thu Sep 22 2005 - Orion Poplawski <orion@cora.nwra.com> - 0.8.10-2
|
|
- Don't include hdf support on ppc
|
|
|
|
* Fri Aug 19 2005 - Orion Poplawski <orion@cora.nwra.com> - 0.8.10-1
|
|
- Initial Fedora Extras version
|