]> git.pld-linux.org Git - packages/pulseview.git/blame - pulseview.spec
- rebuild with boost 1.63.0
[packages/pulseview.git] / pulseview.spec
CommitLineData
a4db7b1e 1#
fb1b86d8 2# Conditional build:
72996a30 3%bcond_with qt4 # use Qt 4 instead of Qt 5
ae557471 4%bcond_with tests # "make test" call (requires functional libusb, i.e. accessible USB subsystem)
a4db7b1e 5#
a4db7b1e 6Summary: Qt based logic analyzer GUI for sigrok
fb1b86d8 7Summary(pl.UTF-8): Oparty na Qt graficzny interfejs analizatora logicznego dla szkieletu sigrok
a4db7b1e 8Name: pulseview
315e5312 9Version: 0.3.0
e2750c9d 10Release: 4
fb1b86d8 11License: GPL v3+
a4db7b1e 12Group: X11/Applications/Graphics
fb1b86d8 13Source0: http://sigrok.org/download/source/pulseview/%{name}-%{version}.tar.gz
315e5312 14# Source0-md5: 2cd76988cbf2a74b383e30de27744016
a4db7b1e 15URL: http://sigrok.org/wiki/PulseView
72996a30
JB
16BuildRequires: boost-devel >= 1.53
17%{?with_tests:BuildRequires: boost-test >= 1.53}
18BuildRequires: cmake >= 2.8.6
fb1b86d8 19BuildRequires: glib2-devel >= 2.0
315e5312
AM
20BuildRequires: libsigrok-c++-devel >= 0.4.0
21BuildRequires: libsigrok-devel >= 0.4.0
22BuildRequires: libsigrokdecode-devel >= 0.4.0
72996a30 23BuildRequires: libstdc++-devel >= 6:4.7
b5d1febb 24BuildRequires: pkgconfig
72996a30
JB
25%if %{with qt4}
26BuildRequires: QtCore-devel >= 4
27BuildRequires: QtGui-devel >= 4
28BuildRequires: QtSvg-devel >= 4
29BuildRequires: qt4-build >= 4
fb1b86d8 30BuildRequires: qt4-qmake >= 4
72996a30
JB
31%else
32BuildRequires: Qt5Core-devel >= 5
33BuildRequires: Qt5Gui-devel >= 5
34BuildRequires: Qt5Svg-devel >= 5
35BuildRequires: Qt5Widgets-devel >= 5
36BuildRequires: qt5-build >= 5
37BuildRequires: qt5-qmake >= 5
d635cf29 38Requires: Qt5Gui-platform-xcb
72996a30 39%endif
315e5312
AM
40Requires: libsigrok >= 0.4.0
41Requires: libsigrok-c++-devel >= 0.4.0
42Requires: libsigrokdecode >= 0.4.0
a4db7b1e
AM
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46Qt based logic analyzer GUI for sigrok.
47
fb1b86d8
JB
48%description -l pl.UTF-8
49Oparty na Qt graficzny interfejs analizatora logicznego dla szkieletu
50sigrok.
51
a4db7b1e 52%prep
255d8529 53%setup -q
a4db7b1e
AM
54
55%build
56install -d build
57cd build
fb1b86d8 58%cmake .. \
a4db7b1e 59 -DDISABLE_WERROR=ON \
72996a30
JB
60 %{?with_tests:-DENABLE_TESTS=ON} \
61 %{?with_qt4:-DFORCE_QT4=ON}
a4db7b1e
AM
62
63%{__make}
64
c388b07e
AM
65%{?with_tests:%{__make} test}
66
a4db7b1e
AM
67%install
68rm -rf $RPM_BUILD_ROOT
a4db7b1e
AM
69install -d $RPM_BUILD_ROOT%{_mandir}/man1
70
71%{__make} -C build install \
72 DESTDIR=$RPM_BUILD_ROOT
73
fb1b86d8
JB
74install -D contrib/pulseview.desktop $RPM_BUILD_ROOT%{_desktopdir}/pulseview.desktop
75install -D icons/sigrok-logo-notext.png $RPM_BUILD_ROOT%{_pixmapsdir}/sigrok-logo-notext.png
a4db7b1e
AM
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%files
81%defattr(644,root,root,755)
fb1b86d8 82%doc NEWS README
a4db7b1e
AM
83%attr(755,root,root) %{_bindir}/pulseview
84%{_mandir}/man1/pulseview.1*
fb1b86d8
JB
85%{_desktopdir}/pulseview.desktop
86%{_pixmapsdir}/sigrok-logo-notext.png
This page took 0.141689 seconds and 4 git commands to generate.