File obs-studio.spec of Package obs-studio (Revision beab80804460ba9677ed25081231f5ac)

Currently displaying revision beab80804460ba9677ed25081231f5ac , Show latest

116
 
1
Name:           obs-studio
2
Version:        25.0.4
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:  fdk-aac-devel
13
BuildRequires:  fontconfig-devel
14
BuildRequires:  freetype2-devel
15
BuildRequires:  gcc
16
BuildRequires:  gcc-c++
17
BuildRequires:  hicolor-icon-theme
18
BuildRequires:  libXcomposite-devel
19
BuildRequires:  libXinerama-devel
20
BuildRequires:  libXrandr-devel
21
BuildRequires:  libcurl-devel
22
BuildRequires:  libjansson-devel
23
BuildRequires:  libpulse-devel
24
BuildRequires:  libqt5-qtbase-devel >= 5.3
25
BuildRequires:  libqt5-qtsvg-devel
26
BuildRequires:  libqt5-qtx11extras-devel >= 5.3
27
BuildRequires:  libudev-devel
28
BuildRequires:  libv4l-devel
29
BuildRequires:  libx264-devel
30
BuildRequires:  mbedtls-devel
31
BuildRequires:  pkgconfig
32
BuildRequires:  pkgconfig(jack)
33
# Restricted to avoid segfault on Tumbleweed:
34
# - https://bugs.links2linux.org/browse/PM-143
35
# - https://obsproject.com/mantis/view.php?id=1315
36
BuildRequires:  pkgconfig(libavcodec) = 57.107.100
37
BuildRequires:  pkgconfig(libavdevice) = 57.10.100
38
BuildRequires:  pkgconfig(libavfilter) = 6.107.100
39
BuildRequires:  pkgconfig(libavformat) = 57.83.100
40
BuildRequires:  pkgconfig(libavutil) = 55.78.100
41
BuildRequires:  pkgconfig(libswresample) = 2.9.100
42
BuildRequires:  pkgconfig(libswscale) = 4.8.100
43
BuildRequires:  python3-devel
44
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
45
BuildRequires:  speexdsp-devel
46
%endif
47
BuildRequires:  swig
48
BuildRequires:  vlc-devel
49
ExclusiveArch:  i586 x86_64
50
51
%description
52
Open Broadcaster Software is free and open source software for video recording and live streaming.
53
54
%package devel
55
Summary:        A recording/broadcasting program - Development Files
56
Group:          Development/Multimedia
57
Requires:       %{name} = %{version}
58
59
%description devel
60
Open Broadcaster Software is free and open source software for video recording and live streaming.
61
62
%prep
63
%setup -q
64
65
%build
66
mkdir -p build && cd build
67
# does not like cmake macro as it fails to link in math.h (-lm)
68
cmake \
69
  -DUNIX_STRUCTURE=1 \
70
  -DCMAKE_INSTALL_PREFIX=/usr \
71
  -DOBS_VERSION_OVERRIDE="$(echo "%{version}" | grep -oE "^[^+]+")" \
72
  ..
73
74
%install
75
%cmake_install
76
%suse_update_desktop_file com.obsproject.Studio
77
78
%post
79
/sbin/ldconfig
80
%icon_theme_cache_postun
81
82
%postun
83
/sbin/ldconfig
84
%icon_theme_cache_postun
85
86
%files
87
%defattr(-, root, root)
88
%{_bindir}/obs
89
%{_bindir}/obs-ffmpeg-mux
90
# Upstream forces libs dir regardless of arch and building plugins is encumbered
91
# by moving them to the proper directory.
92
%{_libexecdir}/obs-plugins
93
%{_libexecdir}/libobs.so.0
94
%{_libexecdir}/libobs-frontend-api.so.*
95
%{_libexecdir}/libobs-opengl.so.*
96
%{_libexecdir}/libobs-scripting.so
97
%{_libexecdir}/obs-scripting
98
%{_libexecdir}/libobsglad.so.0
99
%dir %{_datadir}/metainfo
100
%{_datadir}/metainfo/com.obsproject.Studio.appdata.xml
101
%{_datadir}/applications/com.obsproject.Studio.desktop
102
%{_datadir}/icons/hicolor/256x256/apps/com.obsproject.Studio.png
103
%{_datadir}/obs
104
105
%files devel
106
%defattr(-, root, root)
107
%{_libexecdir}/cmake
108
%{_libexecdir}/libobs.so
109
%{_libexecdir}/libobs-frontend-api.so
110
%{_libexecdir}/libobs-opengl.so
111
%{_libexecdir}/libobsglad.so
112
%{_libdir}/pkgconfig/libobs.pc
113
%{_includedir}/obs
114
115
%changelog
116