avidemux-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. %define _pkgbuilddir %{_builddir}/%{name}_%{version}
  2. Name: avidemux
  3. Version: 2.5.2
  4. Release: 3%{?_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. ## Vine customization patches
  22. Patch10: avidemux-2.4.3-alsa-device-default.patch
  23. Patch11: avidemux-2.5.2-no-qt4-ui.patch
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  25. Requires: %{name}-cli = %{version}
  26. Requires: %{name}-gui = %{version}
  27. Obsoletes: %{name}-qt < 2.5.0
  28. # *-devel pacages provided by other self-build-* should only be listed
  29. # in self-build-%{name}.spec as PreReq.
  30. # Compiling
  31. BuildRequires: cmake
  32. #BuildRequires: gettext-devel
  33. BuildRequires: gettext
  34. # Libraries
  35. BuildRequires: nasm >= 0.98.38
  36. BuildRequires: libxml2-devel >= 2.6.8
  37. BuildRequires: fontconfig-devel
  38. #BuildRequires: freetype-devel
  39. BuildRequires: freetype2-devel
  40. BuildRequires: js-devel
  41. BuildRequires: libXv-devel
  42. BuildRequires: libXmu-devel
  43. # Required by gtk: libXi-devel, libXext-devel, libX11-devel
  44. # Required by qt: libXt-devel, libXext-devel, libX11-devel
  45. BuildRequires: libsamplerate-devel
  46. BuildRequires: jack-audio-connection-kit-devel
  47. # Sound out
  48. BuildRequires: alsa-lib-devel >= 1.0.3
  49. BuildRequires: esound-devel >= 0.2.0
  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. #%patch10 -p1 -b .alsa
  138. %{!?with_qt_ui:%patch11 -p1 -b .qt4}
  139. %build
  140. # Out of source build
  141. %__mkdir_p build && cd build
  142. %cmake -DAVIDEMUX_INSTALL_PREFIX=%{_prefix} \
  143. -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
  144. -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
  145. ..
  146. %__make %{?_smp_mflags}
  147. # Create the temp link directory manuall since otherwise it happens too early
  148. %__mkdir_p %{_pkgbuilddir}/build/%{_lib}
  149. find %{_pkgbuilddir}/build/avidemux -name '*.so*' | \
  150. xargs ln -sft %{_pkgbuilddir}/build/%{_lib}
  151. %__mkdir_p ../build_plugins && cd ../build_plugins
  152. %cmake -DAVIDEMUX_INSTALL_PREFIX="%{_pkgbuilddir}/build/" \
  153. -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
  154. -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
  155. ../plugins
  156. %__make %{?_smp_mflags}
  157. %install
  158. %__rm -rf $RPM_BUILD_ROOT
  159. # Temporary workaround since the i18n files aren't being built
  160. %__mkdir_p $RPM_BUILD_ROOT/%{_datadir}/%{name}
  161. %__make -C build install DESTDIR=$RPM_BUILD_ROOT
  162. %__make -C build_plugins install DESTDIR=$RPM_BUILD_ROOT
  163. # Install the build configuration for devel package
  164. %__install -d -m755 $RPM_BUILD_ROOT%{_includedir}
  165. %__install -m644 build/config/ADM_coreConfig.h $RPM_BUILD_ROOT%{_includedir}/ADM_coreConfig.h
  166. # Find and remove all la files
  167. find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
  168. # Install .desktop shortcuts
  169. desktop-file-install --vendor vine \
  170. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  171. %{SOURCE1}
  172. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  173. desktop-file-install --vendor vine \
  174. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  175. %{SOURCE2}
  176. %endif
  177. find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
  178. %find_lang %{name}
  179. %clean
  180. %__rm -rf $RPM_BUILD_ROOT
  181. %post -p /sbin/ldconfig
  182. %postun -p /sbin/ldconfig
  183. %files -f %{name}.lang
  184. %defattr(-,root,root,-)
  185. %doc AUTHORS COPYING README TODO
  186. %{_datadir}/%{name}/
  187. %{_datadir}/ADM_scripts/
  188. %{_libdir}/libADM*
  189. %{_libdir}/ADM_plugins/
  190. %files cli
  191. %defattr(-,root,root,-)
  192. %{_bindir}/avidemux2_cli
  193. %files gtk
  194. %defattr(-,root,root,-)
  195. %{_bindir}/avidemux2_gtk
  196. %{_datadir}/applications/*gtk*.desktop
  197. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  198. %files qt
  199. %defattr(-,root,root,-)
  200. #{_datadir}/%{name}/i18n/
  201. %{_bindir}/avidemux2_qt4
  202. %{_datadir}/applications/*qt*.desktop
  203. %endif
  204. %files devel
  205. %defattr(-,root,root,-)
  206. %{_includedir}/ADM_coreConfig.h
  207. %changelog
  208. * Sat Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-3
  209. - unapply avidemux-2.4-qt4.patch
  210. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
  211. - change release to sync with self-build-avidemux
  212. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
  213. - new upstream release
  214. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.4-1
  215. - new upstream release
  216. - update patches accordingly
  217. - build with x264 >= 0.0.0-9.20090522
  218. - dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
  219. * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
  220. - corrected release number
  221. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
  222. - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel
  223. - changed to PreReq: self-build-libmad >= 0.15.1 from libmad-devel
  224. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
  225. - change release to sync with self-build-avidemux
  226. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
  227. - added avidemux-x264.patch from Gentoo
  228. * Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
  229. - applied avidemux-2.4.3-alsa-device-default.patch
  230. * Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
  231. - initial build based on RPM Fusion of Fedora package
  232. - changed to BuildRequires: gettext from gettext-devel
  233. - added BuildRequires: qt4-designer for gtk subpackage
  234. - dropped avidemux-2.4.3-qt4.patch
  235. * Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-5
  236. - Add CMake patch for PPC64
  237. - Update patches for 2.4.3
  238. - Remove outdated libmad patch (Nov. 2007)
  239. * Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-4
  240. - Add another patch to fix ppc64 build (pointer type), first
  241. patch was for libmad
  242. * Fri Aug 22 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-3
  243. - Add patch to fix ppc64 build
  244. * Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-2
  245. - retag
  246. * Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-1
  247. - Update to 2.4.3
  248. * Tue Aug 12 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.2-3
  249. - ppc64 uint_32 fun
  250. * Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.4.2-2
  251. - rebuild
  252. * Sat Jul 19 2008 Thorsten Leemhuis <s.adam at diffingo.com> - 2.4.2-1
  253. - Update to 2.4.2
  254. * Wed May 21 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-3.20080521svn
  255. - Disable --new-faad
  256. - 20080521 subversion snapshot
  257. * Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-2
  258. - Disable %%{?_smp_mflags}
  259. * Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-1
  260. - Update to 2.4.1
  261. - Don't list the bin files twice, revisited
  262. - Default to GTK frontend
  263. * Wed Feb 20 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-6.20080126svn
  264. - Make pulseaudio default for sound out
  265. - Don't list the bin files twice
  266. - Don't build with arts support
  267. * Fri Feb 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-5.20080126svn
  268. - Don't list the .desktop files twice (bz#1870)
  269. - Oops, we should have %%{svndate}svn in release tag!
  270. * Sat Feb 2 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-4
  271. - F-8/F-7 x86_64 does seem to need --with-newfaad
  272. * Fri Feb 1 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-3
  273. - Update to version 2.4 (20080126svn) and include fixes from devel branch
  274. * Mon Jan 14 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-2
  275. - Fix many copy/paste errors and desktop file's Exec field
  276. * Sun Jan 13 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-1
  277. - Update to 2.4 final
  278. - Split up desktop files and make them pass desktop-file-validate
  279. - Add structure to split into gtk and qt pacakges
  280. - Disable qt4 for now, doesn't compile
  281. * Sun Oct 7 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info>3- 2.3.0-4.3
  282. - move js-include to a place where it is honored
  283. * Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.2
  284. - Fix macro problem
  285. - Fix changelog date
  286. - Rebuild with faad, but don't pass --newfaad
  287. * Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.1
  288. - Rebuild with no faad
  289. * Sat Oct 6 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4
  290. - Rebuild for ffmpeg dependency problems
  291. - Update License: tag per Fedora guidelines
  292. * Sat Jan 13 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-3
  293. - more features with new BR's: x264-devel libXv-devel
  294. - make a note regarding the libdca-devel problem
  295. - remove the "0:" from the versioned BR's
  296. * Thu Jan 04 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-2
  297. - don't use smp_mflags during make for now
  298. * Sat Dec 23 2006 kwizart < kwizart at gmail.com > - 2.3.0-1
  299. - Update to 2.3.0 Final
  300. - Use find_lang
  301. * Mon Apr 03 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.1.2-1
  302. - Update to 2.1.2
  303. * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  304. - switch to new release field
  305. * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  306. - add dist
  307. * Wed Jan 04 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.0-0.lvn.1
  308. - Update to 2.1.0
  309. - Drop epoch
  310. - gtk 2.6 now, so drop FC3 support
  311. * Sat Aug 27 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.3
  312. - Remove bogus BR ffmpeg-devel (#555)
  313. * Thu Jul 09 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.2
  314. - Add missing BR desktop-file-utils (thanks to ixs)
  315. * Thu Jul 07 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.1
  316. - Update to 2.0.42
  317. * Sat Jan 22 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.36-0.lvn.1
  318. - Update to 2.0.34
  319. - Rename package to avidemux -- no need for avidemux2 afaics
  320. * Sun Nov 21 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.34-0.lvn.1.test1
  321. - Update to 2.0.34-test1
  322. - BR gettext, libtool
  323. * Tue Oct 18 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.30-0.lvn.1
  324. - Initial RPM release.