]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - amr-nb/amr-wb/amr-nb-fixed ? | |
3 | # - FFMPEG: local | |
4 | # - which: no wx-config in ... | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_with amr # AMR-NB support | |
8 | %bcond_without faad # AAC decoding support | |
9 | %bcond_without ffmpeg # ffmpeg support | |
10 | %bcond_without freetype # freetype support | |
11 | %bcond_without jpeg # JPEG support | |
12 | %bcond_without js # JavaScript support | |
13 | %bcond_without mad # MP3 support | |
14 | %bcond_without png # PNG support | |
15 | %bcond_without xvid # xvid support | |
16 | %bcond_with wx # wxWidgets support | |
17 | # | |
18 | Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) | |
19 | Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) | |
20 | Name: gpac | |
21 | Version: 0.4.5 | |
22 | Release: 0.1 | |
23 | License: LGPL v2+ | |
24 | Group: Applications/Multimedia | |
25 | Source0: http://downloads.sourceforge.net/gpac/%{name}-%{version}.tar.gz | |
26 | # Source0-md5: 755e8c438a48ebdb13525dd491f5b0d1 | |
27 | Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip | |
28 | # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1 | |
29 | Patch0: %{name}-install.patch | |
30 | Patch1: %{name}-wxWidgets.patch | |
31 | Patch2: %{name}-libpng.patch | |
32 | Patch3: %{name}-pic.patch | |
33 | Patch4: %{name}-xulrunner.patch | |
34 | URL: http://gpac.sourceforge.net/ | |
35 | BuildRequires: SDL-devel | |
36 | BuildRequires: a52dec-libs-devel | |
37 | BuildRequires: alsa-lib-devel >= 0.9 | |
38 | %{?with_faad:BuildRequires: faad2-devel} | |
39 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} | |
40 | %{?with_freetype:BuildRequires: freetype-devel} | |
41 | BuildRequires: jack-audio-connection-kit-devel | |
42 | %{?with_js:BuildRequires: js-devel} | |
43 | %{?with_jpeg:BuildRequires: libjpeg-devel} | |
44 | %{?with_mad:BuildRequires: libmad-devel} | |
45 | BuildRequires: libogg-devel | |
46 | %{?with_png:BuildRequires: libpng-devel} | |
47 | BuildRequires: libtheora-devel | |
48 | BuildRequires: libvorbis-devel | |
49 | BuildRequires: libxml2-devel | |
50 | BuildRequires: openjpeg-devel | |
51 | BuildRequires: pulseaudio-devel | |
52 | BuildRequires: rpmbuild(macros) >= 1.357 | |
53 | BuildRequires: unzip | |
54 | %{?with_wx:BuildRequires: wxGTK2-devel >= 2.5.4} | |
55 | # -server | |
56 | BuildRequires: xmlrpc-c-devel | |
57 | BuildRequires: xorg-lib-libXext-devel | |
58 | BuildRequires: xorg-lib-libXv-devel | |
59 | BuildRequires: xulrunner-devel >= 1.9.1 | |
60 | %{?with_xvid:BuildRequires: xvid-devel} | |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
62 | ||
63 | %description | |
64 | GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC | |
65 | 14496-1) developed from scratch in ANSI C. | |
66 | ||
67 | The main development goal is to provide a clean (a.k.a. readable by as | |
68 | many people as possible), small and flexible alternative to the MPEG-4 | |
69 | Systems reference software (known as IM1 and distributed in ISO/IEC | |
70 | 14496-5). The MPEG-4 Reference software is indeed a very large piece | |
71 | of software, designed to verify the standard rather than provide a | |
72 | small, production-stable software. GPAC is written in ANSI C for | |
73 | portability reasons (embedded platforms and DSPs) with a simple goal: | |
74 | keep the memory footprint as low as possible. The project will at term | |
75 | provide player(s), systems encoders and publishing tools for content | |
76 | distribution. | |
77 | ||
78 | %description -l pl.UTF-8 | |
79 | GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) | |
80 | stworzona od zera w ANSI C. | |
81 | ||
82 | Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej | |
83 | dla jak największej liczby ludzi), małej i elastycznej alternatywy dla | |
84 | wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i | |
85 | rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4 | |
86 | jest bardzo dużą porcją kodu, zaprojektowaną raczej do zweryfikowania | |
87 | standardu niż dostarczenia małej, stabilnej wersji produkcyjnej. GPAC | |
88 | jest pisany w ANSI C ze względu na przenośność (platformy wbudowane i | |
89 | DSP) z prostym celem: wymagać tak mało pamięci, jak to tylko możliwe. | |
90 | Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia | |
91 | do publikacji w celu dystrybucji materiałów. | |
92 | ||
93 | %package -n browser-plugin-%{name} | |
94 | Summary: GPAC browser plugin | |
95 | Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW | |
96 | Group: X11/Libraries | |
97 | Requires: %{name} = %{version}-%{release} | |
98 | Requires: browser-plugins >= 2.0 | |
99 | Requires: browser-plugins(%{_target_base_arch}) | |
100 | ||
101 | %description -n browser-plugin-%{name} | |
102 | GPAC plugin for Netscape-compatible WWW browsers. | |
103 | ||
104 | %description -n browser-plugin-%{name} -l pl.UTF-8 | |
105 | Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape. | |
106 | ||
107 | %prep | |
108 | %setup -q -n %{name} | |
109 | %patch0 -p1 | |
110 | %{?with_wx:%patch1 -p1} | |
111 | %patch2 -p1 | |
112 | %patch3 -p1 | |
113 | %patch4 -p1 | |
114 | ||
115 | %if %{with amr} | |
116 | mkdir -p Plugins/amr_dec/AMR_NB | |
117 | cd Plugins/amr_dec/AMR_NB | |
118 | unzip -j %{SOURCE1} | |
119 | unzip -j 26073-530_ANSI_C_source_code.zip | |
120 | cd ../../.. | |
121 | %endif | |
122 | chmod a+x configure | |
123 | ||
124 | %build | |
125 | cd applications/osmozilla | |
126 | xpidl -m header -I /usr/share/idl/xulrunner nsIOsmozilla.idl | |
127 | xpidl -m typelib -I /usr/share/idl/xulrunner nsIOsmozilla.idl | |
128 | cp -f nsIOsmozilla.xpt nsIOsmozilla.xpt_linux | |
129 | cd ../.. | |
130 | %configure \ | |
131 | --X11-path=/usr \ | |
132 | --cc="%{__cc}" \ | |
133 | --disable-opt \ | |
134 | %{?with_amr:--enable-amr-nb} \ | |
135 | --enable-joystick \ | |
136 | --enable-pic \ | |
137 | --extra-cflags="%{rpmcflags}" \ | |
138 | --extra-ldflags="%{rpmldflags}" \ | |
139 | --mozdir=%{_browserpluginsdir} \ | |
140 | %{!?with_faad:--use-faad=no} \ | |
141 | %{!?with_ffmpeg:--use-ffmpeg=no} \ | |
142 | %{!?with_freetype:--use-ft=no} \ | |
143 | %{!?with_jpeg:--use-jpeg=no} \ | |
144 | %{!?with_js:--use-js=no} \ | |
145 | %{!?with_mad:--use-mad=no} \ | |
146 | %{!?with_png:--use-png=no} \ | |
147 | %{!?with_xvid:--use-xvid=no} \ | |
148 | --xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr" | |
149 | ||
150 | %{__make} -j1 \ | |
151 | libdir=%{_lib} | |
152 | ||
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
156 | %{__make} install \ | |
157 | DESTDIR=$RPM_BUILD_ROOT \ | |
158 | libdir=%{_lib} \ | |
159 | MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir} | |
160 | ||
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %post -p /sbin/ldconfig | |
165 | %postun -p /sbin/ldconfig | |
166 | ||
167 | %post -n browser-plugin-%{name} | |
168 | %update_browser_plugins | |
169 | ||
170 | %postun -n browser-plugin-%{name} | |
171 | if [ "$1" = 0 ]; then | |
172 | %update_browser_plugins | |
173 | fi | |
174 | ||
175 | %files | |
176 | %defattr(644,root,root,755) | |
177 | %doc AUTHORS BUGS Changelog README TODO | |
178 | %attr(755,root,root) %{_bindir}/MP4Box | |
179 | %attr(755,root,root) %{_bindir}/MP4Client | |
180 | %attr(755,root,root) %{_libdir}/libgpac-%{version}.so | |
181 | %attr(755,root,root) %{_libdir}/libgpac.so | |
182 | %dir %{_libdir}/gpac | |
183 | %attr(755,root,root) %{_libdir}/gpac/gm_*.so | |
184 | %{_datadir}/gpac | |
185 | %{_mandir}/man1/gpac.1* | |
186 | %{_mandir}/man1/mp4box.1* | |
187 | %{_mandir}/man1/mp4client.1* | |
188 | ||
189 | %files -n browser-plugin-%{name} | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so | |
192 | %{_browserpluginsdir}/nposmozilla.xpt |