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