gdl/gdl.spec

470 lines
15 KiB
RPMSpec
Raw Normal View History

%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: gdl
Version: 0.9.3
Release: 7.cvs20130516%{?dist}
Summary: GNU Data Language
Group: Applications/Engineering
License: GPLv2+
URL: http://gnudatalanguage.sourceforge.net/
2013-02-25 23:56:25 +00:00
Source0: http://downloads.sourceforge.net/gnudatalanguage/%{name}-%{version}.tar.gz
Source1: gdl.csh
Source2: gdl.sh
Source3: makecvstarball
Patch0: gdl-cvs.patch
# Build with system antlr library. Request for upstream change here:
# https://sourceforge.net/tracker/index.php?func=detail&aid=2685215&group_id=97659&atid=618686
Patch1: gdl-antlr-auto.patch
# Force build of libgdl.so
Patch2: gdl-shared.patch
# Patch to allow make check to work for out of tree builds
Patch3: gdl-build.patch
# Patch to fix memcpy call
# https://sourceforge.net/p/gnudatalanguage/patches/69/
Patch4: gdl-memcpy.patch
2011-03-18 22:15:03 +00:00
Patch13: gdl-0.9-antlr-cmake.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2012-12-28 19:31:42 +00:00
#RHEL5 doesn't have the needed antlr version/headers, has old plplot
%if 0%{?fedora} || 0%{?rhel} >= 6
%if 0%{?fedora}
BuildRequires: antlr-C++
2012-03-21 18:31:08 +00:00
BuildRequires: antlr-tool
%else
BuildRequires: antlr
2012-12-28 19:31:42 +00:00
BuildRequires: java
%endif
%global plplot_config %{nil}
%else
%global plplot_config --enable-oldplplot
%endif
BuildRequires: readline-devel, ncurses-devel
2013-05-20 15:48:11 +00:00
BuildRequires: gsl-devel, plplot-devel, GraphicsMagick-c++-devel
BuildRequires: netcdf-devel, hdf5-devel, libjpeg-devel
BuildRequires: python-devel, numpy, python-matplotlib
BuildRequires: fftw-devel, hdf-static
2012-12-28 19:31:42 +00:00
%if 0%{?fedora} || 0%{?rhel} >= 6
BuildRequires: grib_api-static
2012-12-28 19:31:42 +00:00
%endif
BuildRequires: eigen3-devel
#TODO - Build with mpi support
#BuildRequires: mpich2-devel
2012-01-07 16:29:48 +00:00
BuildRequires: pslib-devel
BuildRequires: udunits2-devel
BuildRequires: wxGTK-devel
2011-03-18 22:15:03 +00:00
BuildRequires: cmake
# Needed to pull in drivers
Requires: plplot
Requires: %{name}-common = %{version}-%{release}
Provides: %{name}-runtime = %{version}-%{release}
2011-11-17 15:48:27 +00:00
# Need to match hdf5 compile time version
Requires: hdf5 = %{_hdf5_version}
%description
A free IDL (Interactive Data Language) compatible incremental compiler
2010-08-30 17:58:33 +00:00
(i.e. runs IDL programs). IDL is a registered trademark of Research
Systems Inc.
%package common
Summary: Common files for GDL
Group: Applications/Engineering
Requires: %{name}-runtime = %{version}-%{release}
2012-12-28 19:31:42 +00:00
%if 0%{?fedora} || 0%{?rhel} >= 6
BuildArch: noarch
%endif
%description common
Common files for GDL
%package python
Summary: GDL python module
Group: Applications/Engineering
# Needed to pull in drivers
Requires: plplot
Requires: %{name}-common = %{version}-%{release}
Provides: %{name}-runtime = %{version}-%{release}
%description python
%{summary}.
%prep
2010-08-30 17:38:22 +00:00
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .cvs
rm -rf src/antlr
2011-03-18 22:15:03 +00:00
%patch13 -p1 -b .antlr
pushd src
for f in *.g
do
antlr $f
done
popd
%patch2 -p1 -b .shared
%patch3 -p1 -b .build
%patch4 -p1 -b .memcpy
rm ltmain.sh
rm -r CMakeFiles
2011-03-18 22:15:03 +00:00
%global cmake_opts \\\
-DWXWIDGETS=ON \\\
-DUDUNITS=ON \\\
-DUDUNITS_INCLUDE_DIR=%{_includedir}/udunits2 \\\
-DGRIB=ON \\\
%{nil}
# TODO - build an mpi version
# INCLUDES="-I/usr/include/mpich2" \
# --with-mpich=%{_libdir}/mpich2 \
%build
export CPPFLAGS="-DH5_USE_16_API"
# Build convenience .a libraries with -fPIC
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
mkdir build build-python
#Build the standalone executable
pushd build
2011-03-18 22:15:03 +00:00
%{cmake} %{cmake_opts} ..
make %{?_smp_mflags}
popd
#Build the python module
pushd build-python
%{cmake} %{cmake_opts} -DPYTHON_MODULE=ON -DPYTHON_VERSION=2.7 ..
make %{?_smp_mflags}
popd
%install
rm -rf $RPM_BUILD_ROOT
pushd build
make install DESTDIR=$RPM_BUILD_ROOT
popd
pushd build-python
make install DESTDIR=$RPM_BUILD_ROOT
# Install the python module
install -d -m 0755 $RPM_BUILD_ROOT/%{python_sitearch}
cp -p src/libgdl.so \
$RPM_BUILD_ROOT/%{python_sitearch}/GDL.so
popd
# Install the profile file to set GDL_PATH
install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
%check
cd build
# test_bug_3104326 and test_execute expects to use DISPLAY
# test_bug_3300626 - https://sourceforge.net/p/gnudatalanguage/bugs/557/
# test_ce currently segfaults, known
# test_dicom - https://sourceforge.net/p/gnudatalanguage/bugs/558/
# Known issues with test_memory
# Known issues with str_sep
# - https://sourceforge.net/p/gnudatalanguage/bugs/521/
# test_matrix_multiply is causing problems - hangs
# - https://sourceforge.net/p/gnudatalanguage/bugs/556/
make check ARGS="-V -E 'test_bug_3104326|test_bug_3300626|test_dicom|test_execute|test_str_sep|test_matrix_multiply'"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO
%config(noreplace) %{_sysconfdir}/profile.d/gdl.*sh
%{_bindir}/gdl
%{_mandir}/man1/gdl.1*
%files common
%{_datadir}/gnudatalanguage/
%files python
%{python_sitearch}/GDL.so
%changelog
* Wed Jul 31 2013 Orion Poplawski <orion@cora.nwra.com> - 0.9.3-8.cvs20130731
- Update cvs patch to current cvs
- Add patch to fix segfault in test_ce
- Cleanup test excludes, note bugs for failing tests
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 0.9.3-7.cvs20130516
- Update cvs patch to current cvs
- Drop test_ce,tests, netcdf, and python patch applied upstream
- Rebuild for hdf5 1.8.11
2013-05-20 15:48:11 +00:00
- Switch to GraphicsMagick
* Fri Mar 22 2013 Orion Poplawski <orion@cora.nwra.com> - 0.9.3-6.cvs20130321
- Update cvs patch to current cvs
- Add patch to use python 2 with cmake
* Wed Mar 20 2013 Orion Poplawski <orion@cora.nwra.com> - 0.9.3-5
- Add patch to handle netcdf better with cmake
- BR netcdf-devel instead of netcdf-cxx-devel
* Fri Mar 15 2013 Orion Poplawski <orion@cora.nwra.com> - 0.9.3-4
- Change to use cmake
- Update to current cvs via patch
- Add patches to fix tests under cmake
- Build with eigen3
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.9.3-2
- rebuild due to "jpeg8-ABI" feature drop
* Thu Dec 27 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.3-1
- Update to 0.9.3
- Rebase antlr-auto patch
2012-12-03 20:54:19 +00:00
* Mon Dec 3 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-10.cvs20120717
- Rebuild for hdf5 1.8.10
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-9.cvs20120717
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jul 17 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-8.cvs20120717
- Update to current cvs
- Drop env patch fixed upstream
2012-07-17 02:16:55 +00:00
* Mon Jul 16 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-7.cvs20120716
- Update to current cvs
2012-05-16 03:47:29 +00:00
* Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-6.cvs20120515
- Update to current cvs
- Add patch for testsuite make check to work in build directory
- Add patch to fix pythongdl.c compile
- Run the testsuite properly with make check
* Wed Mar 21 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-5
- Rebuild antlr generated files
- Rebuild for ImageMagick
2012-02-28 18:27:47 +00:00
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-4
- Rebuilt for c++ ABI breakage
2012-01-07 16:12:42 +00:00
* Sat Jan 7 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-3
- Build with pslib
2011-11-16 23:57:37 +00:00
* Wed Nov 16 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-2
- Rebuild for hdf5 1.8.8
* Fri Nov 11 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-1
- Update to 0.9.2
- Drop upstreamed patches
- Drop hdf support from python module, add patch to force building of python
shared library
2011-10-26 23:48:32 +00:00
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
- Rebuilt for glibc bug#747377
* Thu Aug 18 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.1-4
- Rebuild for plplot 5.9.8
- Add upstream patch to fix strsplit and str_sep
2011-08-18 19:24:26 +00:00
- Add patch to fix compile issues with string
- Add patch to change plplot SetOpt to setopt
2011-05-18 03:34:29 +00:00
* Tue May 17 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.1-3
- Rebuild for hdf5 1.8.7
2011-03-31 18:26:44 +00:00
* Thu Mar 31 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.1-2
- Rebuild for netcdf 4.1.2
* Tue Mar 29 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.1-1
- Update to 0.9.1
- Drop numpy and wx patches fixed upstream
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2013-03-15 22:40:30 +00:00
* Mon Oct 11 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-5
2010-10-11 21:37:47 +00:00
- Rebuild for plplot 5.9.7
2010-09-29 21:13:24 +00:00
* Wed Sep 29 2010 jkeating - 0.9-4
- Rebuilt for gcc bug 634757
* Wed Sep 15 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-3
2010-09-15 22:33:01 +00:00
- Fix GDL_PATH in profile scripts (bug #634351)
2010-09-15 19:55:39 +00:00
* Wed Sep 15 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-2
- Rebuild for new ImageMagick
2010-08-30 17:38:22 +00:00
* Mon Aug 30 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-1
- Update to 0.9 final
* Thu Aug 26 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.17.rc4
- Add initial patch to build the python module with numpy rather than
numarray. Doesn't work yet, but the python module is mostly dead anyway
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-0.16.rc4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-14 12:27:11 +00:00
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 0.9-0.15.rc4
- rebuilt against wxGTK-2.8.11-2
* Wed Jul 7 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.14.rc4
- Update to today's cvs
- Drop wx-config patch
- Re-instate wx patch to avoid segfault on test exit
* Thu Jun 3 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.13.rc4
- Update to today's cvs
- Drop GLDLexer and python patches
- BR antlr-C++ on Fedora 14+
* Mon Mar 22 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.12.rc4
- Drop unused BR on proj-devel (bug #572616)
2010-03-08 17:30:25 +00:00
* Mon Mar 8 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.11.rc4
- Rebuild for new ImageMagick
2013-03-15 22:40:30 +00:00
* Wed Feb 17 2010 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.10.rc4
- Update to 0.9rc4
- Enable grib, udunits2, and wxWidgets support
- Build python module and add sub-package for it
- Use %%global instead of %%define
* Tue Dec 8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 0.9-0.9.rc3
- Explicitly BR hdf-static in accordance with the Packaging
Guidelines (hdf-devel is still static-only).
2013-03-15 22:40:30 +00:00
* Wed Nov 11 2009 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.8.rc3
2009-11-11 18:33:38 +00:00
- Rebuild for netcdf-4.1.0
2013-03-15 22:40:30 +00:00
* Thu Oct 15 2009 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.7.rc3
- Update to 0.9rc3
2009-10-15 20:13:46 +00:00
- Drop gcc43, ppc64, friend patches fixed upstream
- Add source for makecvstarball
- Rebase antlr patch, add automake source version
- Add conditionals for EPEL builds
- Add %%check section
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-0.6.rc2.20090312
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2013-03-15 22:40:30 +00:00
* Mon Mar 16 2009 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.5.rc2.20090312
- Back off building python module until configure macro is updated
2013-03-15 22:40:30 +00:00
* Thu Mar 12 2009 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.4.rc2.20090312
- Update to 0.9rc2 cvs 20090312
- Rebase antlr patch
- Rebuild for new ImageMagick
2013-03-15 22:40:30 +00:00
* Thu Feb 26 2009 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.3.rc2.20090224
- Build python module
- Move common code to noarch common sub-package
2013-03-15 22:40:30 +00:00
* Tue Feb 24 2009 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.2.rc2.20090224
- Update to 0.9rc2 cvs 20090224
- Fix release tag
- Drop ImageMagick patch fixed upstream
2009-02-25 18:40:52 +00:00
- Add patch to compile with gcc 4.4.0 - needs new friend statement
- Don't build included copy of antlr, use system version
2013-03-15 22:40:30 +00:00
* Fri Jan 23 2009 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.rc2.1
2009-01-26 16:52:04 +00:00
- Update to 0.9rc2 based cvs
2008-12-01 05:03:47 +00:00
* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9-0.rc1.4.1
- Rebuild for Python 2.6
2013-03-15 22:40:30 +00:00
* Fri Sep 5 2008 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.rc1.4
- Add a requires on plplot to pull in drivers (bug#458277)
2013-03-15 22:40:30 +00:00
* Fri May 16 2008 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.rc1.3
- Update to latest cvs
- Add patch to handle new ImageMagick
- Update netcdf locations
2013-03-15 22:40:30 +00:00
* Mon Apr 28 2008 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.rc1.2
2008-04-28 16:26:25 +00:00
- Rebuild for new ImageMagick
2013-03-15 22:40:30 +00:00
* Sat Apr 5 2008 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.rc1.1
2008-04-06 04:22:34 +00:00
- Update to 0.9rc1
2013-03-15 22:40:30 +00:00
* Mon Mar 17 2008 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre6.2
2008-04-06 04:22:34 +00:00
- Update cvs patch to latest cvs
2013-03-15 22:40:30 +00:00
* Tue Mar 4 2008 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre6.1
- Rebuild for gcc 4.3, and add patch for gcc 4.3 support
- Add patch to build against plplot 5.9.0
- Add cvs patch to update to latest cvs
2008-02-19 17:03:40 +00:00
2013-03-15 22:40:30 +00:00
* Fri Nov 2 2007 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre6
2007-11-03 03:27:30 +00:00
- Update to 0.9pre6
2013-03-15 22:40:30 +00:00
* Tue Aug 21 2007 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre5.2
2007-08-22 04:29:46 +00:00
- Add patch to fix build on ppc64
2013-03-15 22:40:30 +00:00
* Tue Aug 21 2007 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre5.1
- Update license tag to GPLv2+
- Rebuild for BuildID
2013-03-15 22:40:30 +00:00
* Mon Jul 9 2007 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre5
2007-07-09 20:34:09 +00:00
- Update to 0.9pre5
2013-03-15 22:40:30 +00:00
* Tue May 22 2007 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre4.2
- Rebuild for netcdf 3.6.2 with shared libraries
2013-03-15 22:40:30 +00:00
* Tue Jan 9 2007 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre4.1
- Package the library routines and point to them by default
2013-03-15 22:40:30 +00:00
* Fri Jan 5 2007 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre4
2007-01-05 20:04:25 +00:00
- Update to 0.9pre4
2013-03-15 22:40:30 +00:00
* Mon Dec 18 2006 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre3.4
- Add patch for configure to handle python 2.5
2006-12-15 09:14:17 +00:00
* Thu Dec 14 2006 - Jef Spaleta <jspaleta@gmail.com> - 0.9-0.pre3.3
- Bump and build for python 2.5
2013-03-15 22:40:30 +00:00
* Wed Nov 22 2006 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre3.2
2006-11-22 16:28:56 +00:00
- Update to 0.9pre3
2013-05-22 16:33:17 +00:00
* Wed Oct 4 2006 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre3.1
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
2013-03-15 22:40:30 +00:00
* Mon Sep 18 2006 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre3
2006-09-18 21:31:22 +00:00
- Rebuild for FC6
- Add patch for specialization error caught by gcc 4.1.1
2006-09-18 21:31:22 +00:00
2013-03-15 22:40:30 +00:00
* Thu Jun 29 2006 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre2
2006-06-29 22:22:18 +00:00
- Update to 0.9pre2
2013-03-15 22:40:30 +00:00
* Sun Jun 11 2006 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre.1
2006-06-11 21:38:23 +00:00
- Rebuild for ImageMagick so bump
2013-03-15 22:40:30 +00:00
* Mon Apr 3 2006 Orion Poplawski <orion@cora.nwra.com> - 0.9-0.pre
2006-04-04 17:38:20 +00:00
- Update to 0.9pre
2013-03-15 22:40:30 +00:00
* Fri Feb 24 2006 Orion Poplawski <orion@cora.nwra.com> - 0.8.11-4
2006-02-24 20:10:58 +00:00
- Add --with-fftw to configure
2013-03-15 22:40:30 +00:00
* Thu Feb 2 2006 Orion Poplawski <orion@cora.nwra.com> - 0.8.11-3
2006-02-02 22:42:40 +00:00
- Enable hdf for ppc
2006-02-02 23:25:07 +00:00
- Change fftw3 to fftw
2006-02-02 22:42:40 +00:00
2013-03-15 22:40:30 +00:00
* Tue Jan 3 2006 Orion Poplawski <orion@cora.nwra.com> - 0.8.11-2
2006-01-03 21:32:20 +00:00
- Rebuild
2013-03-15 22:40:30 +00:00
* Mon Nov 21 2005 Orion Poplawski <orion@cora.nwra.com> - 0.8.11-1
- Upstream 0.8.11
- Remove hdf patch fixed upstream
- Remove X11R6 lib path - not needed with modular X
2013-03-15 22:40:30 +00:00
* Wed Nov 16 2005 Orion Poplawski <orion@cora.nwra.com> - 0.8.10-4
2005-11-16 17:55:21 +00:00
- Update for new ImageMagick version
2013-03-15 22:40:30 +00:00
* Thu Sep 22 2005 Orion Poplawski <orion@cora.nwra.com> - 0.8.10-3
2005-09-22 17:36:40 +00:00
- Disable hdf with configure on ppc
2013-03-15 22:40:30 +00:00
* Thu Sep 22 2005 Orion Poplawski <orion@cora.nwra.com> - 0.8.10-2
2005-09-22 17:21:53 +00:00
- Don't include hdf support on ppc
2013-03-15 22:40:30 +00:00
* Fri Aug 19 2005 Orion Poplawski <orion@cora.nwra.com> - 0.8.10-1
- Initial Fedora Extras version