]>
Commit | Line | Data |
---|---|---|
60486834 | 1 | # TODO |
13701c20 JB |
2 | # - amr-nb/amr-wb/amr-nb-fixed ? |
3 | # - FFMPEG: local | |
4 | # - which: no wx-config in ... | |
4979ec52 | 5 | # |
cee2dd04 | 6 | # Conditional build: |
13701c20 JB |
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 | |
cee2dd04 | 17 | # |
b2995149 | 18 | Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) |
5dbd083d | 19 | Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) |
5f694ea5 | 20 | Name: gpac |
13701c20 JB |
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 | |
5f694ea5 | 27 | Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip |
28 | # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1 | |
e25a2665 | 29 | Patch0: %{name}-install.patch |
6dcdf31e | 30 | Patch1: %{name}-wxWidgets.patch |
13701c20 JB |
31 | Patch2: %{name}-libpng.patch |
32 | Patch3: %{name}-pic.patch | |
33 | Patch4: %{name}-xulrunner.patch | |
5f694ea5 | 34 | URL: http://gpac.sourceforge.net/ |
f0a57dca | 35 | BuildRequires: SDL-devel |
13701c20 JB |
36 | BuildRequires: a52dec-libs-devel |
37 | BuildRequires: alsa-lib-devel >= 0.9 | |
cee2dd04 JB |
38 | %{?with_faad:BuildRequires: faad2-devel} |
39 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} | |
40 | %{?with_freetype:BuildRequires: freetype-devel} | |
13701c20 | 41 | BuildRequires: jack-audio-connection-kit-devel |
cee2dd04 JB |
42 | %{?with_js:BuildRequires: js-devel} |
43 | %{?with_jpeg:BuildRequires: libjpeg-devel} | |
44 | %{?with_mad:BuildRequires: libmad-devel} | |
13701c20 | 45 | BuildRequires: libogg-devel |
cee2dd04 | 46 | %{?with_png:BuildRequires: libpng-devel} |
13701c20 JB |
47 | BuildRequires: libtheora-devel |
48 | BuildRequires: libvorbis-devel | |
6dcdf31e | 49 | BuildRequires: libxml2-devel |
13701c20 JB |
50 | BuildRequires: openjpeg-devel |
51 | BuildRequires: pulseaudio-devel | |
60486834 | 52 | BuildRequires: rpmbuild(macros) >= 1.357 |
b676b63c | 53 | BuildRequires: unzip |
f0a57dca | 54 | %{?with_wx:BuildRequires: wxGTK2-devel >= 2.5.4} |
13701c20 JB |
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 | |
cee2dd04 | 60 | %{?with_xvid:BuildRequires: xvid-devel} |
5f694ea5 | 61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
63 | %description | |
b2995149 | 64 | GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC |
65 | 14496-1) developed from scratch in ANSI C. | |
5f694ea5 | 66 | |
b2995149 | 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. | |
5f694ea5 | 77 | |
80b9bf8c | 78 | %description -l pl.UTF-8 |
cee2dd04 JB |
79 | GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) |
80 | stworzona od zera w ANSI C. | |
81 | ||
80b9bf8c JR |
82 | Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej |
83 | dla jak największej liczby ludzi), małej i elastycznej alternatywy dla | |
cee2dd04 JB |
84 | wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i |
85 | rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4 | |
80b9bf8c JR |
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. | |
cee2dd04 | 92 | |
84d02762 | 93 | %package -n browser-plugin-%{name} |
94 | Summary: GPAC browser plugin | |
5dbd083d | 95 | Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW |
84d02762 | 96 | Group: X11/Libraries |
97 | Requires: %{name} = %{version}-%{release} | |
60486834 ER |
98 | Requires: browser-plugins >= 2.0 |
99 | Requires: browser-plugins(%{_target_base_arch}) | |
84d02762 | 100 | |
101 | %description -n browser-plugin-%{name} | |
102 | GPAC plugin for Netscape-compatible WWW browsers. | |
103 | ||
80b9bf8c JR |
104 | %description -n browser-plugin-%{name} -l pl.UTF-8 |
105 | Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape. | |
84d02762 | 106 | |
5f694ea5 | 107 | %prep |
f0a57dca ER |
108 | %setup -q -n %{name} |
109 | %patch0 -p1 | |
6dcdf31e | 110 | %{?with_wx:%patch1 -p1} |
267232dd | 111 | %patch2 -p1 |
5eb82e91 | 112 | %patch3 -p1 |
13701c20 JB |
113 | %patch4 -p1 |
114 | ||
cee2dd04 | 115 | %if %{with amr} |
5f694ea5 | 116 | mkdir -p Plugins/amr_dec/AMR_NB |
117 | cd Plugins/amr_dec/AMR_NB | |
6f5d48c3 | 118 | unzip -j %{SOURCE1} |
5f694ea5 | 119 | unzip -j 26073-530_ANSI_C_source_code.zip |
064b0670 | 120 | cd ../../.. |
5f694ea5 | 121 | %endif |
e25a2665 | 122 | chmod a+x configure |
5f694ea5 | 123 | |
5f694ea5 | 124 | %build |
13701c20 JB |
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 ../.. | |
cee2dd04 | 130 | %configure \ |
13701c20 JB |
131 | --X11-path=/usr \ |
132 | --cc="%{__cc}" \ | |
133 | --disable-opt \ | |
f0a57dca | 134 | %{?with_amr:--enable-amr-nb} \ |
13701c20 JB |
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" | |
5f694ea5 | 149 | |
35738b12 | 150 | %{__make} -j1 \ |
13701c20 | 151 | libdir=%{_lib} |
5f694ea5 | 152 | |
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
156 | %{__make} install \ | |
13701c20 JB |
157 | DESTDIR=$RPM_BUILD_ROOT \ |
158 | libdir=%{_lib} \ | |
60486834 | 159 | MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir} |
5f694ea5 | 160 | |
5f694ea5 | 161 | %clean |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %post -p /sbin/ldconfig | |
165 | %postun -p /sbin/ldconfig | |
166 | ||
60486834 ER |
167 | %post -n browser-plugin-%{name} |
168 | %update_browser_plugins | |
84d02762 | 169 | |
60486834 ER |
170 | %postun -n browser-plugin-%{name} |
171 | if [ "$1" = 0 ]; then | |
172 | %update_browser_plugins | |
84d02762 | 173 | fi |
174 | ||
5f694ea5 | 175 | %files |
176 | %defattr(644,root,root,755) | |
e51b2790 | 177 | %doc AUTHORS BUGS Changelog README TODO |
13701c20 JB |
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 | |
4979ec52 | 182 | %dir %{_libdir}/gpac |
13701c20 JB |
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* | |
84d02762 | 188 | |
189 | %files -n browser-plugin-%{name} | |
190 | %defattr(644,root,root,755) | |
60486834 ER |
191 | %attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so |
192 | %{_browserpluginsdir}/nposmozilla.xpt |