]>
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 |
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 |
11d3f219 | 41 | BuildRequires: libtool |
b568acf8 | 42 | BuildRequires: libvorbis-devel |
5599794b | 43 | BuildRequires: libx264-devel |
6401e6bf JB |
44 | BuildRequires: libxml2-devel |
45 | BuildRequires: pkgconfig | |
11d3f219 SS |
46 | %{?with_qt:BuildRequires: QtGui-devel} |
47 | %{?with_qt:BuildRequires: qt4-build} | |
4a344085 | 48 | BuildRequires: sed >= 4.0 |
ce3e61c7 | 49 | BuildRequires: xorg-lib-libXv-devel |
7a4998bb | 50 | BuildRequires: xvid-devel >= 1:1.0 |
ce3e61c7 | 51 | Requires: js(threads) |
b568acf8 | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
b568acf8 | 54 | %description |
20033fc5 | 55 | A small audio/video editing software for Linux. |
b568acf8 | 56 | |
4bda10db JR |
57 | %description -l pl.UTF-8 |
58 | Mały edytor audio/wideo dla Linuksa. | |
b568acf8 | 59 | |
60 | %prep | |
ce3e61c7 | 61 | %setup -q -n %{name}_%{version} |
0e9aa702 | 62 | %patch0 -p1 |
0fd8de5b | 63 | %patch1 -p0 |
397e230b | 64 | %patch2 -p1 |
b568acf8 | 65 | |
1bdb8ac2 | 66 | echo 'pt_BR' >> po/LINGUAS |
7a4998bb | 67 | |
b568acf8 | 68 | %build |
b7e84223 AM |
69 | export kde_htmldir=%{_kdedocdir} |
70 | export kde_libs_htmldir=%{_kdedocdir} | |
71 | %{__make} -f admin/Makefile.common cvs | |
11d3f219 SS |
72 | %{__libtoolize} |
73 | %{__aclocal} -I m4 | |
74 | %{__automake} | |
75 | %{__autoconf} | |
4a344085 | 76 | %configure \ |
1bdb8ac2 JB |
77 | %{!?with_amr:ac_cv_header_amrnb_interf_dec_h=no} \ |
78 | --disable-static \ | |
4a344085 KK |
79 | %ifarch ppc |
80 | --enable-altivec \ | |
81 | %endif | |
11d3f219 SS |
82 | --with-jsapi-include=%{_includedir}/js \ |
83 | %if %{with qt} | |
84 | --with-qt-dir=%{_prefix} \ | |
85 | --with-qt-include=%{_includedir}/qt4 \ | |
86 | --with-qt-lib=%{_libdir} | |
87 | %endif | |
ce3e61c7 | 88 | |
1bdb8ac2 | 89 | %{__make} -j1 -C po |
73b670e4 | 90 | %{__make} |
b568acf8 | 91 | |
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
4a344085 | 94 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
b568acf8 | 95 | |
4c59f58b PG |
96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
b568acf8 | 98 | |
17c20657 | 99 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
48d5041e | 100 | install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
17c20657 | 101 | |
7a4998bb | 102 | %find_lang %{name} |
460f0934 | 103 | |
b568acf8 | 104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
7a4998bb | 107 | %files -f %{name}.lang |
b568acf8 | 108 | %defattr(644,root,root,755) |
19247f28 | 109 | %doc AUTHORS History |
b730fa63 SS |
110 | %attr(755,root,root) %{_bindir}/avidemux2_cli |
111 | %attr(755,root,root) %{_bindir}/avidemux2_gtk | |
11d3f219 | 112 | %{?with_qt:%attr(755,root,root) %{_bindir}/avidemux2_qt4} |
17c20657 | 113 | %{_desktopdir}/*.desktop |
4a344085 | 114 | %{_pixmapsdir}/*.png |