]>
Commit | Line | Data |
---|---|---|
23bbe2f9 JB |
1 | Summary: Reliable Internet Stream Transport (RIST) |
2 | Summary(pl.UTF-8): Reliable Internet Stream Transport (RIST) - niezawodny internetowy protokół strumieniowy | |
3 | Name: librist | |
e5417406 | 4 | Version: 0.2.10 |
d62eba6d | 5 | Release: 1 |
23bbe2f9 JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | #Source0Download: https://code.videolan.org/rist/librist/-/tags | |
575e8d3d | 9 | Source0: https://code.videolan.org/rist/librist/-/archive/v%{version}/librist-v%{version}.tar.bz2 |
e5417406 | 10 | # Source0-md5: eaeec0397468014f51e182a2509632ba |
23bbe2f9 JB |
11 | URL: https://code.videolan.org/rist/librist |
12 | BuildRequires: cjson-devel | |
e5417406 | 13 | BuildRequires: libmicrohttpd-devel |
23bbe2f9 JB |
14 | BuildRequires: meson >= 0.51.0 |
15 | BuildRequires: ninja >= 1.5 | |
ac2d1813 | 16 | # disabled in sources (as of 0.2.6) |
575e8d3d | 17 | #BuildRequires: lz4-devel |
e5417406 | 18 | # or gnutls with -Duse_mbledtls=false -Duse_gnutls=true |
d62eba6d | 19 | BuildRequires: mbedtls-devel |
23bbe2f9 JB |
20 | BuildRequires: rpmbuild(macros) >= 1.736 |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | A library that can be used to easily add the RIST protocol to your | |
25 | application. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Biblioteka, za pomocą której można łatwo dodać do swojej aplikacji | |
29 | obsługę protokołu RIST. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for RIST library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RIST | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: cjson-devel | |
575e8d3d | 37 | #Requires: lz4-devel |
d62eba6d | 38 | Requires: mbedtls-devel |
23bbe2f9 JB |
39 | |
40 | %description devel | |
41 | Header files for RIST library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki RIST. | |
45 | ||
46 | %package static | |
47 | Summary: Static RIST library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka RIST | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static RIST library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka RIST. | |
57 | ||
58 | %prep | |
575e8d3d | 59 | %setup -q -n librist-v%{version} |
23bbe2f9 JB |
60 | |
61 | %build | |
62 | %meson build \ | |
63 | -Dfallback_builtin=false | |
64 | ||
65 | %ninja_build -C build | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %ninja_install -C build | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc COPYING NEWS README.md THANKS.md | |
81 | %attr(755,root,root) %{_bindir}/rist2rist | |
82 | %attr(755,root,root) %{_bindir}/ristreceiver | |
83 | %attr(755,root,root) %{_bindir}/ristsender | |
84 | %attr(755,root,root) %{_bindir}/ristsrppasswd | |
85 | %attr(755,root,root) %{_libdir}/librist.so.*.*.* | |
86 | %attr(755,root,root) %ghost %{_libdir}/librist.so.4 | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/librist.so | |
91 | %{_includedir}/librist | |
92 | %{_pkgconfigdir}/librist.pc | |
93 | ||
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/librist.a |