--- /dev/null
+--- pulseview-a7553da/pv/sigsession.cpp~ 2013-03-09 16:09:28.000000000 +0100
++++ pulseview-a7553da/pv/sigsession.cpp 2013-03-09 16:45:26.008835730 +0100
+@@ -172,7 +172,7 @@
+ void SigSession::feed_in_header(const sr_dev_inst *sdi)
+ {
+ shared_ptr<view::Signal> signal;
+- uint64_t *sample_rate;
++ uint64_t *sample_rate = 0;
+ unsigned int logic_probe_count = 0;
+ unsigned int analog_probe_count = 0;
+
--- /dev/null
+#
+%bcond_with tests
+#
+%define snap a7553da
+#
+Summary: Qt based logic analyzer GUI for sigrok
+Name: pulseview
+Version: 0.1
+Release: 0.%{snap}.1
+License: GPL
+Group: X11/Applications/Graphics
+Source0: http://sigrok.org/gitweb/?p=pulseview.git;a=snapshot;h=%{snap};sf=tgz;/%{name}-%{snap}.tar.gz
+# Source0-md5: 52527a78a1ee676546d63615bf1c1c8d
+Patch0: %{name}-build.patch
+URL: http://sigrok.org/wiki/PulseView
+BuildRequires: boost-devel
+%{?with_tests:BuildRequires: boost-test}
+BuildRequires: boost-thread
+BuildRequires: glib2-devel
+BuildRequires: libsigrok-devel >= 0.2.0
+BuildRequires: libsigrokdecode-devel >= 0.1.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Qt based logic analyzer GUI for sigrok.
+
+%prep
+%setup -q -n %{name}-%{snap}
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake \
+ -DDISABLE_WERROR=ON \
+ %{?with_tests:-DENABLE_TESTS=ON} \
+ ../
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install doc/pulseview.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc HACKING README
+%attr(755,root,root) %{_bindir}/pulseview
+%{_mandir}/man1/pulseview.1*