SHA256
1
0
forked from pool/pulseview

Accepting request 436924 from home:StefanBruens:branches:electronics

OBS-URL: https://build.opensuse.org/request/show/436924
OBS-URL: https://build.opensuse.org/package/show/electronics/pulseview?expand=0&rev=8
This commit is contained in:
Stefan Brüns 2016-10-24 00:25:11 +00:00 committed by Git OBS Bridge
parent 3fa29ae88b
commit 1e0113514a
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?xml version="1.0" ?>
<component type="desktop">
<id>org.sigrok.Pulseview.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>Pulseview</name>
<summary>Logic analyzer, oscilloscope and MSO GUI</summary>
<description>
<p>PulseView is a Qt based logic analyzer, oscilloscope and MSO GUI for sigrok.</p>
<p>Features:</p>
<ul>
<li>Fast O(log N) signal rendering at all zoom levels</li>
<li>Protocol decoder support</li>
<li>Trace groups support</li>
</ul>
</description>
<url type="homepage">http://www.sigrok.org/wiki/Pulseview</url>
<url type="bugtracker">http://sigrok.org/bugzilla/enter_bug.cgi?format=guided&amp;product=Pulseview</url>
<screenshots>
<screenshot type="default">
<image>http://sigrok.org/wimg/e/ee/PulseView_I2C_DS1307_Decode.png</image>
</screenshot>
</screenshots>
<project_group>Sigrok</project_group>
<provides>
<binary>pulseview</binary>
</provides>
</component>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Oct 22 21:26:57 UTC 2016 - stefan.bruens@rwth-aachen.de
- Add org.sigrok.Pulseview.appdata.xml
- Install desktop file and icons for pulseview, register pulseview
as handler for application/x-sigrok-dump mimetype
-------------------------------------------------------------------
Tue Oct 11 23:29:37 UTC 2016 - stefan.bruens@rwth-aachen.de

View File

@ -24,6 +24,7 @@ License: GPL-3.0+
Group: Productivity/Scientific/Electronics
Url: http://sigrok.org
Source0: http://sigrok.org/download/source/pulseview/%{name}-%{version}.tar.gz
Source1: org.sigrok.Pulseview.appdata.xml
BuildRequires: boost-devel >= 1.53.0
BuildRequires: cmake
BuildRequires: glib2-devel
@ -36,6 +37,7 @@ BuildRequires: libqt4-devel
%endif
BuildRequires: libsigrok-devel >= 0.4.0
BuildRequires: libsigrokdecode-devel >= 0.4.0
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -58,10 +60,26 @@ make %{?_smp_mflags}
%cmake_install
find %{buildroot} -type f -name "*.la" -delete -print
install -m 644 -D icons/sigrok-logo-notext.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/pulseview.png
install -m 644 -D icons/sigrok-logo-notext.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/pulseview.svg
install -m 755 -d %{buildroot}%{_datadir}/applications/
install -m 644 contrib/pulseview.desktop %{buildroot}%{_datadir}/applications/org.sigrok.Pulseview.desktop
sed -i -e 's/Icon=.*/Icon=pulseview/' %{buildroot}%{_datadir}/applications/org.sigrok.Pulseview.desktop
sed -i -e 's/\(Icon.*\)/\1\nMimeType=application\/x-sigrok-dump;/' %{buildroot}%{_datadir}/applications/org.sigrok.Pulseview.desktop
%suse_update_desktop_file -r org.sigrok.Pulseview Education Engineering
install -m 755 -d %{buildroot}%{_datadir}/appdata/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/org.sigrok.Pulseview.appdata.xml
%files
%defattr(-,root,root,-)
%doc COPYING NEWS README HACKING
%{_bindir}/*
%{_mandir}/man1/pulseview.*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/pulseview*
%dir %{_datadir}/appdata
%{_datadir}/appdata/org.sigrok.Pulseview.appdata.xml
%changelog