]>
Commit | Line | Data |
---|---|---|
b730fa63 | 1 | # TODO: |
5599794b | 2 | # - build qt4 interface |
b730fa63 SS |
3 | # - create aften.spec (aften.sf.net) and use it |
4 | # | |
5599794b | 5 | # Conditional build: |
1bdb8ac2 | 6 | %bcond_with amr # enable 3GPP Adaptive Multi Rate (AMR) speech codec support |
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 |
c336cf53 | 12 | Release: 1 |
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 |
a321f570 | 21 | URL: http://fixounet.free.fr/avidemux/ |
17c20657 | 22 | BuildRequires: SDL-devel |
b568acf8 | 23 | BuildRequires: a52dec-libs-devel |
8087c3e9 | 24 | BuildRequires: alsa-lib-devel >= 1.0 |
1bdb8ac2 | 25 | %{?with_amr:BuildRequires: amrnb-devel} |
6401e6bf | 26 | BuildRequires: artsc-devel |
19247f28 | 27 | BuildRequires: autoconf |
2e9edd80 | 28 | BuildRequires: automake |
6401e6bf | 29 | BuildRequires: esound-devel |
24e6fda7 | 30 | BuildRequires: faad2-devel |
530d3121 | 31 | BuildRequires: ffmpeg-devel |
6401e6bf | 32 | BuildRequires: freetype-devel >= 2.0.0 |
7a4998bb | 33 | BuildRequires: gettext-devel |
3b4a6c4c | 34 | BuildRequires: gtk+2-devel >= 1:2.6.0 |
ce3e61c7 | 35 | BuildRequires: js-devel(threads) |
b568acf8 | 36 | BuildRequires: lame-libs-devel |
ce3e61c7 | 37 | BuildRequires: libdts-devel |
6401e6bf | 38 | BuildRequires: libmad-devel |
b568acf8 | 39 | BuildRequires: libmpeg3-devel |
9fa34de7 | 40 | BuildRequires: libstdc++-devel |
b568acf8 | 41 | BuildRequires: libvorbis-devel |
5599794b | 42 | BuildRequires: libx264-devel |
6401e6bf JB |
43 | BuildRequires: libxml2-devel |
44 | BuildRequires: pkgconfig | |
4a344085 | 45 | BuildRequires: sed >= 4.0 |
ce3e61c7 | 46 | BuildRequires: xorg-lib-libXv-devel |
7a4998bb | 47 | BuildRequires: xvid-devel >= 1:1.0 |
ce3e61c7 | 48 | Requires: js(threads) |
b568acf8 | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
b568acf8 | 51 | %description |
20033fc5 | 52 | A small audio/video editing software for Linux. |
b568acf8 | 53 | |
4bda10db JR |
54 | %description -l pl.UTF-8 |
55 | Mały edytor audio/wideo dla Linuksa. | |
b568acf8 | 56 | |
57 | %prep | |
ce3e61c7 | 58 | %setup -q -n %{name}_%{version} |
0e9aa702 | 59 | %patch0 -p1 |
0fd8de5b | 60 | %patch1 -p0 |
397e230b | 61 | %patch2 -p1 |
b568acf8 | 62 | |
1bdb8ac2 | 63 | echo 'pt_BR' >> po/LINGUAS |
7a4998bb | 64 | |
b568acf8 | 65 | %build |
b7e84223 AM |
66 | export kde_htmldir=%{_kdedocdir} |
67 | export kde_libs_htmldir=%{_kdedocdir} | |
68 | %{__make} -f admin/Makefile.common cvs | |
4a344085 | 69 | %configure \ |
1bdb8ac2 JB |
70 | %{!?with_amr:ac_cv_header_amrnb_interf_dec_h=no} \ |
71 | --disable-static \ | |
4a344085 KK |
72 | %ifarch ppc |
73 | --enable-altivec \ | |
74 | %endif | |
1bdb8ac2 JB |
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} | |
ce3e61c7 | 80 | |
1bdb8ac2 | 81 | %{__make} -j1 -C po |
73b670e4 | 82 | %{__make} |
b568acf8 | 83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
4a344085 | 86 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
b568acf8 | 87 | |
4c59f58b PG |
88 | %{__make} install \ |
89 | DESTDIR=$RPM_BUILD_ROOT | |
b568acf8 | 90 | |
17c20657 | 91 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
48d5041e | 92 | install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
17c20657 | 93 | |
7a4998bb | 94 | %find_lang %{name} |
460f0934 | 95 | |
b568acf8 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
7a4998bb | 99 | %files -f %{name}.lang |
b568acf8 | 100 | %defattr(644,root,root,755) |
19247f28 | 101 | %doc AUTHORS History |
b730fa63 SS |
102 | %attr(755,root,root) %{_bindir}/avidemux2_cli |
103 | %attr(755,root,root) %{_bindir}/avidemux2_gtk | |
17c20657 | 104 | %{_desktopdir}/*.desktop |
4a344085 | 105 | %{_pixmapsdir}/*.png |