]> git.pld-linux.org Git - packages/avidemux.git/blob - avidemux.spec
- ver. 2.4.1
[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     amr     # 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.1
12 Release:        0.1
13 License:        GPL v2+
14 Group:          X11/Applications/Multimedia
15 Source0:        http://download2.berlios.de/avidemux/%{name}_%{version}.tar.gz
16 # Source0-md5:  2d972f6b8795c891dd6e0ebe5035852a
17 Source1:        %{name}.desktop
18 Patch0:         %{name}-autoconf.patch
19 Patch1:         %{name}-dts_internal.patch
20 Patch2:         %{name}-sparc64.patch
21 URL:            http://fixounet.free.fr/avidemux/
22 BuildRequires:  SDL-devel
23 BuildRequires:  a52dec-libs-devel
24 BuildRequires:  alsa-lib-devel >= 1.0
25 %{?with_amr:BuildRequires:      amrnb-devel}
26 BuildRequires:  artsc-devel
27 BuildRequires:  autoconf
28 BuildRequires:  automake
29 BuildRequires:  esound-devel
30 BuildRequires:  faad2-devel
31 BuildRequires:  ffmpeg-devel
32 BuildRequires:  freetype-devel >= 2.0.0
33 BuildRequires:  gettext-devel
34 BuildRequires:  gtk+2-devel >= 1:2.6.0
35 BuildRequires:  js-devel(threads)
36 BuildRequires:  lame-libs-devel
37 BuildRequires:  libdts-devel
38 BuildRequires:  libmad-devel
39 BuildRequires:  libmpeg3-devel
40 BuildRequires:  libstdc++-devel
41 BuildRequires:  libvorbis-devel
42 BuildRequires:  libx264-devel
43 BuildRequires:  libxml2-devel
44 BuildRequires:  pkgconfig
45 BuildRequires:  sed >= 4.0
46 BuildRequires:  xorg-lib-libXv-devel
47 BuildRequires:  xvid-devel >= 1:1.0
48 Requires:       js(threads)
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 A small audio/video editing software for Linux.
53
54 %description -l pl.UTF-8
55 Mały edytor audio/wideo dla Linuksa.
56
57 %prep
58 %setup -q -n %{name}_%{version}
59 %patch0 -p1
60 %patch1 -p0
61 %patch2 -p1
62
63 echo 'pt_BR' >> po/LINGUAS
64
65 %build
66 export kde_htmldir=%{_kdedocdir}
67 export kde_libs_htmldir=%{_kdedocdir}
68 %{__make} -f admin/Makefile.common cvs
69 %configure \
70         %{!?with_amr:ac_cv_header_amrnb_interf_dec_h=no} \
71         --disable-static \
72 %ifarch ppc
73         --enable-altivec \
74 %endif
75         --with-jsapi-include=%{_includedir}/js
76 # moc-qt4 expected
77 #       --with-qt-dir=%{_prefix} \
78 #       --with-qt-include=%{_includedir}/qt4 \
79 #       --with-qt-lib=%{_libdir}
80
81 %{__make} -j1 -C po
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
92 install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
93
94 %find_lang %{name}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc AUTHORS History
102 %attr(755,root,root) %{_bindir}/avidemux2_cli
103 %attr(755,root,root) %{_bindir}/avidemux2_gtk
104 %{_desktopdir}/*.desktop
105 %{_pixmapsdir}/*.png
This page took 0.087471 seconds and 4 git commands to generate.