Advertisement
mroche

obs-studio.spec

Mar 5th, 2019
3,588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name:       obs-studio
  2. Version:    23.0.1
  3. Release:    1%{?dist}
  4. Summary:    Open Broadcaster Software Studio
  5. License:    GPLv2+
  6.  
  7. URL:        https://obsproject.com/
  8. ExclusiveArch: x86_64
  9.  
  10. BuildRequires: gcc
  11. BuildRequires: gcc-c++
  12. BuildRequires: gcc-objc
  13. BuildRequires: cmake
  14. BuildRequires: git
  15. BuildRequires: autoconf
  16. BuildRequires: automake
  17. BuildRequires: make
  18. BuildRequires: patch
  19. BuildRequires: libX11-devel
  20. BuildRequires: libXcomposite-devel
  21. BuildRequires: libXinerama-devel
  22. BuildRequires: libXres-devel
  23. BuildRequires: libXcursor-devel
  24. BuildRequires: libXdmcp-devel
  25. BuildRequires: libXi-devel
  26. BuildRequires: libXft-devel
  27. BuildRequires: libXmu-devel
  28. BuildRequires: libXpm-devel
  29. BuildRequires: libXrandr-devel
  30. BuildRequires: libXScrnSaver-devel
  31. BuildRequires: libXv-devel
  32. BuildRequires: libXxf86misc-devel
  33. BuildRequires: libxkbfile-devel
  34. BuildRequires: mesa-libGL-devel
  35. BuildRequires: mesa-libGLU-devel
  36. BuildRequires: libglvnd-devel
  37. BuildRequires: libv4l-devel
  38. BuildRequires: pulseaudio-libs-devel
  39. BuildRequires: x264-devel
  40. BuildRequires: x265-devel
  41. BuildRequires: freetype-devel
  42. BuildRequires: fontconfig-devel
  43. BuildRequires: qt5-qtbase-devel
  44. BuildRequires: qt5-qtx11extras-devel
  45. BuildRequires: libcurl-devel
  46. BuildRequires: systemd-devel
  47. BuildRequires: ffmpeg-devel
  48. BuildRequires: luajit-devel
  49. BuildRequires: swig
  50. BuildRequires: jack-audio-connection-kit-devel
  51. BuildRequires: alsa-lib-devel
  52. BuildRequires: vlc-devel
  53. BuildRequires: mbedtls-devel
  54. BuildRequires: speex-devel
  55. BuildRequires: jansson-devel
  56. BuildRequires: fdk-aac-devel
  57. BuildRequires: dbus-devel
  58. BuildRequires: ImageMagick-devel
  59. BuildRequires: ImageMagick-c++-devel
  60. Requires: libglvnd
  61. Requires: libglvnd-egl
  62. Requires: libglvnd-gles
  63. Requires: libglvnd-glx
  64. Requires: libglvnd-opengl
  65. Requires: libv4l
  66. Requires: pulseaudio-libs
  67. Requires: x264
  68. Requires: x264-libs
  69. Requires: x265
  70. Requires: x265-libs
  71. Requires: freetype
  72. Requires: fontconfig
  73. Requires: libX11
  74. Requires: libXcomposite
  75. Requires: libXinerama
  76. Requires: libXi
  77. Requires: mesa-libGL
  78. Requires: mesa-libGLU
  79. Requires: qt5-qtbase
  80. Requires: qt5-qtx11extras
  81. Requires: ffmpeg
  82. Requires: fdk-aac
  83. Requires: luajit
  84. Requires: jack-audio-connection-kit
  85. Requires: alsa-lib
  86. Requires: mbedtls
  87. Requires: jansson
  88.  
  89. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  90.  
  91. %description
  92. OBS Studio is software designed for capturing, compositing,
  93. encoding, recording, and streaming video content, efficiently.
  94.  
  95. %package libs
  96. Summary: Libraries for OBS Studio
  97.  
  98. %description libs
  99. Library objects for Open Broadcaster Software Studio
  100.  
  101. %package devel
  102. Summary: Header files for OBS Studio development
  103. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  104.  
  105. %description devel
  106. Development files for Open Broadcaster Software Studio
  107.  
  108. %prep
  109. rm -rf obs-studio
  110. git clone -b %{version} https://github.com/obsproject/obs-studio.git
  111. cd obs-studio
  112. git submodule update --init --recursive
  113.  
  114. %build
  115. cd obs-studio
  116. mkdir build
  117. cd build
  118.  
  119. cmake -G "Unix Makefiles" \
  120.   -DUNIX_STRUCTURE=1 \
  121.   -DCMAKE_INSTALL_PREFIX=/usr \
  122.   -DDISABLE_SCRIPTING=On \
  123.   -DCMAKE_BUILD_TYPE=Release \
  124.   -DVLC_LIB=/usr/lib64/libvlc.so \
  125.   -DOBS_VERSION_OVERRIDE=%{version}-%{release} \
  126.   ../
  127.  
  128. make
  129.  
  130. %install
  131. cd obs-studio/build
  132. %make_install
  133.  
  134. cd %{buildroot}/usr
  135. mv lib lib64
  136.  
  137. %clean
  138. rm -rf %{buildroot}
  139.  
  140. %files
  141. %{_bindir}/*
  142. %{_datadir}/applications
  143. %{_datadir}/icons
  144. %{_datadir}/obs
  145.  
  146. %files libs
  147. %{_libdir}/obs-plugins
  148. %{_libdir}/obs-scripting
  149. %{_libdir}/pkgconfig
  150. %{_libdir}/libobs*
  151.  
  152. %files devel
  153. %{_includedir}/*
  154. %{_libdir}/cmake
  155.  
  156. %changelog
  157. * Tue Mar 05 2019 Michael Rochefort <mike@michaelrochefort.com> - 23.0.1-1
  158. - Submitting 23.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement