]>
Commit | Line | Data |
---|---|---|
c7abafb4 JP |
1 | Summary: C implementation of the varlink protocol and command line tool |
2 | Name: libvarlink | |
3 | Version: 23 | |
4 | Release: 1 | |
5 | License: Apache v2.0 | |
6 | Group: Libraries | |
7 | Source0: https://github.com/varlink/libvarlink/archive/%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: f5fb14310ba55a67c1927cef41e759ad | |
9 | URL: http://varlink.org | |
10 | BuildRequires: meson >= 0.40 | |
11 | BuildRequires: ninja | |
12 | BuildRequires: rpm-build >= 4.6 | |
13 | BuildRequires: rpmbuild(macros) >= 1.736 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | varlink is an interface description format and protocol that aims to | |
18 | make services accessible to both humans and machines in the simplest | |
19 | feasible way. | |
20 | ||
21 | A varlink interface combines the classic UNIX command line options, | |
22 | STDIN/OUT/ERROR text formats, man pages, service metadata and provides | |
23 | the equivalent over a single file descriptor, a.k.a. “FD3”. | |
24 | ||
25 | varlink is plain-text, type-safe, discoverable, self-documenting, | |
26 | remotable, testable, easy to debug. varlink is accessible from any | |
27 | programming environment. | |
28 | ||
29 | This package provides varlink C library and command line tool. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for libvarlink library | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for libvarlink library. | |
38 | ||
39 | %package -n bash-completion-varlink | |
40 | Summary: bash-completion for varlink | |
41 | Group: Applications/Shells | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: bash-completion >= 1:2.0 | |
44 | BuildArch: noarch | |
45 | ||
46 | %description -n bash-completion-varlink | |
47 | bash-completion for varlink. | |
48 | ||
49 | %package -n vim-plugin-varlink | |
50 | Summary: varlink integration for Vim | |
51 | Group: Applications/Editors/Vim | |
52 | Requires: vim-rt | |
53 | BuildArch: noarch | |
54 | ||
55 | %description -n vim-plugin-varlink | |
56 | varlink integration for Vim. | |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | ||
61 | %build | |
62 | %meson build | |
63 | ||
64 | %ninja_build -C build | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %ninja_install -C build | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
7102b719 | 79 | %doc README.md |
c7abafb4 JP |
80 | %attr(755,root,root) %{_bindir}/varlink |
81 | %attr(755,root,root) %{_libdir}/libvarlink.so.0 | |
82 | ||
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_libdir}/libvarlink.so | |
86 | %{_includedir}/varlink.h | |
87 | %{_pkgconfigdir}/libvarlink.pc | |
88 | ||
89 | %files -n bash-completion-varlink | |
90 | %defattr(644,root,root,755) | |
91 | %{bash_compdir}/varlink | |
92 | ||
93 | %files -n vim-plugin-varlink | |
94 | %defattr(644,root,root,755) | |
95 | %{_datadir}/vim/vimfiles/after/ftdetect/varlink.vim | |
96 | %{_datadir}/vim/vimfiles/after/ftplugin/varlink.vim | |
97 | %{_datadir}/vim/vimfiles/after/syntax/varlink.vim |