Advertisement
Guest User

Untitled

a guest
Jul 19th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.24 KB | None | 0 0
  1. Name: HandBrake
  2. Version: 0.10.2
  3. Release: 1%{?dist}
  4. Summary: An open-source multiplatform video transcoder
  5. License: GPLv2+
  6. URL: http://handbrake.fr/
  7.  
  8. Source0: http://download.handbrake.fr/handbrake/releases/%{version}/%{name}-%{version}.tar.bz2
  9.  
  10. # The project fetches libraries to bundle in the executable at compile time; to
  11. # have them available before building, proceed as follows. All files will be
  12. # available in the "download" folder.
  13. #
  14. # ./configure
  15. # cd build
  16. # make contrib.fetch
  17.  
  18. Source10: http://download.handbrake.fr/contrib/libav-v10.1.tar.bz2
  19. Source11: http://download.handbrake.fr/contrib/fdk-aac-v0.1.1-6-gbae4553.tar.bz2
  20. Source12: http://download.handbrake.fr/contrib/x265-9329-0d30d2641875-1.5.tar.bz2
  21.  
  22. BuildRequires: a52dec-devel >= 0.7.4
  23. BuildRequires: cmake
  24. BuildRequires: bzip2-devel
  25. BuildRequires: dbus-glib-devel
  26. BuildRequires: desktop-file-utils
  27. BuildRequires: fontconfig-devel
  28. BuildRequires: freetype-devel
  29. BuildRequires: fribidi-devel
  30. BuildRequires: gstreamer1-devel
  31. BuildRequires: gstreamer1-plugins-base-devel
  32. BuildRequires: intltool
  33. BuildRequires: lame-devel >= 3.98
  34. BuildRequires: libappindicator-gtk3-devel
  35. BuildRequires: libass-devel
  36. BuildRequires: libbluray-devel >= 0.2.3
  37. BuildRequires: libdvdnav-devel >= 5.0.1
  38. BuildRequires: libdvdread-devel >= 5.0.0
  39. BuildRequires: libgudev1-devel
  40. BuildRequires: libmpeg2-devel >= 0.5.1
  41. BuildRequires: libnotify-devel
  42. BuildRequires: libogg-devel
  43. BuildRequires: librsvg2-devel
  44. BuildRequires: libsamplerate-devel
  45. BuildRequires: libtheora-devel
  46. BuildRequires: libtool
  47. BuildRequires: libvorbis-devel
  48. BuildRequires: libvpx-devel
  49. BuildRequires: libxml2-devel
  50. BuildRequires: m4
  51. BuildRequires: make
  52. BuildRequires: patch
  53. BuildRequires: python
  54. BuildRequires: subversion
  55. BuildRequires: tar
  56. BuildRequires: webkitgtk3-devel
  57. BuildRequires: wget
  58. BuildRequires: x264-devel
  59. BuildRequires: yasm
  60. BuildRequires: zlib-devel
  61. Requires: hicolor-icon-theme
  62.  
  63. %description
  64. %{name} is a general-purpose, free, open-source, cross-platform, multithreaded
  65. video transcoder software application. It can process most common multimedia
  66. files and any DVD or Bluray sources that do not contain any kind of copy
  67. protection.
  68.  
  69. %package gui
  70. Summary: An open-source multiplatform video transcoder (GUI)
  71. Obsoletes: HandBrake < %{version}-%{release}
  72. Provides: HandBrake = %{version}-%{release}
  73. Requires: hicolor-icon-theme
  74. Requires: libdvdcss%{_isa}
  75.  
  76. %description gui
  77. %{name} is a general-purpose, free, open-source, cross-platform, multithreaded
  78. video transcoder software application. It can process most common multimedia
  79. files and any DVD or Bluray sources that do not contain any kind of copy
  80. protection.
  81.  
  82. This package contains the main program with a graphical interface.
  83.  
  84. %package cli
  85. Summary: An open-source multiplatform video transcoder (CLI)
  86. Requires: libdvdcss%{_isa}
  87.  
  88. %description cli
  89. %{name} is a general-purpose, free, open-source, cross-platform, multithreaded
  90. video transcoder software application. It can process most common multimedia
  91. files and any DVD or Bluray sources that do not contain any kind of copy
  92. protection.
  93.  
  94. This package contains the command line version of the program.
  95.  
  96. %prep
  97. %setup -q
  98.  
  99. mkdir -p download
  100. cp %{SOURCE10} %{SOURCE11} %{SOURCE12} download
  101.  
  102. # Use system libraries in place of bundled ones
  103. for module in a52dec libdvdnav libdvdread libbluray libvpx; do
  104. sed -i -e "/MODULES += contrib\/$module/d" make/include/main.defs
  105. done
  106.  
  107. %build
  108. # This makes build stop if any download is attempted
  109. export http_proxy=http://127.0.0.1
  110.  
  111. # By default the project is built with optimizations for speed and no debug.
  112. # Override configure settings by passing RPM_OPT_FLAGS and disabling preset
  113. # debug options.
  114. echo "GCC.args.O.speed = ${RPM_OPT_FLAGS}" > custom.defs
  115. echo "GCC.args.g.none = " >> custom.defs
  116.  
  117. # Not an autotools configure script.
  118. # Flags for qsv (Intel QuickSync) and hwd (DXVA) are Windows only.
  119. ./configure \
  120. --build build \
  121. --prefix=%{_prefix} \
  122. --verbose \
  123. --disable-gtk-update-checks
  124.  
  125. make -C build #%{?_smp_mflags}
  126.  
  127. %install
  128. %make_install -C build
  129. desktop-file-validate %{buildroot}/%{_datadir}/applications/ghb.desktop
  130. %find_lang ghb
  131.  
  132. %post gui
  133. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  134. /usr/bin/update-desktop-database &> /dev/null || :
  135.  
  136. %postun gui
  137. if [ $1 -eq 0 ] ; then
  138. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  139. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  140. fi
  141. /usr/bin/update-desktop-database &> /dev/null || :
  142.  
  143. %posttrans gui
  144. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  145.  
  146. %files -f ghb.lang gui
  147. %doc AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS
  148. %{_bindir}/ghb
  149. %{_datadir}/applications/ghb.desktop
  150. %{_datadir}/icons/hicolor/scalable/apps/hb-icon.svg
  151.  
  152. %files cli
  153. %doc AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS
  154. %{_bindir}/HandBrakeCLI
  155.  
  156. %changelog
  157. * Thu Jun 11 2015 Simone Caronni <negativo17@gmail.com> - 0.10.2-1
  158. - Update to 0.10.2.
  159. - Use handbrake.fr URL for source 0.
  160.  
  161. * Mon Mar 09 2015 Simone Caronni <negativo17@gmail.com> - 0.10.1-1
  162. - Update to 0.10.1.
  163.  
  164. * Mon Jan 26 2015 Simone Caronni <negativo17@gmail.com> - 0.10.0-12
  165. - Fix huge icons problem.
  166.  
  167. * Wed Nov 26 2014 Simone Caronni <negativo17@gmail.com> - 0.10.0-11
  168. - Update to 0.10.0 official release.
  169.  
  170. * Wed Nov 05 2014 Simone Caronni <negativo17@gmail.com> - 0.10-10.svn6507
  171. - Update to SVN revision 6507.
  172.  
  173. * Mon Nov 03 2014 Simone Caronni <negativo17@gmail.com> - 0.10-9.svn6502
  174. - Update to SVN revision 6502.
  175.  
  176. * Fri Oct 24 2014 Simone Caronni <negativo17@gmail.com> - 0.10-8.svn6461
  177. - Update to SVN revision 6461.
  178.  
  179. * Fri Oct 10 2014 Simone Caronni <negativo17@gmail.com> - 0.10-7.svn6439
  180. - Update to SVN revision 6439.
  181.  
  182. * Fri Oct 03 2014 Simone Caronni <negativo17@gmail.com> - 0.10-6.svn6422
  183. - Update to SVN revision 6430.
  184.  
  185. * Sun Sep 28 2014 Simone Caronni <negativo17@gmail.com> - 0.10-5.svn6422
  186. - Update to SVN revision 6422.
  187.  
  188. * Mon Sep 08 2014 Simone Caronni <negativo17@gmail.com> - 0.10-4.svn6404
  189. - Update to SVN revision 6404.
  190. - Update libdvdread and libdvdnav requirements.
  191.  
  192. * Mon Sep 08 2014 Simone Caronni <negativo17@gmail.com> - 0.10-3.svn6394
  193. - Update to SVN revision 6394.
  194.  
  195. * Mon Sep 01 2014 Simone Caronni <negativo17@gmail.com> - 0.10-2.svn6386
  196. - Update to svn revision 6386; new x265 presets.
  197. - Update x265 libraries.
  198.  
  199. * Sat Aug 23 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-17.svn6304
  200. - Update to svn revision 6351. HandBrake version is now 0.10:
  201. https://trac.handbrake.fr/milestone/HandBrake%200.10
  202. - Lame and x264 libraries are now linked by default.
  203. - Remove mkv, mpeg2dec and libmkv as they are no longer used.
  204. - LibAV is now enabled by default.
  205. - Add libappindicator-gtk3 build requirement.
  206.  
  207. * Sun Aug 17 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-16.svn6304
  208. - Update to 6304 snapshot.
  209.  
  210. * Wed Aug 06 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-15.svn6268
  211. - Update to latest snapshot.
  212.  
  213. * Wed Jul 30 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-14.svn6244
  214. - Updated to latest snapshot.
  215. - Enable avformat muxer, replaces libmkv and mp4v2 support.
  216. - Requires libdvdnav >= 5.0.0 to fix crashes.
  217. - Remove ExclusiveArch.
  218.  
  219. * Sat Jul 05 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-13.svn6227
  220. - Updated to SVN snapshot.
  221. - Remove RHEL 6 conditionals.
  222.  
  223. * Tue Mar 25 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-12
  224. - Backport DVD changes from trunk (should fix libdvdnav crashes with specific
  225. DVD titles).
  226. - Use system ffpmeg 2 libraries in place of bundled libav.
  227.  
  228. * Mon Mar 17 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-11
  229. - Fix crash on Fedora.
  230.  
  231. * Fri Mar 14 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-10
  232. - Use system libdvdnav/libdvdread.
  233.  
  234. * Mon Dec 23 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-9
  235. - Use system libraries for libbluray, lame, mpeg2dec, a52dec (patch), libmkv
  236. (patch), x264 (faac, fdk-aac, libav, libdvdnav, libdvdread and mp4v2 are still
  237. bundled).
  238. - Use Fedora compiler options.
  239. - Use GStreamer 1.x on Fedora and RHEL/CentOS 7.
  240. - Add fdk-aac support.
  241.  
  242. * Mon Dec 23 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-8
  243. - Scriptlets need to run for gui subpackage and not base package. Thanks to
  244. Peter Oliver.
  245.  
  246. * Mon Sep 09 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-7
  247. - Add requirement on libdvdcss, fix hicolor-icon-theme requirement.
  248.  
  249. * Fri Jul 26 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-6
  250. - Enable building CLI only on CentOS/RHEL 6.
  251. - Disable GTK update checks (updates come only packaged).
  252.  
  253. * Tue Jul 23 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-5
  254. - Enable command line interface only for CentOS/RHEL 6.
  255.  
  256. * Thu May 30 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-4
  257. - Updated x264 to r2282-1db4621 (stable branch) to fix Fedora 19 crash issues.
  258.  
  259. * Mon May 20 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-3
  260. - Update to 0.9.9.
  261. - Separate GUI and CLI packages.
  262.  
  263. * Sat May 11 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-2.5449svn
  264. - Updated.
  265.  
  266. * Wed May 01 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-1.5433svn
  267. - First build.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement