From 67ce883a3c80c605fc07338e887101a76b771e14 Mon Sep 17 00:00:00 2001 From: José Abílio Oliveira Matos Date: Sep 28 2007 23:22:58 +0000 Subject: - Correctly detect netcdf (signature has changed). - Add libXmu-devel as BR. - Add conditional dependency on chkfontpath for <= F8. --- diff --git a/grace-detect-netcdf.diff b/grace-detect-netcdf.diff new file mode 100644 index 0000000..ba914ca --- /dev/null +++ b/grace-detect-netcdf.diff @@ -0,0 +1,11 @@ +--- configure.old 2007-02-16 22:44:49.000000000 +0000 ++++ configure 2007-09-28 23:03:29.000000000 +0100 +@@ -15181,7 +15181,7 @@ + int main(void) { + char *vlib; + vlib = nc_inq_libvers(); +- if (strcmp(vlib, "3.0") < 0) { ++ if (strcmp(vlib, "\"3.0\"") < 0) { + exit(1); + } + exit(0); diff --git a/grace.spec b/grace.spec index ba307a3..affcb42 100644 --- a/grace.spec +++ b/grace.spec @@ -3,7 +3,7 @@ Name: grace Version: 5.1.21 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Numerical Data Processing and Visualization Tool License: GPLv2+ @@ -14,13 +14,14 @@ Source1: %{name}.desktop Source2: %{name}.png Source3: cephes-license.email Source4: LICENSE.cephes -Patch: %{name}-gracerc-no_auxiliary.diff +Patch0: %{name}-gracerc-no_auxiliary.diff +Patch1: %{name}-detect-netcdf.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Group: Applications/Engineering BuildRequires: libjpeg-devel, libpng-devel, netcdf-devel BuildRequires: zlib-devel, fftw2-devel, t1lib-devel -BuildRequires: xbae-devel, gcc-gfortran +BuildRequires: xbae-devel, gcc-gfortran, libXmu-devel BuildRequires: desktop-file-utils, font-utils %if "%{fedora}" < "5" @@ -31,6 +32,10 @@ BuildRequires: libXpm-devel Requires: nedit Requires: htmlview +%if "%{fedora}" < "8" +Requires(post): chkfontpath +Requires(postun): chkfontpath +%endif %description Grace is a Motif application for two-dimensional data visualization. @@ -53,7 +58,9 @@ Install these files if you need to compile software that requires grace. %prep %setup -q -%patch +%patch0 +%patch1 + # remove stripping option to have meaningfull debuginfo packages sed -i -e 's/^\(.*INSTALL_PROGRAM.*\) -s /\1 /' */Makefile rm -rf Xbae @@ -70,7 +77,6 @@ cp %{SOURCE3} %{SOURCE4} . --with-x \ --with-f77=gfortran \ --with-extra-incpath=%{_includedir}/netcdf-3 \ - --with-extra-ldpath=%{_libdir}/netcdf-3 \ --with-bundled-xbae=no make %{?_smp_mflags} @@ -130,14 +136,19 @@ desktop-file-install --vendor fedora --delete-original \ --add-category Graphics \ %{buildroot}%{_datadir}/applications/%{name}.desktop +%if "%{fedora}" >= "8" mkdir -p $RPM_BUILD_ROOT%{catalogue} ln -sf %{_datadir}/%{name}/type1 $RPM_BUILD_ROOT%{catalogue}/%{name}-type1 +%endif %clean rm -rf %{buildroot} %post +%if "%{fedora}" < "8" +%{_sbindir}/chkfontpath -q -a %{_datadir}/%{name}/fonts/type1 +%endif touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : @@ -145,6 +156,9 @@ fi %postun +%if "%{fedora}" < "8" +%{_sbindir}/chkfontpath -q -r %{_datadir}/%{name}/fonts/type1 +%endif touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : @@ -164,8 +178,9 @@ fi %{_datadir}/applications/* %{_datadir}/icons/hicolor/*/*/* %{_mandir}/man*/* +%if "%{fedora}" >= "8" %{catalogue}/%{name}-type1 - +%endif %files devel %defattr(-,root,root,-) @@ -177,6 +192,11 @@ fi %changelog +* Fri Sep 28 2007 José Matos - 5.1.21-4 +- Correctly detect netcdf (signature has changed). +- Add libXmu-devel as BR. +- Add conditional dependency on chkfontpath for <= F8. + * Thu Sep 27 2007 José Matos - 5.1.21-3 - Remove dependency on chkfontpath, thanks to ajax for the patch. (#252277)