|
@@ -1,8 +1,8 @@
|
|
|
%define _pkgbuilddir %{_builddir}/%{name}_%{version}
|
|
|
|
|
|
Name: avidemux
|
|
|
-Version: 2.5.2
|
|
|
-Release: 5%{?_dist_release}
|
|
|
+Version: 2.5.5
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Summary: Graphical video editing and transcoding tool
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
@@ -16,21 +16,35 @@ Source2: %{name}-qt.desktop
|
|
|
Patch0: 2.5.0-coreImage-parallel-build.patch
|
|
|
Patch1: avidemux-2.5-pulseaudio-default.patch
|
|
|
Patch2: avidemux-2.4-qt4.patch
|
|
|
-Patch3: avidemux-2.5-i18n.patch
|
|
|
-Patch4: avidemux-2.5-libmpeg2enc-altivec.patch
|
|
|
-Patch5: avidemux-2.5-checkfunction-includes.patch
|
|
|
-Patch6: avidemux-2.5.1-tmplinktarget.patch
|
|
|
-Patch7: avidemux-2.5.4-x264-X264_WEIGHTP_BLIND-fix.patch
|
|
|
+# Prevents avidemux from creating the symlinks for .so files, which we do below
|
|
|
+Patch3: avidemux-2.5.3-tmplinktarget.patch
|
|
|
+# libADM_xvidRateCtl.so and libADM_vidEnc_pluginOptions.so are supposed to be
|
|
|
+# build statically according to upstream... Let's get them installed instead
|
|
|
+Patch4: avidemux-2.5.3-mpeg2enc.patch
|
|
|
+Patch5: avidemux-2.5.3-pluginlibs.patch
|
|
|
+# Patch8 obtained from http://lists.rpmfusion.org/pipermail/rpmfusion-developers/2010-October/008645.html
|
|
|
+#Patch6: avidemux_2.5.4-ffmpeg-aac.patch
|
|
|
+Patch6: avidemux_2.5.5-ffmpeg_aac.patch
|
|
|
+Patch7: avidemux-2.5.5-gcc46_tmp_fix.patch
|
|
|
+# Patch needed for version of x264 in F15/rawhide.
|
|
|
+# Use system libraries
|
|
|
+Patch8: avidemux-2.5.4-libass.patch
|
|
|
+Patch9: avidemux-2.5.4-liba52.patch
|
|
|
+Patch10: avidemux-2.5.4-libmad.patch
|
|
|
+Patch11: avidemux-2.5.4-libtwolame.patch
|
|
|
+Patch12: avidemux-2.5.5_fix_lav_audio_encoder.patch
|
|
|
+# Patch for ABI change in x264 115.
|
|
|
+Patch13: avidemux-2.5.5-x264_i_to_b_open_gop.patch
|
|
|
+# Uses a header file not found in the standard package
|
|
|
+#Patch16: avidemux-2.5.4-mpeg2enc.patch
|
|
|
|
|
|
## Vine customization patches
|
|
|
-Patch10: avidemux-2.4.3-alsa-device-default.patch
|
|
|
-Patch11: avidemux-2.5.2-no-qt4-ui.patch
|
|
|
+Patch50: avidemux-2.5.2-no-qt4-ui.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
-Requires: %{name}-cli = %{version}
|
|
|
-Requires: %{name}-gui = %{version}
|
|
|
-Obsoletes: %{name}-qt < 2.5.0
|
|
|
+Obsoletes: %{name}-cli %{name}-gui %{name}-qt
|
|
|
+Obsoletes: %{name}-devel <= 2.5.5
|
|
|
|
|
|
# *-devel pacages provided by other self-build-* should only be listed
|
|
|
# in self-build-%{name}.spec as PreReq.
|
|
@@ -90,6 +104,15 @@ BuildRequires: libvorbis-devel >= 1.0.1
|
|
|
# Finally...
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
+#gtk
|
|
|
+BuildRequires: gtk2-devel >= 2.8.0
|
|
|
+BuildRequires: cairo-devel
|
|
|
+
|
|
|
+%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
|
|
|
+BuildRequires: qt4-devel >= 4.5.0-9
|
|
|
+BuildRequires: qt4-designer
|
|
|
+%endif
|
|
|
+
|
|
|
%description
|
|
|
Avidemux is a free video editor designed for simple cutting, filtering and
|
|
|
encoding tasks. It supports many file types, including AVI, DVD compatible
|
|
@@ -100,55 +123,19 @@ For compatability reasons, avidemux is a meta-package which installs the
|
|
|
graphical, command line and plugin packages. If you want a smaller setup,
|
|
|
you may selectively install one or more of the avidemux-* subpackages.
|
|
|
|
|
|
-%package cli
|
|
|
-Summary: CLI for %{name}
|
|
|
-Group: Applications/Multimedia
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
-
|
|
|
-%description cli
|
|
|
-This package provides a command-line interface to editing videos with %{name}.
|
|
|
-
|
|
|
-%package gtk
|
|
|
-Summary: GTK interface for %{name}
|
|
|
-Group: Applications/Multimedia
|
|
|
-BuildRequires: gtk2-devel >= 2.8.0
|
|
|
-BuildRequires: cairo-devel
|
|
|
-# Slightly higher so it is default, but it can be avoided by installing
|
|
|
-# avidemux-qt directly or it can be removed later once avidemux-qt is installed
|
|
|
-Provides: %{name}-gui = %{version}-%{release}.1
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
-
|
|
|
-%description gtk
|
|
|
-This package provides the GTK graphical interface for %{name}.
|
|
|
-
|
|
|
-%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
|
|
|
-%package qt
|
|
|
-Summary: Qt interface for %{name}
|
|
|
-Group: Applications/Multimedia
|
|
|
-# 4.5.0-9 fixes a failure when there are duplicate translated strings
|
|
|
-# https://bugzilla.redhat.com/show_bug.cgi?id=491514
|
|
|
-BuildRequires: qt4-devel >= 4.5.0-9
|
|
|
-BuildRequires: qt4-designer
|
|
|
-Provides: %{name}-gui = %{version}-%{release}
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
-
|
|
|
-%description qt
|
|
|
-This package contains the Qt graphical interface for %{name}.
|
|
|
-%endif
|
|
|
-
|
|
|
-%package devel
|
|
|
-Summary: Development files for %{name}
|
|
|
-Group: Development/Libraries
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
-
|
|
|
-%description devel
|
|
|
-This package contains files required to develop with or extend %{name}.
|
|
|
|
|
|
%prep
|
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%setup -q -n avidemux_%{version}
|
|
|
|
|
|
+# Remove unneeded external libraries
|
|
|
+rm -rf plugins/ADM_videoFilters/Ass/ADM_libAss
|
|
|
+rm -rf plugins/ADM_audioEncoders/twolame/ADM_libtwolame
|
|
|
+rm -rf plugins/ADM_audioDecoders/ADM_ad_mad/ADM_libMad
|
|
|
+rm -rf plugins/ADM_audioDecoders/ADM_ad_ac3/ADM_liba52
|
|
|
+#rm -rf plugins/ADM_videoEncoder/ADM_vidEnc_mpeg2enc/mpeg2enc
|
|
|
+
|
|
|
# change hardcoded libdir paths
|
|
|
%ifarch x86_64 ppc64
|
|
|
%__sed -i.bak 's/startDir="lib";/startDir="lib64";/' avidemux/ADM_core/src/ADM_fileio.cpp
|
|
@@ -158,14 +145,19 @@ This package contains files required to develop with or extend %{name}.
|
|
|
%patch0 -p1 -b .parallel
|
|
|
%patch1 -p1 -b .pulse
|
|
|
#%patch2 -p1 -b .qt4
|
|
|
-%patch3 -p1 -b .i18n
|
|
|
-%patch4 -p1 -b .altivec
|
|
|
-%patch5 -p1 -b .cfincludes
|
|
|
-#%patch6 -p1 -b .tmplinktarget
|
|
|
-%patch7 -p1 -b .blind
|
|
|
-
|
|
|
-#%patch10 -p1 -b .alsa
|
|
|
-%{!?with_qt_ui:%patch11 -p1 -b .qt4}
|
|
|
+%patch3 -p1 -b .tmplinktarget
|
|
|
+%patch4 -p1 -b .mpeg2enc
|
|
|
+%patch5 -p1 -b .pluginlibs
|
|
|
+#%patch6 -p1 -b .ffmpegaac
|
|
|
+%patch7 -p1 -b .gcc46tmpfix
|
|
|
+%patch8 -p1 -b .libass
|
|
|
+%patch9 -p1 -b .liba52
|
|
|
+%patch10 -p1 -b .libmad
|
|
|
+%patch11 -p1 -b .libtwolame
|
|
|
+%patch12 -p1 -b .lavencode
|
|
|
+%patch13 -p1 -b .x264
|
|
|
+
|
|
|
+%{!?with_qt_ui:%patch50 -p1 -b .qt4}
|
|
|
|
|
|
%build
|
|
|
# Out of source build
|
|
@@ -173,6 +165,7 @@ This package contains files required to develop with or extend %{name}.
|
|
|
%cmake -DAVIDEMUX_INSTALL_PREFIX=%{_prefix} \
|
|
|
-DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
|
|
|
-DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
|
|
|
+ -DUSE_SYSTEM_SPIDERMONKEY:BOOL=OFF \
|
|
|
..
|
|
|
%__make %{?_smp_mflags}
|
|
|
# Create the temp link directory manuall since otherwise it happens too early
|
|
@@ -190,18 +183,18 @@ find %{_pkgbuilddir}/build/avidemux -name '*.so*' | \
|
|
|
|
|
|
%install
|
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
-# Temporary workaround since the i18n files aren't being built
|
|
|
-%__mkdir_p $RPM_BUILD_ROOT/%{_datadir}/%{name}
|
|
|
|
|
|
%__make -C build install DESTDIR=$RPM_BUILD_ROOT
|
|
|
%__make -C build_plugins install DESTDIR=$RPM_BUILD_ROOT
|
|
|
-# Install the build configuration for devel package
|
|
|
-%__install -d -m755 $RPM_BUILD_ROOT%{_includedir}
|
|
|
-%__install -m644 build/config/ADM_coreConfig.h $RPM_BUILD_ROOT%{_includedir}/ADM_coreConfig.h
|
|
|
|
|
|
# Find and remove all la files
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
|
|
|
|
|
|
+# Remove Windows-only executables
|
|
|
+# Must check this for new Linux-relevant files upon new avidemux releases
|
|
|
+%__rm -rf %{buildroot}%{_datadir}/ADM_addons/avsfilter
|
|
|
+%__rm -rf %{buildroot}%{_datadir}/ADM_addons/
|
|
|
+
|
|
|
# Install .desktop shortcuts
|
|
|
desktop-file-install --vendor vine \
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
@@ -211,9 +204,17 @@ desktop-file-install --vendor vine \
|
|
|
desktop-file-install --vendor vine \
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
%{SOURCE2}
|
|
|
+
|
|
|
+# Remove duplicated Qt translations
|
|
|
+rm -f %{buildroot}%{_datadir}/%{name}/i18n/qt_*.qm
|
|
|
+# find_lang.sh doesn't recognize this one, and there already is avidemux_sr.qm
|
|
|
+rm -f %{buildroot}%{_datadir}/%{name}/i18n/avidemux_sr@latin.qm
|
|
|
+
|
|
|
+# Qt-style translations
|
|
|
+%find_lang %{name} --with-qt --without-mo
|
|
|
+mv -f %{name}.lang %{name}-qt.lang
|
|
|
%endif
|
|
|
|
|
|
-find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
|
|
|
%find_lang %{name}
|
|
|
|
|
|
%clean
|
|
@@ -229,30 +230,20 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
|
|
|
%{_datadir}/ADM_scripts/
|
|
|
%{_libdir}/libADM*
|
|
|
%{_libdir}/ADM_plugins/
|
|
|
-
|
|
|
-%files cli
|
|
|
-%defattr(-,root,root,-)
|
|
|
%{_bindir}/avidemux2_cli
|
|
|
-
|
|
|
-%files gtk
|
|
|
-%defattr(-,root,root,-)
|
|
|
%{_bindir}/avidemux2_gtk
|
|
|
%{_datadir}/applications/*gtk*.desktop
|
|
|
-
|
|
|
%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
|
|
|
-%files qt
|
|
|
-%defattr(-,root,root,-)
|
|
|
-#{_datadir}/%{name}/i18n/
|
|
|
%{_bindir}/avidemux2_qt4
|
|
|
%{_datadir}/applications/*qt*.desktop
|
|
|
%endif
|
|
|
|
|
|
-%files devel
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%{_includedir}/ADM_coreConfig.h
|
|
|
-
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.5-1
|
|
|
+- new upstream release
|
|
|
+- Obsoletes: avidemux-cli avidemux-gui avidemux-qt avidemux-devel <= 2.5.5
|
|
|
+
|
|
|
* Wed Jul 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-5
|
|
|
- dropped BuildRequires: esound-devel
|
|
|
|