diff --git a/gtkwave.spec b/gtkwave.spec index 3b37fbb..fc835e1 100644 --- a/gtkwave.spec +++ b/gtkwave.spec @@ -1,9 +1,16 @@ #global prerel RC5 +# Install appdata from F-20 onwards +%if 0%{?fedora} > 19 || 0%{?rhel} > 7 +%global install_appdata 1 +%else +%global install_appdata 0 +%endif + Summary: Waveform Viewer Name: gtkwave -Version: 3.3.62 -Release: %{?prerel:0.}3%{?prerel:.%{prerel}}%{?dist} +Version: 3.3.63 +Release: %{?prerel:0.}1%{?prerel:.%{prerel}}%{?dist} License: GPLv2+ Group: Applications/Engineering URL: http://gtkwave.sourceforge.net/ @@ -18,6 +25,9 @@ BuildRequires: gtk2-devel, bzip2-devel, GConf2-devel, dbus-devel, Judy-devel BuildRequires: xz-devel, zlib-devel BuildRequires: gedit, gperf, flex, desktop-file-utils BuildRequires: tcl-devel >= 8.4, tk-devel +%if %{install_appdata} +BuildRequires: libappstream-glib +%endif Requires: gedit # Move to unversioned documentation directories from F-20 @@ -55,12 +65,23 @@ install -D -m 644 -p %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps install -D -m 644 -p share/icons/gtkwave_256x256x32.png \ %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/gtkwave.png +# Appdata +%if %{install_appdata} +install -D -m 644 -p share/appdata/gtkwave.appdata.xml \ + %{buildroot}%{_datadir}/appdata/gtkwave.appdata.xml +%endif + # Include extra docs for extradoc in AUTHORS ChangeLog %{!?_licensedir:COPYING LICENSE.TXT} do install -p -m 644 ${extradoc} %{buildroot}%{gtkwave_docdir}/ done +%check +%if %{install_appdata} +appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/gtkwave.appdata.xml +%endif + %clean rm -rf %{buildroot} @@ -116,6 +137,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %{_bindir}/vermin %{_bindir}/vzt2vcd %{_bindir}/vztminer +%if %{install_appdata} +%{_datadir}/appdata/gtkwave.appdata.xml +%endif %{_datadir}/applications/gtkwave.desktop %{_datadir}/icons/gnome/16x16/mimetypes/gnome-mime-application-vnd.gtkwave-ae2.png %{_datadir}/icons/gnome/16x16/mimetypes/gnome-mime-application-vnd.gtkwave-aet.png @@ -191,6 +215,15 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %{_mandir}/man5/gtkwaverc.5* %changelog +* Tue Nov 11 2014 Paul Howarth 3.3.63-1 +- update to 3.3.63 + - updated LZ4 for version r123 + - added fine horiz scrolling in wave window (when using the wheel on a mouse) + if shift pressed + - timescale fix for Verilator where it emits 0ps as a timescale + - added sample gtkwave.appdata.xml file in share/appdata +- install and validate appdata from F-20 onwards + * Fri Oct 3 2014 Paul Howarth 3.3.62-3 - fix scriptlet compatibility for older Fedora releases diff --git a/sources b/sources index 7361a46..35e1a97 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -8764969c3363cce5ed6b5da56771cd71 gtkwave-3.3.62.tar.gz +94c3ece83954f1cb2e9e572b4728001c gtkwave-3.3.63.tar.gz 2cc7754492918591242bc38a0b11d2a5 gtkwave-16.png 410c50539074403d3a3240f7c9209b11 gtkwave-32.png 4fdb2fec2b6d9732e2f111c6cd63b788 gtkwave-48.png