]>
Commit | Line | Data |
---|---|---|
1 | Summary: Reliable Internet Stream Transport (RIST) | |
2 | Summary(pl.UTF-8): Reliable Internet Stream Transport (RIST) - niezawodny internetowy protokół strumieniowy | |
3 | Name: librist | |
4 | Version: 0.2.0 | |
5 | %define subver RC6 | |
6 | %define rel 1 | |
7 | Release: 0.%{subver}.%{rel} | |
8 | License: BSD | |
9 | Group: Libraries | |
10 | #Source0Download: https://code.videolan.org/rist/librist/-/tags | |
11 | Source0: https://code.videolan.org/rist/librist/-/archive/v%{version}-%{subver}/librist-v%{version}-%{subver}.tar.bz2 | |
12 | # Source0-md5: 87a7b2b7c6ed885b7b1ff71e940b2df6 | |
13 | URL: https://code.videolan.org/rist/librist | |
14 | BuildRequires: cjson-devel | |
15 | BuildRequires: meson >= 0.51.0 | |
16 | BuildRequires: ninja >= 1.5 | |
17 | BuildRequires: lz4-devel | |
18 | BuildRequires: mbedtls-devel | |
19 | BuildRequires: rpmbuild(macros) >= 1.736 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | A library that can be used to easily add the RIST protocol to your | |
24 | application. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Biblioteka, za pomocą której można łatwo dodać do swojej aplikacji | |
28 | obsługę protokołu RIST. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for RIST library | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RIST | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | Requires: cjson-devel | |
36 | Requires: lz4-devel | |
37 | Requires: mbedtls-devel | |
38 | ||
39 | %description devel | |
40 | Header files for RIST library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki RIST. | |
44 | ||
45 | %package static | |
46 | Summary: Static RIST library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka RIST | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static RIST library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka RIST. | |
56 | ||
57 | %prep | |
58 | %setup -q -n librist-v%{version}-%{subver} | |
59 | ||
60 | %build | |
61 | %meson build \ | |
62 | -Dfallback_builtin=false | |
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) | |
79 | %doc COPYING NEWS README.md THANKS.md | |
80 | %attr(755,root,root) %{_bindir}/rist2rist | |
81 | %attr(755,root,root) %{_bindir}/ristreceiver | |
82 | %attr(755,root,root) %{_bindir}/ristsender | |
83 | %attr(755,root,root) %{_bindir}/ristsrppasswd | |
84 | %attr(755,root,root) %{_libdir}/librist.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/librist.so.4 | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_libdir}/librist.so | |
90 | %{_includedir}/librist | |
91 | %{_pkgconfigdir}/librist.pc | |
92 | ||
93 | %files static | |
94 | %defattr(644,root,root,755) | |
95 | %{_libdir}/librist.a |