2 # - create aften.spec (aften.sf.net) and use it
5 %bcond_without esd # disable EsounD sound support
6 %bcond_without arts # without arts audio output
7 %bcond_with amr # enable 3GPP Adaptive Multi Rate (AMR) speech codec support
8 %bcond_with qt # build qt4-base interface
9 %bcond_with ssse3 # use SSSE3 instructions
11 %ifarch pentium4 %{x8664}
15 Summary: A small audio/video editing software for Linux
16 Summary(pl.UTF-8): Mały edytor audio/wideo dla Linuksa
21 Group: X11/Applications/Multimedia
22 Source0: http://download2.berlios.de/avidemux/%{name}_%{version}.tar.gz
23 # Source0-md5: ff8e6ac186321e7e8bec9f8177df3724
24 Source1: %{name}.desktop
25 Patch0: %{name}-autoconf.patch
26 Patch1: %{name}-dts_internal.patch
27 Patch2: %{name}-sparc64.patch
28 URL: http://fixounet.free.fr/avidemux/
29 BuildRequires: SDL-devel
30 BuildRequires: a52dec-libs-devel
31 BuildRequires: alsa-lib-devel >= 1.0
32 %{?with_amr:BuildRequires: amrnb-devel}
33 %{?with_arts:BuildRequires: artsc-devel}
34 BuildRequires: autoconf
35 BuildRequires: automake
36 %{?with_esd:BuildRequires: esound-devel}
37 BuildRequires: faad2-devel
38 BuildRequires: ffmpeg-devel
39 BuildRequires: freetype-devel >= 2.0.0
40 BuildRequires: gettext-devel
41 BuildRequires: gtk+2-devel >= 1:2.6.0
42 BuildRequires: js-devel(threads)
43 BuildRequires: lame-libs-devel
44 BuildRequires: libdts-devel
45 BuildRequires: libmad-devel
46 BuildRequires: libmpeg3-devel
47 BuildRequires: libsamplerate-devel
48 BuildRequires: libstdc++-devel
49 BuildRequires: libtool
50 BuildRequires: libvorbis-devel
51 BuildRequires: libx264-devel
52 BuildRequires: libxml2-devel
53 BuildRequires: pkgconfig
54 %{?with_qt:BuildRequires: QtGui-devel}
55 %{?with_qt:BuildRequires: qt4-build}
56 BuildRequires: sed >= 4.0
57 BuildRequires: xorg-lib-libXt-devel
58 BuildRequires: xorg-lib-libXv-devel
59 BuildRequires: xorg-proto-xextproto-devel
60 BuildRequires: xvid-devel >= 1:1.0
62 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65 A small audio/video editing software for Linux.
67 %description -l pl.UTF-8
68 Mały edytor audio/wideo dla Linuksa.
71 %setup -q -n %{name}_%{version}
76 echo 'pt_BR' >> po/LINGUAS
79 %{__make} -f admin/Makefile.common cvs
85 %{!?with_amr:ac_cv_header_amrnb_interf_dec_h=no} \
86 %{!?with_arts:--without-arts} \
87 %{!?with_esd:--without-esd} \
92 %{?with_ssse3:--enable-ssse3} \
94 --with-qt-dir=%{_prefix} \
95 --with-qt-include=%{_includedir}/qt4 \
96 --with-qt-lib=%{_libdir}
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
107 DESTDIR=$RPM_BUILD_ROOT
109 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
110 install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
115 rm -rf $RPM_BUILD_ROOT
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/avidemux2_cli
121 %attr(755,root,root) %{_bindir}/avidemux2_gtk
122 %{?with_qt:%attr(755,root,root) %{_bindir}/avidemux2_qt4}
123 %{_desktopdir}/*.desktop