]> git.pld-linux.org Git - packages/pulseview.git/blame - pulseview.spec
- rebuild with boost 1.71
[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
e54dc8a6 9Version: 0.4.0
bd52dcf1 10Release: 3
fb1b86d8 11License: GPL v3+
a4db7b1e 12Group: X11/Applications/Graphics
fb1b86d8 13Source0: http://sigrok.org/download/source/pulseview/%{name}-%{version}.tar.gz
e54dc8a6 14# Source0-md5: 122ded293913ec773cd34cb68b93e0f9
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
e54dc8a6
AM
20BuildRequires: libsigrok-c++-devel >= 0.5.0
21BuildRequires: libsigrok-devel >= 0.5.0
22BuildRequires: libsigrokdecode-devel >= 0.5.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
e54dc8a6 42Requires: libsigrokdecode >= 0.5.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
a4db7b1e
AM
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(644,root,root,755)
fb1b86d8 79%doc NEWS README
a4db7b1e
AM
80%attr(755,root,root) %{_bindir}/pulseview
81%{_mandir}/man1/pulseview.1*
e54dc8a6
AM
82%{_desktopdir}/org.sigrok.PulseView.desktop
83%{_iconsdir}/hicolor/*/apps/pulseview.png
84%{_iconsdir}/hicolor/*/apps/pulseview.svg
85%{_datadir}/metainfo/org.sigrok.PulseView.appdata.xml
This page took 0.07799 seconds and 4 git commands to generate.