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