[packages/pulseview] - initial

arekm arekm at pld-linux.org
Sat Mar 9 16:56:54 CET 2013


commit a4db7b1e2d0a49458be74b003c6ad65ebaa44598
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 9 16:56:37 2013 +0100

    - initial

 pulseview-build.patch | 11 ++++++++++
 pulseview.spec        | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
---
diff --git a/pulseview.spec b/pulseview.spec
new file mode 100644
index 0000000..6322fb7
--- /dev/null
+++ b/pulseview.spec
@@ -0,0 +1,58 @@
+#
+%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*
diff --git a/pulseview-build.patch b/pulseview-build.patch
new file mode 100644
index 0000000..d7bcb56
--- /dev/null
+++ b/pulseview-build.patch
@@ -0,0 +1,11 @@
+--- 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;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pulseview.git/commitdiff/a4db7b1e2d0a49458be74b003c6ad65ebaa44598



More information about the pld-cvs-commit mailing list