SHARE
TWEET

obs-studio-fixing.spec

mroche Mar 16th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Python36 required for Python scripting
  2. %global __python /usr/bin/python36
  3.  
  4. Name:       obs-studio
  5. Version:    23.0.2
  6. Release:    1%{?dist}
  7. Summary:    Open Broadcaster Software Studio
  8. License:    GPLv2+
  9.  
  10. Source:     obs-studio-23.0.2.tar.gz
  11.  
  12. URL:        https://obsproject.com/
  13.  
  14. BuildRequires: gcc
  15. BuildRequires: gcc-c++
  16. BuildRequires: gcc-objc
  17. BuildRequires: cmake3
  18. BuildRequires: make
  19. BuildRequires: tar
  20. BuildRequires: gzip
  21. BuildRequires: doxygen
  22. BuildRequires: libX11-devel
  23. BuildRequires: libXcomposite-devel
  24. BuildRequires: libXinerama-devel
  25. BuildRequires: libXres-devel
  26. BuildRequires: libXcursor-devel
  27. BuildRequires: libXdmcp-devel
  28. BuildRequires: libXi-devel
  29. BuildRequires: libXft-devel
  30. BuildRequires: libXmu-devel
  31. BuildRequires: libXpm-devel
  32. BuildRequires: libXrandr-devel
  33. BuildRequires: libXScrnSaver-devel
  34. BuildRequires: libXv-devel
  35. BuildRequires: libXxf86misc-devel
  36. BuildRequires: libxkbfile-devel
  37. BuildRequires: mesa-libGL-devel
  38. BuildRequires: mesa-libGLU-devel
  39. BuildRequires: libglvnd-devel
  40. BuildRequires: libv4l-devel
  41. BuildRequires: pulseaudio-libs-devel
  42. BuildRequires: x264-devel
  43. BuildRequires: x265-devel
  44. BuildRequires: freetype-devel
  45. BuildRequires: fontconfig-devel
  46. BuildRequires: qt5-qtbase-devel
  47. BuildRequires: qt5-qtx11extras-devel
  48. BuildRequires: libcurl-devel
  49. BuildRequires: systemd-devel
  50. BuildRequires: ffmpeg-devel >= 3.4.5
  51. BuildRequires: python36-devel
  52. BuildRequires: luajit-devel
  53. BuildRequires: swig
  54. BuildRequires: jack-audio-connection-kit-devel
  55. BuildRequires: alsa-lib-devel
  56. BuildRequires: vlc-devel
  57. BuildRequires: mbedtls-devel
  58. BuildRequires: speex-devel
  59. BuildRequires: jansson-devel
  60. BuildRequires: fdk-aac-devel
  61. BuildRequires: dbus-devel
  62. BuildRequires: ImageMagick-devel
  63. BuildRequires: ImageMagick-c++-devel
  64. BuildRequires: desktop-file-utils
  65. Requires: x264
  66. Requires: x265
  67. Requires: freetype
  68. Requires: fontconfig
  69. Requires: mesa-libGL
  70. Requires: mesa-libGLU
  71. Requires: qt5-qtbase
  72. Requires: qt5-qtx11extras
  73. Requires: ffmpeg >= 3.4.5
  74. Requires: fdk-aac
  75. Requires: luajit
  76. Requires: jack-audio-connection-kit
  77. Requires: mbedtls
  78. Requires: jansson
  79. Requires: hicolor-icon-theme
  80.  
  81. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  82.  
  83. %description
  84. OBS Studio is software designed for capturing, compositing,
  85. encoding, recording, and streaming video content, efficiently.
  86.  
  87. %package libs
  88. Summary: Libraries for OBS Studio
  89.  
  90. %description libs
  91. Library objects for Open Broadcaster Software Studio
  92.  
  93. %package devel
  94. Summary: Header files for OBS Studio development
  95. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  96.  
  97. %description devel
  98. Development files and objects for Open Broadcaster Software Studio
  99.  
  100. %package doc
  101. Summary: HTML documentation for OBS Studio
  102. Requires: %{name}-devel%{?_isa} = %{version}-%{release}
  103. BuildArch: noarch
  104.  
  105. %description doc
  106. Doxygen generated HTML documentation for Open Broadcaster Software Studio
  107.  
  108. %prep
  109. %setup -q
  110.  
  111. %build
  112. mkdir build
  113. cd build
  114.  
  115. cmake3 -G "Unix Makefiles" \
  116.   -DUNIX_STRUCTURE=1 \
  117.   -DCMAKE_BUILD_TYPE=Release \
  118.   -DVLC_LIB=/usr/lib64/libvlc.so \
  119.   -DCMAKE_INSTALL_PREFIX=%{_prefix} \
  120.   -DOBS_VERSION_OVERRIDE=%{version}-%{release} \
  121.   ../
  122.  
  123. %make_build
  124.  
  125. cd ..
  126. doxygen Doxyfile
  127.  
  128. %install
  129. %make_install -C build
  130. desktop-file-validate %{buildroot}/%{_datadir}/applications/obs.desktop
  131.  
  132.  
  133. %files
  134. %license COPYING
  135. %{_bindir}/obs
  136. %{_datadir}/applications/obs.desktop
  137. %{_datadir}/icons/hicolor/256x256/apps/obs.png
  138. %{_datadir}/obs/*
  139.  
  140. %files libs
  141. %{_libdir}/obs-plugins
  142. %{_libdir}/obs-scripting
  143. %{_libdir}/libobs*.so.0
  144. %{_libdir}/libobs*.so.0.0
  145. %{_libdir}/libobs-scripting.so
  146.  
  147. %files devel
  148. %{_libdir}/pkgconfig/libobs.pc
  149. %{_includedir}/obs
  150. %{_libdir}/libobs.so
  151. %{_libdir}/libobsglad.so
  152. %{_libdir}/libobs-frontend-api.so
  153. %{_libdir}/libobs-opengl.so
  154. %{_libdir}/cmake/LibObs
  155.  
  156. %files doc
  157. %license COPYING
  158. %docs docs/html
  159.  
  160. %changelog
  161. * Sat Mar 16 2019 Michael Rochefort <mike@michaelrochefort.com> - 23.0.2-1
  162. - Submitting 23.0.2 for review
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top