]>
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 SS |
5 | # Conditional build: |
6 | %bcond_with amrnb # enable 3GPP Adaptive Multi Rate (AMR) speech codec support | |
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 |
a450aa01 | 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 |
5599794b | 24 | %{?with_amrnb: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 | |
4a344085 | 61 | %{__sed} -i 's/charset=Unicode/charset=UTF-8/' po/ru.po |
48d5041e | 62 | %{__sed} -i 's/klingon/de\npt_BR/' po/LINGUAS |
7a4998bb | 63 | |
b568acf8 | 64 | %build |
b7e84223 AM |
65 | export kde_htmldir=%{_kdedocdir} |
66 | export kde_libs_htmldir=%{_kdedocdir} | |
67 | %{__make} -f admin/Makefile.common cvs | |
4a344085 KK |
68 | %configure \ |
69 | %ifarch ppc | |
70 | --enable-altivec \ | |
71 | %endif | |
48d5041e | 72 | --with-jsapi-include=%{_includedir}/js \ |
4a344085 | 73 | --disable-static |
ce3e61c7 | 74 | |
5599794b SS |
75 | cd po |
76 | %{__make} -j1 | |
77 | cd .. | |
73b670e4 | 78 | %{__make} |
b568acf8 | 79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
4a344085 | 82 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
b568acf8 | 83 | |
4c59f58b PG |
84 | %{__make} install \ |
85 | DESTDIR=$RPM_BUILD_ROOT | |
b568acf8 | 86 | |
17c20657 | 87 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
48d5041e | 88 | install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
17c20657 | 89 | |
7a4998bb | 90 | %find_lang %{name} |
460f0934 | 91 | |
b568acf8 | 92 | %clean |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
7a4998bb | 95 | %files -f %{name}.lang |
b568acf8 | 96 | %defattr(644,root,root,755) |
19247f28 | 97 | %doc AUTHORS History |
b730fa63 SS |
98 | %attr(755,root,root) %{_bindir}/avidemux2_cli |
99 | %attr(755,root,root) %{_bindir}/avidemux2_gtk | |
17c20657 | 100 | %{_desktopdir}/*.desktop |
4a344085 | 101 | %{_pixmapsdir}/*.png |