public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/grace] epel10.3: - Correctly detect netcdf (signature has changed).
Date: Sat, 17 Oct 2026 16:20:14 GMT	[thread overview]
Message-ID: <179225401487.1.2720184961720083349.rpms-grace-67ce883a3c80@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/grace
            Branch : epel10.3
            Commit : 67ce883a3c80c605fc07338e887101a76b771e14
            Author : José Abílio Oliveira Matos <jamatos@fedoraproject.org>
            Date   : 2007-09-28T23:22:58+00:00
            Stats  : +37/-6 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/grace/c/67ce883a3c80c605fc07338e887101a76b771e14?branch=epel10.3

            Log:
            - 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 <jamatos[AT]fc.up.pt> - 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 <jamatos[AT]fc.up.pt> - 5.1.21-3
 - Remove dependency on chkfontpath, thanks to ajax for the patch. (#252277)
 

                 reply	other threads:[~2026-10-17 16:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179225401487.1.2720184961720083349.rpms-grace-67ce883a3c80@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox