]> git.pld-linux.org Git - packages/pulseview.git/blame - pulseview.spec
- rel 0.3
[packages/pulseview.git] / pulseview.spec
CommitLineData
a4db7b1e 1#
c388b07e 2%bcond_without tests
a4db7b1e
AM
3#
4%define snap a7553da
5#
6Summary: Qt based logic analyzer GUI for sigrok
7Name: pulseview
8Version: 0.1
5d1aeed1 9Release: 0.%{snap}.3
a4db7b1e
AM
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
b5d1febb 20BuildRequires: cmake
a4db7b1e
AM
21BuildRequires: glib2-devel
22BuildRequires: libsigrok-devel >= 0.2.0
23BuildRequires: libsigrokdecode-devel >= 0.1.0
b5d1febb 24BuildRequires: pkgconfig
a4db7b1e
AM
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Qt based logic analyzer GUI for sigrok.
29
30%prep
31%setup -q -n %{name}-%{snap}
32%patch0 -p1
33
34%build
35install -d build
36cd build
37%cmake \
38 -DDISABLE_WERROR=ON \
39 %{?with_tests:-DENABLE_TESTS=ON} \
40 ../
41
42%{__make}
43
c388b07e
AM
44%{?with_tests:%{__make} test}
45
a4db7b1e
AM
46%install
47rm -rf $RPM_BUILD_ROOT
48
49install -d $RPM_BUILD_ROOT%{_mandir}/man1
50
51%{__make} -C build install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54install doc/pulseview.1 $RPM_BUILD_ROOT%{_mandir}/man1
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc HACKING README
62%attr(755,root,root) %{_bindir}/pulseview
63%{_mandir}/man1/pulseview.1*
This page took 0.096727 seconds and 4 git commands to generate.