]> git.pld-linux.org Git - packages/pulseview.git/blame - pulseview.spec
- use df
[packages/pulseview.git] / pulseview.spec
CommitLineData
a4db7b1e
AM
1#
2%bcond_with tests
3#
4%define snap a7553da
5#
6Summary: Qt based logic analyzer GUI for sigrok
7Name: pulseview
8Version: 0.1
9Release: 0.%{snap}.1
10License: GPL
11Group: X11/Applications/Graphics
ff2c772f
AM
12# Source0: http://sigrok.org/gitweb/?p=pulseview.git;a=snapshot;h=%{snap};sf=tgz;/%{name}-%{snap}.tar.gz
13Source0: %{name}-%{snap}.tar.gz
a4db7b1e
AM
14# Source0-md5: 52527a78a1ee676546d63615bf1c1c8d
15Patch0: %{name}-build.patch
16URL: http://sigrok.org/wiki/PulseView
17BuildRequires: boost-devel
18%{?with_tests:BuildRequires: boost-test}
19BuildRequires: boost-thread
20BuildRequires: glib2-devel
21BuildRequires: libsigrok-devel >= 0.2.0
22BuildRequires: libsigrokdecode-devel >= 0.1.0
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Qt based logic analyzer GUI for sigrok.
27
28%prep
29%setup -q -n %{name}-%{snap}
30%patch0 -p1
31
32%build
33install -d build
34cd build
35%cmake \
36 -DDISABLE_WERROR=ON \
37 %{?with_tests:-DENABLE_TESTS=ON} \
38 ../
39
40%{__make}
41
42%install
43rm -rf $RPM_BUILD_ROOT
44
45install -d $RPM_BUILD_ROOT%{_mandir}/man1
46
47%{__make} -C build install \
48 DESTDIR=$RPM_BUILD_ROOT
49
50install doc/pulseview.1 $RPM_BUILD_ROOT%{_mandir}/man1
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc HACKING README
58%attr(755,root,root) %{_bindir}/pulseview
59%{_mandir}/man1/pulseview.1*
This page took 0.034463 seconds and 4 git commands to generate.