]>
Commit | Line | Data |
---|---|---|
b730fa63 SS |
1 | # TODO: |
2 | # - create aften.spec (aften.sf.net) and use it | |
3 | # | |
5599794b | 4 | # Conditional build: |
1bdb8ac2 | 5 | %bcond_with amr # enable 3GPP Adaptive Multi Rate (AMR) speech codec support |
11d3f219 | 6 | %bcond_with qt # build qt4-base interface |
5599794b | 7 | # |
b568acf8 | 8 | Summary: A small audio/video editing software for Linux |
8c3afb9b | 9 | Summary(pl.UTF-8): Mały edytor audio/wideo dla Linuksa |
b568acf8 | 10 | Name: avidemux |
b91c33aa | 11 | Version: 2.4.1 |
441b3aeb | 12 | Release: 2 |
1bdb8ac2 | 13 | License: GPL v2+ |
b568acf8 | 14 | Group: X11/Applications/Multimedia |
ce3e61c7 | 15 | Source0: http://download2.berlios.de/avidemux/%{name}_%{version}.tar.gz |
b91c33aa | 16 | # Source0-md5: 2d972f6b8795c891dd6e0ebe5035852a |
17c20657 | 17 | Source1: %{name}.desktop |
3caabd30 | 18 | Patch0: %{name}-autoconf.patch |
0fd8de5b | 19 | Patch1: %{name}-dts_internal.patch |
397e230b | 20 | Patch2: %{name}-sparc64.patch |
b36dca7a | 21 | Patch3: %{name}-c++.patch |
a321f570 | 22 | URL: http://fixounet.free.fr/avidemux/ |
17c20657 | 23 | BuildRequires: SDL-devel |
b568acf8 | 24 | BuildRequires: a52dec-libs-devel |
8087c3e9 | 25 | BuildRequires: alsa-lib-devel >= 1.0 |
1bdb8ac2 | 26 | %{?with_amr:BuildRequires: amrnb-devel} |
6401e6bf | 27 | BuildRequires: artsc-devel |
19247f28 | 28 | BuildRequires: autoconf |
2e9edd80 | 29 | BuildRequires: automake |
6401e6bf | 30 | BuildRequires: esound-devel |
24e6fda7 | 31 | BuildRequires: faad2-devel |
530d3121 | 32 | BuildRequires: ffmpeg-devel |
6401e6bf | 33 | BuildRequires: freetype-devel >= 2.0.0 |
7a4998bb | 34 | BuildRequires: gettext-devel |
3b4a6c4c | 35 | BuildRequires: gtk+2-devel >= 1:2.6.0 |
ce3e61c7 | 36 | BuildRequires: js-devel(threads) |
b568acf8 | 37 | BuildRequires: lame-libs-devel |
ce3e61c7 | 38 | BuildRequires: libdts-devel |
6401e6bf | 39 | BuildRequires: libmad-devel |
b568acf8 | 40 | BuildRequires: libmpeg3-devel |
9fa34de7 | 41 | BuildRequires: libstdc++-devel |
11d3f219 | 42 | BuildRequires: libtool |
b568acf8 | 43 | BuildRequires: libvorbis-devel |
5599794b | 44 | BuildRequires: libx264-devel |
6401e6bf JB |
45 | BuildRequires: libxml2-devel |
46 | BuildRequires: pkgconfig | |
11d3f219 SS |
47 | %{?with_qt:BuildRequires: QtGui-devel} |
48 | %{?with_qt:BuildRequires: qt4-build} | |
4a344085 | 49 | BuildRequires: sed >= 4.0 |
ce3e61c7 | 50 | BuildRequires: xorg-lib-libXv-devel |
7a4998bb | 51 | BuildRequires: xvid-devel >= 1:1.0 |
ce3e61c7 | 52 | Requires: js(threads) |
b568acf8 | 53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
b568acf8 | 55 | %description |
20033fc5 | 56 | A small audio/video editing software for Linux. |
b568acf8 | 57 | |
4bda10db JR |
58 | %description -l pl.UTF-8 |
59 | Mały edytor audio/wideo dla Linuksa. | |
b568acf8 | 60 | |
61 | %prep | |
ce3e61c7 | 62 | %setup -q -n %{name}_%{version} |
0e9aa702 | 63 | %patch0 -p1 |
0fd8de5b | 64 | %patch1 -p0 |
397e230b | 65 | %patch2 -p1 |
b36dca7a | 66 | %patch3 -p1 |
b568acf8 | 67 | |
1bdb8ac2 | 68 | echo 'pt_BR' >> po/LINGUAS |
7a4998bb | 69 | |
b568acf8 | 70 | %build |
b7e84223 AM |
71 | export kde_htmldir=%{_kdedocdir} |
72 | export kde_libs_htmldir=%{_kdedocdir} | |
73 | %{__make} -f admin/Makefile.common cvs | |
11d3f219 SS |
74 | %{__libtoolize} |
75 | %{__aclocal} -I m4 | |
76 | %{__automake} | |
77 | %{__autoconf} | |
4a344085 | 78 | %configure \ |
1bdb8ac2 JB |
79 | %{!?with_amr:ac_cv_header_amrnb_interf_dec_h=no} \ |
80 | --disable-static \ | |
4a344085 KK |
81 | %ifarch ppc |
82 | --enable-altivec \ | |
83 | %endif | |
11d3f219 SS |
84 | --with-jsapi-include=%{_includedir}/js \ |
85 | %if %{with qt} | |
86 | --with-qt-dir=%{_prefix} \ | |
87 | --with-qt-include=%{_includedir}/qt4 \ | |
88 | --with-qt-lib=%{_libdir} | |
89 | %endif | |
ce3e61c7 | 90 | |
1bdb8ac2 | 91 | %{__make} -j1 -C po |
73b670e4 | 92 | %{__make} |
b568acf8 | 93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
4a344085 | 96 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
b568acf8 | 97 | |
4c59f58b PG |
98 | %{__make} install \ |
99 | DESTDIR=$RPM_BUILD_ROOT | |
b568acf8 | 100 | |
17c20657 | 101 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
48d5041e | 102 | install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
17c20657 | 103 | |
7a4998bb | 104 | %find_lang %{name} |
460f0934 | 105 | |
b568acf8 | 106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
7a4998bb | 109 | %files -f %{name}.lang |
b568acf8 | 110 | %defattr(644,root,root,755) |
19247f28 | 111 | %doc AUTHORS History |
b730fa63 SS |
112 | %attr(755,root,root) %{_bindir}/avidemux2_cli |
113 | %attr(755,root,root) %{_bindir}/avidemux2_gtk | |
11d3f219 | 114 | %{?with_qt:%attr(755,root,root) %{_bindir}/avidemux2_qt4} |
17c20657 | 115 | %{_desktopdir}/*.desktop |
4a344085 | 116 | %{_pixmapsdir}/*.png |