]> git.pld-linux.org Git - packages/pulseview.git/commitdiff
- initial
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 9 Mar 2013 15:56:37 +0000 (16:56 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 9 Mar 2013 15:56:37 +0000 (16:56 +0100)
pulseview-build.patch [new file with mode: 0644]
pulseview.spec [new file with mode: 0644]

diff --git a/pulseview-build.patch b/pulseview-build.patch
new file mode 100644 (file)
index 0000000..d7bcb56
--- /dev/null
@@ -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;
diff --git a/pulseview.spec b/pulseview.spec
new file mode 100644 (file)
index 0000000..6322fb7
--- /dev/null
@@ -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*
This page took 0.034063 seconds and 4 git commands to generate.