2 # - build qt4 interface
3 # - create aften.spec (aften.sf.net) and use it
6 %bcond_with amrnb # enable 3GPP Adaptive Multi Rate (AMR) speech codec support
8 Summary: A small audio/video editing software for Linux
9 Summary(pl.UTF-8): Mały edytor audio/wideo dla Linuksa
14 Group: X11/Applications/Multimedia
15 Source0: http://download2.berlios.de/avidemux/%{name}_%{version}.tar.gz
16 # Source0-md5: 2a752b9f6bab4123566894a6a21b353b
17 Source1: %{name}.desktop
18 Patch0: %{name}-autoconf.patch
19 Patch1: %{name}-dts_internal.patch
20 URL: http://fixounet.free.fr/avidemux/
21 BuildRequires: SDL-devel
22 BuildRequires: a52dec-libs-devel
23 BuildRequires: alsa-lib-devel >= 1.0
24 %{?with_amrnb:BuildRequires: amrnb-devel}
25 BuildRequires: artsc-devel
26 BuildRequires: autoconf
27 BuildRequires: automake
28 BuildRequires: esound-devel
29 BuildRequires: faad2-devel
30 BuildRequires: ffmpeg-devel
31 BuildRequires: freetype-devel >= 2.0.0
32 BuildRequires: gettext-devel
33 BuildRequires: gtk+2-devel >= 1:2.6.0
34 BuildRequires: js-devel(threads)
35 BuildRequires: lame-libs-devel
36 BuildRequires: libdts-devel
37 BuildRequires: libmad-devel
38 BuildRequires: libmpeg3-devel
39 BuildRequires: libstdc++-devel
40 BuildRequires: libvorbis-devel
41 BuildRequires: libx264-devel
42 BuildRequires: libxml2-devel
43 BuildRequires: pkgconfig
44 BuildRequires: sed >= 4.0
45 BuildRequires: xorg-lib-libXv-devel
46 BuildRequires: xvid-devel >= 1:1.0
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 A small audio/video editing software for Linux.
53 %description -l pl.UTF-8
54 Mały edytor audio/wideo dla Linuksa.
57 %setup -q -n %{name}_%{version}
61 %{__sed} -i 's/charset=Unicode/charset=UTF-8/' po/ru.po
62 %{__sed} -i 's/klingon/de\npt_BR/' po/LINGUAS
65 export kde_htmldir=%{_kdedocdir}
66 export kde_libs_htmldir=%{_kdedocdir}
67 %{__make} -f admin/Makefile.common cvs
72 --with-jsapi-include=%{_includedir}/js \
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
85 DESTDIR=$RPM_BUILD_ROOT
87 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
88 install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
93 rm -rf $RPM_BUILD_ROOT
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/avidemux2_cli
99 %attr(755,root,root) %{_bindir}/avidemux2_gtk
100 %{_desktopdir}/*.desktop