avidemux-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. %define _pkgbuilddir %{_builddir}/%{name}_%{version}
  2. Name: avidemux
  3. Version: 2.5.2
  4. Release: 2%{?_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. desktop-file-install --vendor vine \
  173. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  174. %{SOURCE2}
  175. find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
  176. %find_lang %{name}
  177. %clean
  178. %__rm -rf $RPM_BUILD_ROOT
  179. %post -p /sbin/ldconfig
  180. %postun -p /sbin/ldconfig
  181. %files -f %{name}.lang
  182. %defattr(-,root,root,-)
  183. %doc AUTHORS COPYING ChangeLog History README TODO
  184. %{_datadir}/%{name}/
  185. %{_datadir}/ADM_scripts/
  186. %{_libdir}/libADM*
  187. %{_libdir}/ADM_plugins/
  188. %files cli
  189. %defattr(-,root,root,-)
  190. %{_bindir}/avidemux2_cli
  191. %files gtk
  192. %defattr(-,root,root,-)
  193. %{_bindir}/avidemux2_gtk
  194. %{_datadir}/applications/*gtk*.desktop
  195. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  196. %files qt
  197. %defattr(-,root,root,-)
  198. #{_datadir}/%{name}/i18n/
  199. %{_bindir}/avidemux2_qt4
  200. %{_datadir}/applications/*qt*.desktop
  201. %endif
  202. %files devel
  203. %defattr(-,root,root,-)
  204. %{_includedir}/ADM_coreConfig.h
  205. %changelog
  206. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
  207. - change release to sync with self-build-avidemux
  208. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
  209. - new upstream release
  210. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.4-1
  211. - new upstream release
  212. - update patches accordingly
  213. - build with x264 >= 0.0.0-9.20090522
  214. - dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
  215. * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
  216. - corrected release number
  217. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
  218. - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel
  219. - changed to PreReq: self-build-libmad >= 0.15.1 from libmad-devel
  220. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
  221. - change release to sync with self-build-avidemux
  222. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
  223. - added avidemux-x264.patch from Gentoo
  224. * Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
  225. - applied avidemux-2.4.3-alsa-device-default.patch
  226. * Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
  227. - initial build based on RPM Fusion of Fedora package
  228. - changed to BuildRequires: gettext from gettext-devel
  229. - added BuildRequires: qt4-designer for gtk subpackage
  230. - dropped avidemux-2.4.3-qt4.patch
  231. * Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-5
  232. - Add CMake patch for PPC64
  233. - Update patches for 2.4.3
  234. - Remove outdated libmad patch (Nov. 2007)
  235. * Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-4
  236. - Add another patch to fix ppc64 build (pointer type), first
  237. patch was for libmad
  238. * Fri Aug 22 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-3
  239. - Add patch to fix ppc64 build
  240. * Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-2
  241. - retag
  242. * Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-1
  243. - Update to 2.4.3
  244. * Tue Aug 12 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.2-3
  245. - ppc64 uint_32 fun
  246. * Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.4.2-2
  247. - rebuild
  248. * Sat Jul 19 2008 Thorsten Leemhuis <s.adam at diffingo.com> - 2.4.2-1
  249. - Update to 2.4.2
  250. * Wed May 21 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-3.20080521svn
  251. - Disable --new-faad
  252. - 20080521 subversion snapshot
  253. * Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-2
  254. - Disable %%{?_smp_mflags}
  255. * Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-1
  256. - Update to 2.4.1
  257. - Don't list the bin files twice, revisited
  258. - Default to GTK frontend
  259. * Wed Feb 20 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-6.20080126svn
  260. - Make pulseaudio default for sound out
  261. - Don't list the bin files twice
  262. - Don't build with arts support
  263. * Fri Feb 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-5.20080126svn
  264. - Don't list the .desktop files twice (bz#1870)
  265. - Oops, we should have %%{svndate}svn in release tag!
  266. * Sat Feb 2 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-4
  267. - F-8/F-7 x86_64 does seem to need --with-newfaad
  268. * Fri Feb 1 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-3
  269. - Update to version 2.4 (20080126svn) and include fixes from devel branch
  270. * Mon Jan 14 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-2
  271. - Fix many copy/paste errors and desktop file's Exec field
  272. * Sun Jan 13 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-1
  273. - Update to 2.4 final
  274. - Split up desktop files and make them pass desktop-file-validate
  275. - Add structure to split into gtk and qt pacakges
  276. - Disable qt4 for now, doesn't compile
  277. * Sun Oct 7 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info>3- 2.3.0-4.3
  278. - move js-include to a place where it is honored
  279. * Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.2
  280. - Fix macro problem
  281. - Fix changelog date
  282. - Rebuild with faad, but don't pass --newfaad
  283. * Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.1
  284. - Rebuild with no faad
  285. * Sat Oct 6 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4
  286. - Rebuild for ffmpeg dependency problems
  287. - Update License: tag per Fedora guidelines
  288. * Sat Jan 13 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-3
  289. - more features with new BR's: x264-devel libXv-devel
  290. - make a note regarding the libdca-devel problem
  291. - remove the "0:" from the versioned BR's
  292. * Thu Jan 04 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-2
  293. - don't use smp_mflags during make for now
  294. * Sat Dec 23 2006 kwizart < kwizart at gmail.com > - 2.3.0-1
  295. - Update to 2.3.0 Final
  296. - Use find_lang
  297. * Mon Apr 03 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.1.2-1
  298. - Update to 2.1.2
  299. * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  300. - switch to new release field
  301. * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  302. - add dist
  303. * Wed Jan 04 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.0-0.lvn.1
  304. - Update to 2.1.0
  305. - Drop epoch
  306. - gtk 2.6 now, so drop FC3 support
  307. * Sat Aug 27 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.3
  308. - Remove bogus BR ffmpeg-devel (#555)
  309. * Thu Jul 09 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.2
  310. - Add missing BR desktop-file-utils (thanks to ixs)
  311. * Thu Jul 07 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.1
  312. - Update to 2.0.42
  313. * Sat Jan 22 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.36-0.lvn.1
  314. - Update to 2.0.34
  315. - Rename package to avidemux -- no need for avidemux2 afaics
  316. * Sun Nov 21 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.34-0.lvn.1.test1
  317. - Update to 2.0.34-test1
  318. - BR gettext, libtool
  319. * Tue Oct 18 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.30-0.lvn.1
  320. - Initial RPM release.