Overview

Request 5606 (accepted)

This is a new dependency of obs-studio!

Submit package home:frispete:branches:Multimedia / librist to package Multimedia / librist

librist.changes Added
x
 
1
@@ -0,0 +1,4 @@
2
+-------------------------------------------------------------------
3
+Sat Sep  3 09:55:28 UTC 2022 - ecsos <ecsos@opensuse.org>
4
+
5
+- Initial version 0.2.7
6
librist.spec Added
106
 
1
@@ -0,0 +1,104 @@
2
+#
3
+# spec file for package librist
4
+#
5
+# Copyright (c) 2022 SUSE LLC
6
+#
7
+# All modifications and additions to the file contributed by third parties
8
+# remain the property of their copyright owners, unless otherwise agreed
9
+# upon. The license for this file, and modifications and additions to the
10
+# file, is the same license as for the pristine package itself (unless the
11
+# license for the pristine package is not an Open Source License, in which
12
+# case the license is the MIT License). An "Open Source License" is a
13
+# license that conforms to the Open Source Definition (Version 1.9)
14
+# published by the Open Source Initiative.
15
+
16
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
17
+#
18
+
19
+
20
+%define sover   4
21
+%define libname %{name}%{sover}
22
+Name:           librist
23
+Version:        0.2.7
24
+Release:        0
25
+Summary:        Easily add the RIST protocol to your application
26
+License:        BSD-2-Clause
27
+URL:            https://code.videolan.org/rist/librist
28
+Source0:        https://code.videolan.org/rist/librist/-/archive/v%{version}/librist-v%{version}.tar.gz
29
+Group:          Development/Libraries/C and C++
30
+BuildRequires:  meson >= 0.47
31
+BuildRequires:  ninja
32
+BuildRequires:  pkgconfig
33
+BuildRequires:  chrpath
34
+#Requires:       
35
+
36
+%description
37
+A library that can be used to easily add the RIST protocol to your application.
38
+
39
+%package        -n %{libname}
40
+Summary:        Development files for %{name}
41
+Group:          System/Libraries
42
+
43
+%description    -n %{libname}
44
+A library that can be used to easily add the RIST protocol to your application.
45
+
46
+%package        devel
47
+Summary:        Development files for %{name}
48
+Group:          Development/Libraries/C and C++
49
+Requires:       %{libname} = %{version}
50
+
51
+%description    devel
52
+The %{name}-devel package contains libraries and header files for
53
+developing applications that use %{name}.
54
+
55
+%prep
56
+%setup -q -n %{name}-v%{version}
57
+
58
+%build
59
+mkdir build
60
+pushd build
61
+meson ..
62
+ninja
63
+popd
64
+
65
+%install
66
+mkdir -p %{buildroot}%{_bindir}
67
+mv  build/tools/rist2rist %{buildroot}%{_bindir}
68
+mv  build/tools/ristreceiver %{buildroot}%{_bindir}
69
+mv build/tools/ristsender %{buildroot}%{_bindir}
70
+mv build/tools/ristsrppasswd %{buildroot}%{_bindir}
71
+chrpath --delete %{buildroot}%{_bindir}/rist2rist
72
+chrpath --delete %{buildroot}%{_bindir}/ristreceiver
73
+chrpath --delete %{buildroot}%{_bindir}/ristsender
74
+chrpath --delete %{buildroot}%{_bindir}/ristsrppasswd
75
+mkdir -p %{buildroot}%{_libdir}
76
+mv build/librist.so %{buildroot}%{_libdir}
77
+mv build/librist.so.4 %{buildroot}%{_libdir}
78
+mv build/librist.so.4.2.0 %{buildroot}%{_libdir}
79
+mkdir -p %{buildroot}%{_includedir}
80
+chmod -x include/librist/*
81
+mv include/librist %{buildroot}%{_includedir}
82
+cp -r build/include/librist %{buildroot}%{_includedir}
83
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
84
+mv build/meson-private/librist.pc %{buildroot}%{_libdir}/pkgconfig
85
+sed -i -e 's|{prefix}\/lib|{prefix}\/lib64|g' %{buildroot}%{_libdir}/pkgconfig/librist.pc
86
+sed -i -e 's|{prefix}\/include|{prefix}\/include\/librist|g' %{buildroot}%{_libdir}/pkgconfig/librist.pc
87
+chmod -x docs/*
88
+
89
+%post -n %{libname} -p /sbin/ldconfig
90
+%postun -n %{libname} -p /sbin/ldconfig
91
+
92
+%files -n %{libname}
93
+%license COPYING
94
+%doc README.md
95
+%doc docs
96
+%{_bindir}/rist*
97
+%{_libdir}/*.so.*
98
+
99
+%files devel
100
+%doc CONTRIBUTING.md
101
+%{_includedir}/*
102
+%{_libdir}/*.so
103
+%{_libdir}/pkgconfig/*.pc
104
+
105
+%changelog
106
librist-v0.2.7.tar.gz Added
Refresh
Refresh
Request History
frispete's avatar

frispete created request over 2 years ago

This is a new dependency of obs-studio!


Stefan Seyfried's avatar

seife accepted request over 2 years ago

needed for obs-studio