]>
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 |
0ad18cc3 | 18 | Version: 2.4.4 |
36dba2de | 19 | Release: 2 |
1bdb8ac2 | 20 | License: GPL v2+ |
b568acf8 | 21 | Group: X11/Applications/Multimedia |
0ad18cc3 KK |
22 | Source0: http://dl.sourceforge.net/avidemux/%{name}_%{version}.tar.gz |
23 | # Source0-md5: 503dfd25842ef81be7c769811e7bc54e | |
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 |
bed754c0 | 79 | %{__cp} /usr/share/aclocal/libtool.m4 admin/libtool.m4.in |
b7e84223 | 80 | %{__make} -f admin/Makefile.common cvs |
e8269dff AM |
81 | %{__libtoolize} |
82 | %{__aclocal} -I m4 | |
83 | %{__autoconf} | |
84 | %{__automake} | |
4a344085 | 85 | %configure \ |
1bdb8ac2 | 86 | %{!?with_amr:ac_cv_header_amrnb_interf_dec_h=no} \ |
ee1a90dd KK |
87 | %{!?with_arts:--without-arts} \ |
88 | %{!?with_esd:--without-esd} \ | |
1bdb8ac2 | 89 | --disable-static \ |
4a344085 KK |
90 | %ifarch ppc |
91 | --enable-altivec \ | |
92 | %endif | |
67c9c845 | 93 | %{?with_ssse3:--enable-ssse3} \ |
11d3f219 SS |
94 | %if %{with qt} |
95 | --with-qt-dir=%{_prefix} \ | |
96 | --with-qt-include=%{_includedir}/qt4 \ | |
97 | --with-qt-lib=%{_libdir} | |
98 | %endif | |
ce3e61c7 | 99 | |
1bdb8ac2 | 100 | %{__make} -j1 -C po |
73b670e4 | 101 | %{__make} |
b568acf8 | 102 | |
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
4a344085 | 105 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
b568acf8 | 106 | |
4c59f58b PG |
107 | %{__make} install \ |
108 | DESTDIR=$RPM_BUILD_ROOT | |
b568acf8 | 109 | |
17c20657 | 110 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
48d5041e | 111 | install avidemux_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
17c20657 | 112 | |
7a4998bb | 113 | %find_lang %{name} |
460f0934 | 114 | |
b568acf8 | 115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
7a4998bb | 118 | %files -f %{name}.lang |
b568acf8 | 119 | %defattr(644,root,root,755) |
19247f28 | 120 | %doc AUTHORS History |
b730fa63 SS |
121 | %attr(755,root,root) %{_bindir}/avidemux2_cli |
122 | %attr(755,root,root) %{_bindir}/avidemux2_gtk | |
11d3f219 | 123 | %{?with_qt:%attr(755,root,root) %{_bindir}/avidemux2_qt4} |
17c20657 | 124 | %{_desktopdir}/*.desktop |
4a344085 | 125 | %{_pixmapsdir}/*.png |