avidemux-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. %define _pkgbuilddir %{_builddir}/%{name}_%{version}
  2. Name: avidemux
  3. Version: 2.5.2
  4. Release: 5%{?_dist_release}
  5. Summary: Graphical video editing and transcoding tool
  6. Group: Applications/Multimedia
  7. License: GPLv2+
  8. URL: http://www.avidemux.org/
  9. Source0: http://download.berlios.de/avidemux/avidemux_%{version}.tar.gz
  10. Source1: %{name}-gtk.desktop
  11. Source2: %{name}-qt.desktop
  12. # Patch0 obtained from avidemux-2.5.0-patches-1.tar.bz2:
  13. # http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/avidemux-2.5.0-patches-1.tar.bz2
  14. Patch0: 2.5.0-coreImage-parallel-build.patch
  15. Patch1: avidemux-2.5-pulseaudio-default.patch
  16. Patch2: avidemux-2.4-qt4.patch
  17. Patch3: avidemux-2.5-i18n.patch
  18. Patch4: avidemux-2.5-libmpeg2enc-altivec.patch
  19. Patch5: avidemux-2.5-checkfunction-includes.patch
  20. Patch6: avidemux-2.5.1-tmplinktarget.patch
  21. Patch7: avidemux-2.5.4-x264-X264_WEIGHTP_BLIND-fix.patch
  22. ## Vine customization patches
  23. Patch10: avidemux-2.4.3-alsa-device-default.patch
  24. Patch11: avidemux-2.5.2-no-qt4-ui.patch
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  26. Requires: %{name}-cli = %{version}
  27. Requires: %{name}-gui = %{version}
  28. Obsoletes: %{name}-qt < 2.5.0
  29. # *-devel pacages provided by other self-build-* should only be listed
  30. # in self-build-%{name}.spec as PreReq.
  31. # Compiling
  32. BuildRequires: cmake
  33. #BuildRequires: gettext-devel
  34. BuildRequires: gettext
  35. # Libraries
  36. BuildRequires: nasm >= 0.98.38
  37. BuildRequires: libxml2-devel >= 2.6.8
  38. BuildRequires: fontconfig-devel
  39. #BuildRequires: freetype-devel
  40. BuildRequires: freetype2-devel
  41. BuildRequires: js-devel
  42. BuildRequires: libXv-devel
  43. BuildRequires: libXmu-devel
  44. # Required by gtk: libXi-devel, libXext-devel, libX11-devel
  45. # Required by qt: libXt-devel, libXext-devel, libX11-devel
  46. BuildRequires: libsamplerate-devel
  47. BuildRequires: jack-audio-connection-kit-devel
  48. # Sound out
  49. BuildRequires: alsa-lib-devel >= 1.0.3
  50. BuildRequires: pulseaudio-libs-devel
  51. # Video out
  52. BuildRequires: SDL-devel >= 1.2.7
  53. # Audio Codecs
  54. #BuildRequires: a52dec-devel >= 0.7.4
  55. #BuildRequires: faac-devel >= 1.24
  56. #BuildRequires: faad2-devel >= 2.0
  57. #BuildRequires: lame-devel >= 3.96.1
  58. #BuildRequires: libmad-devel >= 0.15.1
  59. BuildRequires: libogg-devel >= 1.1
  60. BuildRequires: libvorbis-devel >= 1.0.1
  61. # BuildRequires: self-build-a52dec >= 0.7.4
  62. # BuildRequires: self-build-faac >= 1.24
  63. # BuildRequires: self-build-faad2 >= 2.0
  64. # BuildRequires: self-build-lame >= 3.96.1
  65. # BuildRequires: self-build-libmad >= 0.15.1
  66. #BuildRequires: libdca-devel
  67. # BuildRequires: self-build-libdca
  68. # Video Codecs
  69. #BuildRequires: xvidcore-devel >= 1.0.2
  70. #BuildRequires: x264-devel
  71. #BuildRequires: ffmpeg-devel
  72. # BuildRequires: self-build-xvidcore >= 1.0.2
  73. # BuildRequires: self-build-x264
  74. # BuildRequires: self-build-ffmpeg
  75. # FIXME: aften not packaged, add BR when it is
  76. # Finally...
  77. BuildRequires: desktop-file-utils
  78. %description
  79. Avidemux is a free video editor designed for simple cutting, filtering and
  80. encoding tasks. It supports many file types, including AVI, DVD compatible
  81. MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
  82. using projects, job queue and powerful scripting capabilities.
  83. For compatability reasons, avidemux is a meta-package which installs the
  84. graphical, command line and plugin packages. If you want a smaller setup,
  85. you may selectively install one or more of the avidemux-* subpackages.
  86. %package cli
  87. Summary: CLI for %{name}
  88. Group: Applications/Multimedia
  89. Requires: %{name} = %{version}-%{release}
  90. %description cli
  91. This package provides a command-line interface to editing videos with %{name}.
  92. %package gtk
  93. Summary: GTK interface for %{name}
  94. Group: Applications/Multimedia
  95. BuildRequires: gtk2-devel >= 2.8.0
  96. BuildRequires: cairo-devel
  97. # Slightly higher so it is default, but it can be avoided by installing
  98. # avidemux-qt directly or it can be removed later once avidemux-qt is installed
  99. Provides: %{name}-gui = %{version}-%{release}.1
  100. Requires: %{name} = %{version}-%{release}
  101. %description gtk
  102. This package provides the GTK graphical interface for %{name}.
  103. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  104. %package qt
  105. Summary: Qt interface for %{name}
  106. Group: Applications/Multimedia
  107. # 4.5.0-9 fixes a failure when there are duplicate translated strings
  108. # https://bugzilla.redhat.com/show_bug.cgi?id=491514
  109. BuildRequires: qt4-devel >= 4.5.0-9
  110. BuildRequires: qt4-designer
  111. Provides: %{name}-gui = %{version}-%{release}
  112. Requires: %{name} = %{version}-%{release}
  113. %description qt
  114. This package contains the Qt graphical interface for %{name}.
  115. %endif
  116. %package devel
  117. Summary: Development files for %{name}
  118. Group: Development/Libraries
  119. Requires: %{name} = %{version}-%{release}
  120. %description devel
  121. This package contains files required to develop with or extend %{name}.
  122. %prep
  123. %__rm -rf $RPM_BUILD_ROOT
  124. %setup -q -n avidemux_%{version}
  125. # change hardcoded libdir paths
  126. %ifarch x86_64 ppc64
  127. %__sed -i.bak 's/startDir="lib";/startDir="lib64";/' avidemux/ADM_core/src/ADM_fileio.cpp
  128. %__sed -i.bak 's/startDir="lib";/startDir="lib64";/' avidemux/main.cpp
  129. %endif
  130. %patch0 -p1 -b .parallel
  131. %patch1 -p1 -b .pulse
  132. #%patch2 -p1 -b .qt4
  133. %patch3 -p1 -b .i18n
  134. %patch4 -p1 -b .altivec
  135. %patch5 -p1 -b .cfincludes
  136. #%patch6 -p1 -b .tmplinktarget
  137. %patch7 -p1 -b .blind
  138. #%patch10 -p1 -b .alsa
  139. %{!?with_qt_ui:%patch11 -p1 -b .qt4}
  140. %build
  141. # Out of source build
  142. %__mkdir_p build && cd build
  143. %cmake -DAVIDEMUX_INSTALL_PREFIX=%{_prefix} \
  144. -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
  145. -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
  146. ..
  147. %__make %{?_smp_mflags}
  148. # Create the temp link directory manuall since otherwise it happens too early
  149. %__mkdir_p %{_pkgbuilddir}/build/%{_lib}
  150. find %{_pkgbuilddir}/build/avidemux -name '*.so*' | \
  151. xargs ln -sft %{_pkgbuilddir}/build/%{_lib}
  152. %__mkdir_p ../build_plugins && cd ../build_plugins
  153. %cmake -DAVIDEMUX_INSTALL_PREFIX="%{_pkgbuilddir}/build/" \
  154. -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
  155. -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
  156. ../plugins
  157. %__make %{?_smp_mflags}
  158. %install
  159. %__rm -rf $RPM_BUILD_ROOT
  160. # Temporary workaround since the i18n files aren't being built
  161. %__mkdir_p $RPM_BUILD_ROOT/%{_datadir}/%{name}
  162. %__make -C build install DESTDIR=$RPM_BUILD_ROOT
  163. %__make -C build_plugins install DESTDIR=$RPM_BUILD_ROOT
  164. # Install the build configuration for devel package
  165. %__install -d -m755 $RPM_BUILD_ROOT%{_includedir}
  166. %__install -m644 build/config/ADM_coreConfig.h $RPM_BUILD_ROOT%{_includedir}/ADM_coreConfig.h
  167. # Find and remove all la files
  168. find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
  169. # Install .desktop shortcuts
  170. desktop-file-install --vendor vine \
  171. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  172. %{SOURCE1}
  173. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  174. desktop-file-install --vendor vine \
  175. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  176. %{SOURCE2}
  177. %endif
  178. find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
  179. %find_lang %{name}
  180. %clean
  181. %__rm -rf $RPM_BUILD_ROOT
  182. %post -p /sbin/ldconfig
  183. %postun -p /sbin/ldconfig
  184. %files -f %{name}.lang
  185. %defattr(-,root,root,-)
  186. %doc AUTHORS COPYING README TODO
  187. %{_datadir}/%{name}/
  188. %{_datadir}/ADM_scripts/
  189. %{_libdir}/libADM*
  190. %{_libdir}/ADM_plugins/
  191. %files cli
  192. %defattr(-,root,root,-)
  193. %{_bindir}/avidemux2_cli
  194. %files gtk
  195. %defattr(-,root,root,-)
  196. %{_bindir}/avidemux2_gtk
  197. %{_datadir}/applications/*gtk*.desktop
  198. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  199. %files qt
  200. %defattr(-,root,root,-)
  201. #{_datadir}/%{name}/i18n/
  202. %{_bindir}/avidemux2_qt4
  203. %{_datadir}/applications/*qt*.desktop
  204. %endif
  205. %files devel
  206. %defattr(-,root,root,-)
  207. %{_includedir}/ADM_coreConfig.h
  208. %changelog
  209. * Wed Jul 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-5
  210. - dropped BuildRequires: esound-devel
  211. * Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.2-4
  212. - add Patch7 (avidemux-2.5.4-x264-X264_WEIGHTP_BLIND-fix.patch)
  213. * Sat Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-3
  214. - unapply avidemux-2.4-qt4.patch
  215. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
  216. - change release to sync with self-build-avidemux
  217. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
  218. - new upstream release
  219. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.4-1
  220. - new upstream release
  221. - update patches accordingly
  222. - build with x264 >= 0.0.0-9.20090522
  223. - dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
  224. * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
  225. - corrected release number
  226. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
  227. - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel
  228. - changed to PreReq: self-build-libmad >= 0.15.1 from libmad-devel
  229. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
  230. - change release to sync with self-build-avidemux
  231. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
  232. - added avidemux-x264.patch from Gentoo
  233. * Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
  234. - applied avidemux-2.4.3-alsa-device-default.patch
  235. * Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
  236. - initial build based on RPM Fusion of Fedora package
  237. - changed to BuildRequires: gettext from gettext-devel
  238. - added BuildRequires: qt4-designer for gtk subpackage
  239. - dropped avidemux-2.4.3-qt4.patch
  240. * Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-5
  241. - Add CMake patch for PPC64
  242. - Update patches for 2.4.3
  243. - Remove outdated libmad patch (Nov. 2007)
  244. * Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-4
  245. - Add another patch to fix ppc64 build (pointer type), first
  246. patch was for libmad
  247. * Fri Aug 22 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-3
  248. - Add patch to fix ppc64 build
  249. * Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-2
  250. - retag
  251. * Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-1
  252. - Update to 2.4.3
  253. * Tue Aug 12 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.2-3
  254. - ppc64 uint_32 fun
  255. * Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.4.2-2
  256. - rebuild
  257. * Sat Jul 19 2008 Thorsten Leemhuis <s.adam at diffingo.com> - 2.4.2-1
  258. - Update to 2.4.2
  259. * Wed May 21 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-3.20080521svn
  260. - Disable --new-faad
  261. - 20080521 subversion snapshot
  262. * Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-2
  263. - Disable %%{?_smp_mflags}
  264. * Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-1
  265. - Update to 2.4.1
  266. - Don't list the bin files twice, revisited
  267. - Default to GTK frontend
  268. * Wed Feb 20 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-6.20080126svn
  269. - Make pulseaudio default for sound out
  270. - Don't list the bin files twice
  271. - Don't build with arts support
  272. * Fri Feb 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-5.20080126svn
  273. - Don't list the .desktop files twice (bz#1870)
  274. - Oops, we should have %%{svndate}svn in release tag!
  275. * Sat Feb 2 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-4
  276. - F-8/F-7 x86_64 does seem to need --with-newfaad
  277. * Fri Feb 1 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-3
  278. - Update to version 2.4 (20080126svn) and include fixes from devel branch
  279. * Mon Jan 14 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-2
  280. - Fix many copy/paste errors and desktop file's Exec field
  281. * Sun Jan 13 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-1
  282. - Update to 2.4 final
  283. - Split up desktop files and make them pass desktop-file-validate
  284. - Add structure to split into gtk and qt pacakges
  285. - Disable qt4 for now, doesn't compile
  286. * Sun Oct 7 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info>3- 2.3.0-4.3
  287. - move js-include to a place where it is honored
  288. * Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.2
  289. - Fix macro problem
  290. - Fix changelog date
  291. - Rebuild with faad, but don't pass --newfaad
  292. * Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.1
  293. - Rebuild with no faad
  294. * Sat Oct 6 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4
  295. - Rebuild for ffmpeg dependency problems
  296. - Update License: tag per Fedora guidelines
  297. * Sat Jan 13 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-3
  298. - more features with new BR's: x264-devel libXv-devel
  299. - make a note regarding the libdca-devel problem
  300. - remove the "0:" from the versioned BR's
  301. * Thu Jan 04 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-2
  302. - don't use smp_mflags during make for now
  303. * Sat Dec 23 2006 kwizart < kwizart at gmail.com > - 2.3.0-1
  304. - Update to 2.3.0 Final
  305. - Use find_lang
  306. * Mon Apr 03 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.1.2-1
  307. - Update to 2.1.2
  308. * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  309. - switch to new release field
  310. * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  311. - add dist
  312. * Wed Jan 04 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.0-0.lvn.1
  313. - Update to 2.1.0
  314. - Drop epoch
  315. - gtk 2.6 now, so drop FC3 support
  316. * Sat Aug 27 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.3
  317. - Remove bogus BR ffmpeg-devel (#555)
  318. * Thu Jul 09 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.2
  319. - Add missing BR desktop-file-utils (thanks to ixs)
  320. * Thu Jul 07 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.1
  321. - Update to 2.0.42
  322. * Sat Jan 22 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.36-0.lvn.1
  323. - Update to 2.0.34
  324. - Rename package to avidemux -- no need for avidemux2 afaics
  325. * Sun Nov 21 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.34-0.lvn.1.test1
  326. - Update to 2.0.34-test1
  327. - BR gettext, libtool
  328. * Tue Oct 18 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.30-0.lvn.1
  329. - Initial RPM release.