File obs-studio.spec of Package obs-studio (Revision 6874471a29076e2a19ee299d3d0ea906)
Currently displaying revision 6874471a29076e2a19ee299d3d0ea906 , Show latest
105
1
Name: obs-studio
2
Version: 21.1.2
3
Release: 0
4
Summary: A recording/broadcasting program
5
Group: Productivity/Multimedia/Video/Editors and Convertors
6
License: GPL-2.0
7
URL: https://obsproject.com/
8
Source: %{name}-%{version}.tar.xz
9
BuildRoot: %{_tmppath}/%{name}-%{version}-build
10
BuildRequires: update-desktop-files
11
BuildRequires: cmake >= 2.8.12
12
BuildRequires: fontconfig-devel
13
BuildRequires: freetype2-devel
14
BuildRequires: gcc
15
BuildRequires: gcc-c++
16
BuildRequires: hicolor-icon-theme
17
BuildRequires: libXcomposite-devel
18
BuildRequires: libXinerama-devel
19
BuildRequires: libXrandr-devel
20
BuildRequires: libcurl-devel
21
BuildRequires: libjansson-devel
22
BuildRequires: libpulse-devel
23
BuildRequires: libqt5-qtbase-devel >= 5.3
24
BuildRequires: libqt5-qtx11extras-devel >= 5.3
25
BuildRequires: libudev-devel
26
BuildRequires: libv4l-devel
27
BuildRequires: libx264-devel
28
BuildRequires: pkgconfig
29
BuildRequires: pkgconfig(jack)
30
BuildRequires: pkgconfig(libavcodec)
31
BuildRequires: pkgconfig(libavdevice)
32
BuildRequires: pkgconfig(libavfilter)
33
BuildRequires: pkgconfig(libavformat)
34
BuildRequires: pkgconfig(libavutil)
35
BuildRequires: pkgconfig(libswresample)
36
BuildRequires: pkgconfig(libswscale)
37
38
%description
39
Open Broadcaster Software is free and open source software for video recording and live streaming.
40
41
%package devel
42
Summary: A recording/broadcasting program - Development Files
43
Group: Development/Multimedia
44
Requires: %{name} = %{version}
45
46
%description devel
47
Open Broadcaster Software is free and open source software for video recording and live streaming.
48
49
%prep
50
%setup -q
51
52
%build
53
mkdir -p build && cd build
54
# does not like cmake macro as it fails to link in math.h (-lm)
55
cmake \
56
-DUNIX_STRUCTURE=1 \
57
-DCMAKE_INSTALL_PREFIX=/usr \
58
-DOBS_VERSION_OVERRIDE="$(echo "%{version}" | grep -oE "^[^+]+")" \
59
..
60
61
%install
62
%cmake_install
63
64
# fix lib package locations which are inconsistent since they are 64bit libs, but placed in lib/
65
%ifarch x86_64
66
mkdir -p %{buildroot}%{_libdir}/obs-plugins
67
# needs obs-plugins in lib/ even though 64bit
68
# mv %%{buildroot}/usr/lib/obs-plugins/* %%{buildroot}%%{_libdir}/obs-plugins
69
mv %{buildroot}/usr/lib/libobs*.so* %{buildroot}%{_libdir}
70
%endif
71
72
%suse_update_desktop_file obs
73
74
%post
75
/sbin/ldconfig
76
%icon_theme_cache_postun
77
78
%postun
79
/sbin/ldconfig
80
%icon_theme_cache_postun
81
82
%files
83
%defattr(-, root, root)
84
%{_bindir}/obs
85
# needs obs-plugins in lib/ even though 64bit
86
%{_libexecdir}/obs-plugins
87
%{_libdir}/libobs.so.0
88
%{_libdir}/libobs-frontend-api.so.*
89
%{_libdir}/libobs-opengl.so.*
90
%{_libdir}/libobsglad.so.0
91
%{_datadir}/applications/obs.desktop
92
%{_datadir}/icons/hicolor/256x256/apps/obs.png
93
%{_datadir}/obs
94
95
%files devel
96
%defattr(-, root, root)
97
%{_libexecdir}/cmake
98
%{_libdir}/libobs.so
99
%{_libdir}/libobs-frontend-api.so
100
%{_libdir}/libobs-opengl.so
101
%{_libdir}/libobsglad.so
102
%{_includedir}/obs
103
104
%changelog
105