public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/grace] epel10.3: Fix font issue, thanks to Andrew Schultz, Michael Weinert, sammy,
@ 2026-10-17 16:20 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-17 16:20 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/grace
            Branch : epel10.3
            Commit : 2a2907287be9b26f037e10795373f157c4c4e0dc
            Author : Terje Røsten <terje.rosten@ntnu.no>
            Date   : 2018-06-19T18:52:05+02:00
            Stats  : +84/-77 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/grace/c/2a2907287be9b26f037e10795373f157c4c4e0dc?branch=epel10.3

            Log:
            Fix font issue, thanks to Andrew Schultz, Michael Weinert, sammy,
  David Kaspar and others (rhbz#1502175)
Remove icon cache update
Some clean up

---
diff --git a/.gitignore b/.gitignore
index 1daa1a6..1ab6a34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /grace_5.1.25-1.debian.tar.xz
 /grace-5.1.25.tar.gz
+/grace_5.1.25-6.debian.tar.xz

diff --git a/FontDataBase b/FontDataBase
new file mode 100644
index 0000000..d822b01
--- /dev/null
+++ b/FontDataBase
@@ -0,0 +1,36 @@
+35 
+URW-Gothic-L-Book URW-Gothic-L-Book URWGothic-Book.pfb
+URW-Gothic-L-Demi URW-Gothic-L-Demi URWGothic-Demi.pfb
+URW-Gothic-L-Book-Oblique URW-Gothic-L-Book-Oblique URWGothic-BookOblique.pfb
+URW-Gothic-L-Demi-Oblique URW-Gothic-L-Demi-Oblique URWGothic-DemiOblique.pfb
+URW-Bookman-L-Light URW-Bookman-L-Light URWBookman-Light.pfb
+URW-Bookman-L-Demi-Bold URW-Bookman-L-Demi-Bold URWBookman-Demi.pfb
+URW-Bookman-L-Light-Italic URW-Bookman-L-Light-Italic URWBookman-LightItalic.pfb
+URW-Bookman-L-Demi-Bold-Italic URW-Bookman-L-Demi-Bold-Italic URWBookman-DemiItalic.pfb
+Century-Schoolbook-L-Roman Century-Schoolbook-L-Roman C059-Roman.pfb
+Century-Schoolbook-L-Bold Century-Schoolbook-L-Bold C059-Bold.pfb
+Century-Schoolbook-L-Italic Century-Schoolbook-L-Italic C059-Italic.pfb
+Century-Schoolbook-L-Bold-Italic Century-Schoolbook-L-Bold-Italic C059-BdIta.pfb
+ZapfDingbats            ZapfDingbats            D050000L.pfb
+Helvetica               Helvetica               NimbusSans-Regular.pfb
+Helvetica-Bold          Helvetica-Bold          NimbusSans-Bold.pfb
+Helvetica-Oblique       Helvetica-Oblique       NimbusSans-Italic.pfb
+Helvetica-BoldOblique   Helvetica-BoldOblique   NimbusSans-BoldItalic.pfb
+Nimbus-Sans-L-Regular-Condensed Nimbus-Sans-L-Regular-Condensed NimbusSansNarrow-Regular.pfb
+Nimbus-Sans-L-Bold-Condensed Nimbus-Sans-L-Bold-Condensed NimbusSansNarrow-Bold.pfb
+Nimbus-Sans-L-Regular-Condensed-Italic Nimbus-Sans-L-Regular-Condensed-Italic NimbusSansNarrow-Oblique.pfb
+Nimbus-Sans-L-Bold-Condensed-Italic Nimbus-Sans-L-Bold-Condensed-Italic NimbusSansNarrow-BoldOblique.pfb
+Times-Roman             Times-Roman             NimbusRoman-Regular.pfb
+Times-Bold              Times-Bold              NimbusRoman-Bold.pfb
+Times-Italic            Times-Italic            NimbusRoman-Italic.pfb
+Times-BoldItalic        Times-BoldItalic        NimbusRoman-BoldItalic.pfb
+Courier                 Courier                 NimbusMonoPS-Regular.pfb
+Courier-Bold            Courier-Bold            NimbusMonoPS-Bold.pfb
+Courier-Oblique         Courier-Oblique         NimbusMonoPS-Italic.pfb
+Courier-BoldOblique     Courier-BoldOblique     NimbusMonoPS-BoldItalic.pfb
+URW-Palladio-L-Roman URW-Palladio-L-Roman P052-Roman.pfb
+URW-Palladio-L-Bold URW-Palladio-L-Bold P052-Bold.pfb
+URW-Palladio-L-Italic URW-Palladio-L-Italic P052-Italic.pfb
+URW-Palladio-L-Bold-Italic URW-Palladio-L-Bold-Italic P052-BoldItalic.pfb
+Symbol                  Symbol                  StandardSymbolsPS.pfb
+URW-Chancery-L-Medium-Italic URW-Chancery-L-Medium-Italic Z003-MediumItalic.pfb

diff --git a/grace.spec b/grace.spec
index a91adfa..6a12fda 100644
--- a/grace.spec
+++ b/grace.spec
@@ -1,54 +1,48 @@
-# relative to datadir
-%define type1fontdir fonts/default/Type1
-
 Name:           grace
 Version:        5.1.25
-Release:        10%{?dist}
+Release:        12%{?dist}
 Summary:        Numerical Data Processing and Visualization Tool
-
 License:        GPLv2+
 # cephes is LGPL, see also Source3 and Source4
 URL:            http://plasma-gate.weizmann.ac.il/Grace/
-Source0:        ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/%{name}-%{version}.tar.gz
-Source1:        %{name}.desktop
+Source0:        ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/grace-%{version}.tar.gz
+Source1:        grace.desktop
 Source3:        cephes-license.email
 Source4:        LICENSE.cephes
-Source5:        http://ftp.de.debian.org/debian/pool/main/g/grace/grace_5.1.25-1.debian.tar.xz
-
-Patch0:         %{name}-detect-netcdf.diff
-
-BuildRequires:  libjpeg-devel, libpng-devel, netcdf-devel
-BuildRequires:  zlib-devel, fftw2-devel, t1lib-devel
-BuildRequires:  xbae-devel, gcc-gfortran, libXmu-devel
+Source5:        http://ftp.de.debian.org/debian/pool/main/g/grace/grace_5.1.25-6.debian.tar.xz
+Source6:        FontDataBase
+Patch0:         grace-detect-netcdf.diff
 BuildRequires:  desktop-file-utils
+BuildRequires:  fftw2-devel
+BuildRequires:  gcc-gfortran
+BuildRequires:  libjpeg-devel
+BuildRequires:  libpng-devel
+BuildRequires:  libXmu-devel
 BuildRequires:  libXpm-devel
-# to be able to generate FontDataBase
-BuildRequires:  urw-fonts
-
+BuildRequires:  netcdf-devel
+BuildRequires:  t1lib-devel
+BuildRequires:  urw-base35-fonts-devel
+BuildRequires:  xbae-devel
+BuildRequires:  zlib-devel
 Requires:       nedit
+Requires:       urw-base35-fonts-legacy
 Requires:       xdg-utils
-# /usr/share/fonts/default/Type1/
-Requires:       urw-fonts
-
 %description
-Grace is a Motif application for two-dimensional data visualization.
-Grace can transform the data using free equations, FFT, cross- and
-auto-correlation, differences, integrals, histograms, and much
-more. The generated figures are of high quality.  Grace is a very
+Grace is a Motif application for two-dimensional data
+visualization. Grace can transform the data using free equations, FFT,
+cross- and auto-correlation, differences, integrals, histograms, and
+much more. The generated figures are of high quality.  Grace is a very
 convenient tool for data inspection, data transformation, and for
 making figures for publications.
 
-
-%package devel
+%package        devel
 Summary:        Files needed for grace development
 License:        LGPLv2+
 Requires:       %{name} = %{version}-%{release}
 Provides:       %{name}-static = %{version}-%{release}
-
 %description devel
 Install these files if you need to compile software that requires grace.
 
-
 %prep
 %setup -q -D -a 5
 
@@ -80,12 +74,9 @@ export FFLAGS="$RPM_OPT_FLAGS -fPIC"
 
 make %{?_smp_mflags}
 
-
 %install
 make install DESTDIR=%{buildroot}
-
 rm -f doc/*.1
-
 mkdir -pm 755                               \
     %{buildroot}%{_bindir}                  \
     %{buildroot}%{_includedir}              \
@@ -112,39 +103,24 @@ install -pm 644 include/* %{buildroot}%{_includedir}/
 rm -rf include
 ln -s ../../include include
 
-# use fonts from type1fontdir
+# use fonts from urw-base53-legacy and install custom fontdb,
+# see bz#1502175
 rm -rf fonts/type1
-ln -s ../../%{type1fontdir} fonts/type1
-mv fonts/FontDataBase %{buildroot}%{_sysconfdir}/%{name}
-ln -s ../../../../%{_sysconfdir}/%{name}/FontDataBase fonts/FontDataBase
-
-# regenerate %%{_sysconfdir}/%%{name}/FontDataBase based on what is in
-# type1fontdir and original FontDataBase content
-FontDataBaseFile=%{buildroot}%{_sysconfdir}/%{name}/FontDataBase
-rm -f $FontDataBaseFile.tmp
-for file in %{_datadir}/%{type1fontdir}/*.pfb; do
-  base=`basename $file .pfb`
-  alias=
-  if grep -qs $base $FontDataBaseFile; then
-    # keep original aliases if the exist
-    grep $base $FontDataBaseFile >> $FontDataBaseFile.tmp
-  else
-    # no original alias case. Use FullName from afm file and change space to -
-    if [ -f %{_datadir}/%{type1fontdir}/$base.afm ]; then
-      alias=`grep '^FullName' %{_datadir}/%{type1fontdir}/$base.afm | sed 's/^FullName *//' | sed 's/ *$//' | sed 's/ /-/g'`
-    fi
-    [ "z$alias" = 'z' ] && alias=$base
-    echo "$alias $alias $base.pfb" >> $FontDataBaseFile.tmp
-  fi
+ln -s %{urw_base35_fontpath} fonts/type1
+rm fonts/FontDataBase
+install -pm 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/%{name}/FontDataBase
+ln -s ../../../..%{_sysconfdir}/%{name}/FontDataBase fonts/FontDataBase
+
+# additional symlinks is also required
+install -d -m0755 %{buildroot}/%{urw_base35_fontpath}
+pushd %{buildroot}/%{urw_base35_fontpath}
+for f in %{urw_base35_fontpath}/*.t1 ; do
+    ln -s $(basename $f) $(basename $f .t1).pfb
 done
-fontcount=`wc -l $FontDataBaseFile.tmp`
-echo $fontcount | sed 's:%{buildroot}.*::' > $FontDataBaseFile
-cat $FontDataBaseFile.tmp >> $FontDataBaseFile
-rm $FontDataBaseFile.tmp
-# remove empty lines in file (fixes bug 504413)
-sed -i '/^$/d' $FontDataBaseFile
+popd
 
 install -pm 644 doc/*.1 %{buildroot}%{_mandir}/man1/
+
 # doc and example directories are removed from GRACE_HOME and put in %%doc
 rm -rf doc examples
 ln -s %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/{doc,examples} .
@@ -155,7 +131,7 @@ rm -f auxiliary/convcal.c
 # move config files to %%{_sysconfdir} and do symlinks
 for conf in gracerc templates gracerc.user; do
     mv $conf %{buildroot}%{_sysconfdir}/%{name}
-    ln -s ../../../%{_sysconfdir}/%{name}/$conf $conf
+    ln -s ../../..%{_sysconfdir}/%{name}/$conf $conf
 done
 popd
 
@@ -176,22 +152,10 @@ mkdir __dist_doc
 cp -a doc __dist_doc
 rm __dist_doc/doc/Makefile __dist_doc/doc/*.sgml
 
-%post
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-
-%postun
-if [ $1 -eq 0 ] ; then
-    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
-    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-fi
-
-%posttrans
-gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-
 %files
 %{!?_licensedir:%global license %%doc}
 %license LICENSE
-%doc ChangeLog CHANGES COPYRIGHT DEVELOPERS LICENSE README
+%doc ChangeLog CHANGES COPYRIGHT DEVELOPERS README
 %doc cephes-license.email LICENSE.cephes
 %doc examples/ __dist_doc/doc/
 %config(noreplace) %{_sysconfdir}/%{name}/
@@ -202,6 +166,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/applications/grace.desktop
 %{_datadir}/icons/hicolor/*/apps/grace.png
 %{_mandir}/man1/*.1*
+%{urw_base35_fontpath}/*.pfb
 
 %files devel
 %license grace_np/LICENSE
@@ -210,8 +175,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_libdir}/libgrace_np.a
 %{_datadir}/%{name}/lib
 
-
 %changelog
+* Tue Jun 19 2018 Terje Rosten <terje.rosten@ntnu.no> - 5.1.25-12
+- Fix font issue, thanks to Andrew Schultz, Michael Weinert, sammy,
+  David Kaspar and others (rhbz#1502175)
+- Remove icon cache update
+- Some clean up
+
 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.25-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
 

diff --git a/sources b/sources
index f82a843..33fe054 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-5489d70e813207f39b927b70e1ce5bf6  grace_5.1.25-1.debian.tar.xz
-c0482b1f18b113192946a96f5ff35a4d  grace-5.1.25.tar.gz
+SHA512 (grace-5.1.25.tar.gz) = 9ea68483af1dfc98d217ae730b7a51b66deae5aaa8dfda29d5a3337ed4b5728b45aa03f561bf7d4173e73d6af8dee03cbabd95c0c8dd36999303c89451a3728a
+SHA512 (grace_5.1.25-6.debian.tar.xz) = 7ba793c9c8caee80c228c78bccd98dc036762b47819c3382d9698ff5388605aeb2dd8d1d3cfc44a7e8d0082d3469850c1f4db2ee19179d30db811dad73b6d53c

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-17 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-17 16:20 [rpms/grace] epel10.3: Fix font issue, thanks to Andrew Schultz, Michael Weinert, sammy, 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox