]>
Commit | Line | Data |
---|---|---|
5f694ea5 | 1 | |
2 | %bcond_with amr | |
3 | %bcond_without js | |
4 | %bcond_without freetype | |
5 | %bcond_without faad | |
6 | %bcond_without jpeg | |
7 | %bcond_without png | |
8 | %bcond_without mad | |
9 | %bcond_without xvid | |
10 | %bcond_without ffmpeg | |
11 | ||
b2995149 | 12 | Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) |
13 | Summary(pl): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) | |
5f694ea5 | 14 | Name: gpac |
15 | Version: 0.2.1 | |
16 | Release: 1 | |
17 | License: GPL | |
18 | Group: Applications | |
19 | Source0: http://mesh.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz | |
20 | # Source0-md5: 3a3e193e805ab177f44514ca3289b461 | |
21 | # Source0-size: 2227080 | |
22 | Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip | |
23 | # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1 | |
24 | # Source1-size: 916695 | |
25 | URL: http://gpac.sourceforge.net/ | |
26 | BuildRequires: SDL-devel | |
27 | #BuildRequires: wxWidgets-devel | |
28 | %{!?_without_js:BuildRequires: js-devel} | |
29 | %{!?_without_freetype:BuildRequires: freetype-devel} | |
30 | %{!?_without_faad:BuildRequires: faad2-devel} | |
31 | %{!?_without_jpeg:BuildRequires: libjpeg-devel} | |
32 | %{!?_without_png:BuildRequires: libpng-devel} | |
33 | %{!?_without_mad:BuildRequires: libmad-devel} | |
34 | %{!?_without_xvid:BuildRequires: xvid-devel} | |
35 | %{!?_without_ffmpeg:BuildRequires: ffmpeg-devel} | |
36 | Requires: SDL | |
37 | #Requires: wxWidgets | |
38 | %{!?_without_js:Requires: js} | |
39 | %{!?_without_freetype:Requires: freetype} | |
40 | %{!?_without_faad:Requires: faad2} | |
41 | %{!?_without_jpeg:Requires: libjpeg-6b} | |
42 | %{!?_without_png:Requires: libpng} | |
43 | %{!?_without_mad:Requires: libmad} | |
44 | %{!?_without_xvid:Requires: xvid} | |
45 | %{!?_without_ffmpeg:Requires: ffmpeg} | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
b2995149 | 49 | GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC |
50 | 14496-1) developed from scratch in ANSI C. | |
5f694ea5 | 51 | |
b2995149 | 52 | The main development goal is to provide a clean (a.k.a. readable by as |
53 | many people as possible), small and flexible alternative to the MPEG-4 | |
54 | Systems reference software (known as IM1 and distributed in ISO/IEC | |
55 | 14496-5). The MPEG-4 Reference software is indeed a very large piece | |
56 | of software, designed to verify the standard rather than provide a | |
57 | small, production-stable software. GPAC is written in ANSI C for | |
58 | portability reasons (embedded platforms and DSPs) with a simple goal: | |
59 | keep the memory footprint as low as possible. The project will at term | |
60 | provide player(s), systems encoders and publishing tools for content | |
61 | distribution. | |
5f694ea5 | 62 | |
b2995149 | 63 | The current GPAC release (0.2.1) is far from being complete but |
64 | already covers a very large part of the standard, and can probably be | |
65 | seen as the most advanced and robust 2D MPEG-4 Player available | |
66 | worldwide (its 3D side is not to be neglected though). | |
5f694ea5 | 67 | |
68 | %prep | |
69 | %setup -q -n gpac | |
70 | %if %{?_with_amr:1}%{!?_with_amr:0} | |
71 | mkdir -p Plugins/amr_dec/AMR_NB | |
72 | cd Plugins/amr_dec/AMR_NB | |
73 | unzip -j ../../SOURCES/26073-530.zip | |
74 | unzip -j 26073-530_ANSI_C_source_code.zip | |
75 | cd ../../.. | |
76 | %endif | |
77 | ||
78 | ||
79 | %build | |
80 | %configure --enable-oss-audio \ | |
81 | %{?_with_amr: --enable-amr-nb} \ | |
82 | %{?_without_js: --disable-js} \ | |
83 | %{?_without_freetype: --disable-ft} \ | |
84 | %{?_without_faad: --disable-faad} \ | |
85 | %{?_without_jpeg: --disable-jpeg} \ | |
86 | %{?_without_png: --disable-png} \ | |
87 | %{?_without_mad: --disable-mad} \ | |
88 | %{?_without_xvid: --disable-xvid} \ | |
89 | %{?_without_ffmpeg: --disable-ffmpeg} | |
90 | ||
91 | %{__make} \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
99 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
100 | mandir=$RPM_BUILD_ROOT%{_mandir} | |
101 | ||
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS BUGS Changelog COPYING README TODO | |
112 | %attr(755,root,root) %{_bindir}/* | |
113 | %attr(755,root,root) %{_libdir}/* | |
114 | %{_mandir}/man1/* |