]>
Commit | Line | Data |
---|---|---|
d9514a85 JB |
1 | Summary: Basic hardware access for logic analyzers - command line tool |
2 | Summary(pl.UTF-8): Podstawowy dostęp do sprzętu dla analizatorów logicznych - narzędzie linii poleceń | |
a470ef3b | 3 | Name: sigrok-cli |
a999f620 | 4 | Version: 0.7.1 |
d057d519 | 5 | Release: 1 |
a470ef3b | 6 | License: GPL v3+ |
d0310a7d | 7 | Group: Applications/Science |
a999f620 JB |
8 | Source0: https://sigrok.org/download/source/sigrok-cli/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 3f45ce664bad529d8b3f78a61b017d75 | |
10 | URL: https://sigrok.org/wiki/Sigrok-cli | |
d9514a85 JB |
11 | BuildRequires: autoconf >= 2.63 |
12 | BuildRequires: automake >= 1:1.11 | |
4f42bc29 | 13 | BuildRequires: glib2-devel >= 1:2.32.0 |
94e5a1f4 AM |
14 | BuildRequires: libsigrok-devel >= 0.5.0 |
15 | BuildRequires: libsigrokdecode-devel >= 0.5.0 | |
d9514a85 JB |
16 | BuildRequires: libtool >= 2:2 |
17 | BuildRequires: pkgconfig >= 1:0.22 | |
a999f620 | 18 | Requires(post,postun): desktop-file-utils |
4f42bc29 | 19 | Requires: glib2 >= 1:2.32.0 |
94e5a1f4 AM |
20 | Requires: libsigrok >= 0.5.0 |
21 | Requires: libsigrokdecode >= 0.5.0 | |
5d44b3db | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a470ef3b AM |
23 | |
24 | %description | |
d0310a7d JB |
25 | sigrok-cli is a command-line tool written in C, which uses both |
26 | libsigrok and libsigrokdecode to provide the basic sigrok | |
27 | functionality from the command-line. Among other things, it is useful | |
28 | for scripting purposes. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | sigrok-cli to napisane w C narzędzie linii poleceń, wykorzystujące | |
32 | biblioteki libsigrok oraz libsigrokdecode dla zapewnienia podstawowej | |
33 | funkcjonalności sigrok z linii poleceń. Jest przydatne między innymi | |
34 | do tworzenia skryptów. | |
a470ef3b AM |
35 | |
36 | %prep | |
9ddd4622 | 37 | %setup -q |
a470ef3b AM |
38 | |
39 | %build | |
39ef7039 | 40 | %{__libtoolize} |
4f42bc29 | 41 | %{__aclocal} -I m4 |
39ef7039 | 42 | %{__autoconf} |
4f42bc29 | 43 | %{__autoheader} |
39ef7039 | 44 | %{__automake} |
a470ef3b | 45 | %configure \ |
a470ef3b AM |
46 | --disable-silent-rules |
47 | ||
48 | %{__make} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
a999f620 | 52 | |
a470ef3b AM |
53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
a999f620 JB |
59 | %post |
60 | %update_desktop_database | |
61 | %update_icon_cache hicolor | |
62 | ||
63 | %postun | |
64 | %update_desktop_database | |
65 | %update_icon_cache hicolor | |
66 | ||
a470ef3b AM |
67 | %files |
68 | %defattr(644,root,root,755) | |
d9514a85 | 69 | %doc ChangeLog NEWS README |
a470ef3b | 70 | %attr(755,root,root) %{_bindir}/sigrok-cli |
a999f620 JB |
71 | %{_desktopdir}/org.sigrok.sigrok-cli.desktop |
72 | %{_iconsdir}/hicolor/scalable/apps/sigrok-cli.svg | |
a470ef3b | 73 | %{_mandir}/man1/sigrok-cli.1* |