]> git.pld-linux.org Git - packages/avidemux.git/blob - avidemux.spec
- added bcond amrnb
[packages/avidemux.git] / avidemux.spec
1 # TODO:
2 #       - build qt4 interface
3 #       - create aften.spec (aften.sf.net) and use it
4 #
5 # Conditional build:
6 %bcond_with     amrnb           # enable 3GPP Adaptive Multi Rate (AMR) speech codec support
7 #
8 Summary:        A small audio/video editing software for Linux
9 Summary(pl.UTF-8):      Mały edytor audio/wideo dla Linuksa
10 Name:           avidemux
11 Version:        2.4
12 Release:        1
13 License:        GPL v2
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
47 Requires:       js(threads)
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 A small audio/video editing software for Linux.
52
53 %description -l pl.UTF-8
54 Mały edytor audio/wideo dla Linuksa.
55
56 %prep
57 %setup -q -n %{name}_%{version}
58 %patch0 -p1
59 %patch1 -p0
60
61 %{__sed} -i 's/charset=Unicode/charset=UTF-8/' po/ru.po
62 %{__sed} -i 's/klingon/de\npt_BR/' po/LINGUAS
63
64 %build
65 export kde_htmldir=%{_kdedocdir}
66 export kde_libs_htmldir=%{_kdedocdir}
67 %{__make} -f admin/Makefile.common cvs
68 %configure \
69 %ifarch ppc
70         --enable-altivec \
71 %endif
72         --with-jsapi-include=%{_includedir}/js \
73         --disable-static
74
75 cd po
76 %{__make} -j1
77 cd ..
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
88 install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
89
90 %find_lang %{name}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc AUTHORS History
98 %attr(755,root,root) %{_bindir}/avidemux2_cli
99 %attr(755,root,root) %{_bindir}/avidemux2_gtk
100 %{_desktopdir}/*.desktop
101 %{_pixmapsdir}/*.png
This page took 0.137089 seconds and 4 git commands to generate.