File xmgrace.spec of Package xmgrace
#
# spec file for package xmgrace (Version 5.1.21)
#
# 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: xmgrace
BuildRequires: libpng-devel libtiff-devel netcdf openmotif openmotif-devel t1lib-devel update-desktop-files xorg-x11
License: Any permissive, BSD 3-Clause
Group: Productivity/Graphics/Visualization/Graph
Autoreqprov: on
Version: 5.1.21
Release: 27
Summary: A 2D-plot-program for Visualisation of Scientific Data
Source: ftp://ftp.fu-berlin.de/unix/graphics/grace/src/grace-%{version}.tar.bz2
Source1: %name.desktop
Source2: xmgrace.png
Patch0: xmgrace-null.patch
Patch1: xmgrace-strip.patch
Patch2: xmgrace-help.patch
URL: http://plasma-gate.weizmann.ac.il/Grace/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Grace is a WYSIWYG 2D plotting tool for the X Window System and M*tif.
Grace is a descendant of ACE/gr, also known as Xmgr. It knows a lot of
different graph types and supports a lot of output formats.
For examples, see /usr/lib/xmgrace/examples.
Authors:
--------
Paul J. Turner <pturner@teleport.com>
GRACE Development Team, maintained by
Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il>
%prep
%setup -n grace-%{version}
%patch0 -p0
%patch1
%patch2
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/usr/%{_lib} --enable-grace-home=/usr/%{_lib}/xmgrace --bindir=/usr/bin --with-helpviewer="/usr/bin/desktop-launch %s" --mandir=%{_mandir}
make
%install
# rm -rf %{_defaultdocdir}/xmgrace
# rm -rf /usr/%{_lib}/xmgrace
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install links
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/xmgrace
rm -rf $RPM_BUILD_ROOT/usr/man
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/*.1
mv $RPM_BUILD_ROOT/usr/%{_lib}/xmgrace/doc/*.1 $RPM_BUILD_ROOT/usr/share/man/man1
mv $RPM_BUILD_ROOT/usr/%{_lib}/xmgrace/doc $RPM_BUILD_ROOT/%{_defaultdocdir}/xmgrace
%if "%{_lib}" == "lib64"
mv $RPM_BUILD_ROOT/usr/lib/libgrace_np.a $RPM_BUILD_ROOT/usr/%{_lib}
%endif
cp CHANGES COPYRIGHT ChangeLog DEVELOPERS LICENSE README $RPM_BUILD_ROOT/%{_defaultdocdir}/xmgrace
install -dm 755 $RPM_BUILD_ROOT/%{_datadir}/pixmaps
install %{SOURCE2} -m 644 $RPM_BUILD_ROOT/%{_datadir}/pixmaps
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/applications/
install %{SOURCE1} -m 644 $RPM_BUILD_ROOT%{_datadir}/applications/
%suse_update_desktop_file -r $RPM_BUILD_ROOT%{_datadir}/applications/xmgrace.desktop Edutainment Math
%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/xmgrace
%doc /usr/share/man/man1/*
# %{_defaultdocdir}/xmgrace
%{_libdir}/xmgrace
%{_bindir}/gracebat
%{_bindir}/xmgrace
%{_bindir}/grace
%{_includedir}/grace_np.h
%{_libdir}/libgrace_np.a
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*png
%changelog
* Thu Jul 19 2007 - stbinner@suse.de
- fix suse_update_desktop_file call
* Sat May 12 2007 - aj@suse.de
- Use lib64 if appropriate.
* Thu Apr 26 2007 - freitag@suse.de
- update to version 5.1.21 - minor improvements
- Bugzilla #117995: Fixed help path
- Bugzilla #106119: Fixed desktop file
* Wed Jan 24 2007 - sndirsch@suse.de
- /usr/X11R6 --> /usr
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 - freitag@suse.de
- update to version 5.1.19
It is a maintenance release of the 5.1 series; an upgrade is
recommended.
* Mon Jan 16 2006 - schwab@suse.de
- Don't strip binaries.
- Fix libdir.
* Fri Jan 06 2006 - stbinner@suse.de
- fix file list
* Sun Oct 02 2005 - stbinner@suse.de
- fix typo in GenericName entry of .desktop file
* Mon Apr 25 2005 - meissner@suse.de
- fixed 2 character overflow due to small stack buffer.
* Wed Feb 23 2005 - meissner@suse.de
- one 0 -> NULL in a XtVa call.
* Wed Jan 19 2005 - freitag@suse.de
- update to version 5.1.18, maintenance release
* Thu Feb 05 2004 - freitag@suse.de
- update to version 5.1.14, minor feature enhancements and bugfixes.
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Fri Aug 15 2003 - adrian@suse.de
- add desktop file
* Thu Jun 12 2003 - ro@suse.de
- install man-pages to X11R6/man/man1
* Wed May 07 2003 - freitag@suse.de
- update to version 5.1.12, new features, bugfixes etc.
* Mon Nov 04 2002 - freitag@suse.de
- update to version 5.1.10, which brought a lot of new features,
bugfixes etc. See CHANGES-file for details.
* Fri Jul 26 2002 - freitag@suse.de
- update to version 5.1.8:
[ES] implemented (and enabled by default) "safe" mode, in which statements
of the command language which may result in file modifications are
disabled. This is to prevent execution of such commands contained in
potentially malicious project files acquired from untrusted sources
[ES] use leading zeros in axis year formats so to make up to 2 or 4
digits in total (depending on whether the two-digit year span is
enabled in the project preferences)
[ES] simplified X initialization - the resolution detection introduced
in 5.1.5 prevented Grace from starting up with some buggy X servers
(notably, StarNet's X-win32) (rep. #1138)
[ES] -safe/-nosafe command line options for switching the safe mode
[ES] "Run in safe mode" checkbox in "Edit/Preferences" for the same
purpose
[ES] removed broken "Command" function of the hotlink popup
* Tue May 21 2002 - freitag@suse.de
- update to version 5.1.7:
[ES] allow XYZ sets in polar graphs
[ES] allow defining string columns when creating sets from block data
via the command line or parser, e.g. -bxy "1:2:{3}" (rep. #978)
[ES] honour symskip for all set types (it wasn't for BAR, BARDY,
BARDYDY, XYHILO, XYR, XYVMAP, and BOXPLOT)
[ES] extended x-correlation routines to calculate x-covariance if desired
[ES] implemented optional snake-like matrix fill in graph arranging
(rep. #1119)
and other bugfixes, enhancements.
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Nov 28 2001 - freitag@suse.de
- update to version 5.1.5, maintenance release with bugfixes
* Wed Aug 22 2001 - ro@suse.de
- removed pdflib from neededforbuild (for license problems)
* Mon Jul 23 2001 - freitag@suse.de
- update to version 5.1.4
* Tue Apr 10 2001 - freitag@suse.de
- update to version 5.1.3
* Thu Nov 23 2000 - freitag@suse.de
- new version 5.1.2
* Sat Nov 18 2000 - kukuk@suse.de
- Link against OpenMotif
* Wed Sep 06 2000 - freitag@suse.de
- updated to version 5.1.1
* Wed May 10 2000 - freitag@suse.de
- updated to version 5.1.0 with pdf-support, netcdf etc.
- documentation patch updated
* Tue Feb 08 2000 - freitag@suse.de
- updated specfile with %%{version}, group etc.
* Tue Oct 26 1999 - freitag@suse.de
- new version 5.0.5