]>
Commit | Line | Data |
---|---|---|
60486834 ER |
1 | # TODO |
2 | # - soname for libm4systems(?) | |
d4565eb8 | 3 | # - use system mozilla includes |
35738b12 ER |
4 | # - ./configure[692]: wx-config: not found |
5 | # - ./configure[693]: wx-config: not found | |
6 | # - CC, CFLAGS | |
7 | # - Xiph Theora: no | |
4979ec52 | 8 | # |
cee2dd04 | 9 | # Conditional build: |
5f694ea5 | 10 | %bcond_with amr |
5f694ea5 | 11 | %bcond_without faad |
cee2dd04 JB |
12 | %bcond_without ffmpeg |
13 | %bcond_without freetype | |
5f694ea5 | 14 | %bcond_without jpeg |
cee2dd04 | 15 | %bcond_without js |
5f694ea5 | 16 | %bcond_without mad |
cee2dd04 | 17 | %bcond_without png |
5f694ea5 | 18 | %bcond_without xvid |
6dcdf31e | 19 | %bcond_with wx |
cee2dd04 | 20 | # |
b2995149 | 21 | Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) |
5dbd083d | 22 | Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) |
5f694ea5 | 23 | Name: gpac |
84d02762 | 24 | Version: 0.4.0 |
60486834 | 25 | Release: 4 |
84d02762 | 26 | License: LGPL |
5f694ea5 | 27 | Group: Applications |
cee2dd04 | 28 | Source0: http://dl.sourceforge.net/gpac/%{name}-%{version}.tar.gz |
84d02762 | 29 | # Source0-md5: a8b4b3206cabda946850240f1e7aea93 |
5f694ea5 | 30 | Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip |
31 | # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1 | |
e25a2665 | 32 | Patch0: %{name}-install.patch |
6dcdf31e | 33 | Patch1: %{name}-wxWidgets.patch |
267232dd | 34 | Patch2: %{name}-amd64.patch |
5eb82e91 | 35 | Patch3: %{name}-libdir.patch |
5f694ea5 | 36 | URL: http://gpac.sourceforge.net/ |
f0a57dca | 37 | BuildRequires: SDL-devel |
cee2dd04 JB |
38 | %{?with_faad:BuildRequires: faad2-devel} |
39 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} | |
40 | %{?with_freetype:BuildRequires: freetype-devel} | |
41 | %{?with_js:BuildRequires: js-devel} | |
42 | %{?with_jpeg:BuildRequires: libjpeg-devel} | |
43 | %{?with_mad:BuildRequires: libmad-devel} | |
44 | %{?with_png:BuildRequires: libpng-devel} | |
6dcdf31e | 45 | BuildRequires: libxml2-devel |
60486834 | 46 | BuildRequires: rpmbuild(macros) >= 1.357 |
f0a57dca | 47 | %{?with_wx:BuildRequires: wxGTK2-devel >= 2.5.4} |
cee2dd04 | 48 | %{?with_xvid:BuildRequires: xvid-devel} |
5f694ea5 | 49 | Requires: SDL |
cee2dd04 JB |
50 | %{?with_faad:Requires: faad2} |
51 | %{?with_ffmpeg:Requires: ffmpeg} | |
52 | %{?with_freetype:Requires: freetype} | |
53 | %{?with_js:Requires: js} | |
e25a2665 | 54 | %{?with_jpeg:Requires: libjpeg} |
cee2dd04 | 55 | %{?with_mad:Requires: libmad} |
f0a57dca | 56 | %{?with_png:Requires: libpng} |
cee2dd04 | 57 | %{?with_xvid:Requires: xvid} |
5f694ea5 | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59 | ||
e25a2665 | 60 | %define _noautoreq libm4systems.so |
61 | ||
5f694ea5 | 62 | %description |
b2995149 | 63 | GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC |
64 | 14496-1) developed from scratch in ANSI C. | |
5f694ea5 | 65 | |
b2995149 | 66 | The main development goal is to provide a clean (a.k.a. readable by as |
67 | many people as possible), small and flexible alternative to the MPEG-4 | |
68 | Systems reference software (known as IM1 and distributed in ISO/IEC | |
69 | 14496-5). The MPEG-4 Reference software is indeed a very large piece | |
70 | of software, designed to verify the standard rather than provide a | |
71 | small, production-stable software. GPAC is written in ANSI C for | |
72 | portability reasons (embedded platforms and DSPs) with a simple goal: | |
73 | keep the memory footprint as low as possible. The project will at term | |
74 | provide player(s), systems encoders and publishing tools for content | |
75 | distribution. | |
5f694ea5 | 76 | |
80b9bf8c | 77 | %description -l pl.UTF-8 |
cee2dd04 JB |
78 | GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) |
79 | stworzona od zera w ANSI C. | |
80 | ||
80b9bf8c JR |
81 | Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej |
82 | dla jak największej liczby ludzi), małej i elastycznej alternatywy dla | |
cee2dd04 JB |
83 | wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i |
84 | rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4 | |
80b9bf8c JR |
85 | jest bardzo dużą porcją kodu, zaprojektowaną raczej do zweryfikowania |
86 | standardu niż dostarczenia małej, stabilnej wersji produkcyjnej. GPAC | |
87 | jest pisany w ANSI C ze względu na przenośność (platformy wbudowane i | |
88 | DSP) z prostym celem: wymagać tak mało pamięci, jak to tylko możliwe. | |
89 | Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia | |
90 | do publikacji w celu dystrybucji materiałów. | |
cee2dd04 | 91 | |
84d02762 | 92 | %package -n browser-plugin-%{name} |
93 | Summary: GPAC browser plugin | |
5dbd083d | 94 | Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW |
84d02762 | 95 | Group: X11/Libraries |
96 | Requires: %{name} = %{version}-%{release} | |
60486834 ER |
97 | Requires: browser-plugins >= 2.0 |
98 | Requires: browser-plugins(%{_target_base_arch}) | |
84d02762 | 99 | |
100 | %description -n browser-plugin-%{name} | |
101 | GPAC plugin for Netscape-compatible WWW browsers. | |
102 | ||
80b9bf8c JR |
103 | %description -n browser-plugin-%{name} -l pl.UTF-8 |
104 | Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape. | |
84d02762 | 105 | |
5f694ea5 | 106 | %prep |
f0a57dca ER |
107 | %setup -q -n %{name} |
108 | %patch0 -p1 | |
6dcdf31e | 109 | %{?with_wx:%patch1 -p1} |
267232dd | 110 | %patch2 -p1 |
5eb82e91 | 111 | %patch3 -p1 |
cee2dd04 | 112 | %if %{with amr} |
5f694ea5 | 113 | mkdir -p Plugins/amr_dec/AMR_NB |
114 | cd Plugins/amr_dec/AMR_NB | |
6f5d48c3 | 115 | unzip -j %{SOURCE1} |
5f694ea5 | 116 | unzip -j 26073-530_ANSI_C_source_code.zip |
064b0670 | 117 | cd ../../.. |
5f694ea5 | 118 | %endif |
e25a2665 | 119 | chmod a+x configure |
5f694ea5 | 120 | |
dccb2221 | 121 | # files for w32 and Linux were swapped |
84d02762 | 122 | rm -rf applications/osmozilla/nsIOsmozilla.xpt_linux |
123 | mv applications/osmozilla/nsIOsmozilla.xpt_w32 applications/osmozilla/nsIOsmozilla.xpt_linux | |
124 | ||
5f694ea5 | 125 | %build |
cee2dd04 | 126 | %configure \ |
bfe128ea | 127 | --extra-cflags="-fPIC" \ |
128 | --extra-ldflags="-fPIC" \ | |
f0a57dca ER |
129 | --enable-oss-audio \ |
130 | %{?with_amr:--enable-amr-nb} \ | |
131 | %{!?with_faad:--disable-faad} \ | |
132 | %{!?with_ffmpeg:--disable-ffmpeg} \ | |
133 | %{!?with_freetype:--disable-ft} \ | |
134 | %{!?with_jpeg:--disable-jpeg} \ | |
135 | %{!?with_js:--disable-js} \ | |
136 | %{!?with_mad:--disable-mad} \ | |
137 | %{!?with_png:--disable-png} \ | |
138 | %{!?with_xvid:--disable-xvid} | |
5f694ea5 | 139 | |
35738b12 | 140 | %{__make} -j1 \ |
5eb82e91 | 141 | XLIBDIR="/usr/X11R6/%{_lib}" \ |
5f694ea5 | 142 | DESTDIR=$RPM_BUILD_ROOT |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %{__make} install \ | |
148 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
149 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
e25a2665 | 150 | mandir=$RPM_BUILD_ROOT%{_mandir} \ |
dccb2221 JB |
151 | plugdir=$RPM_BUILD_ROOT%{_libdir}/gpac \ |
152 | real_plugdir=%{_libdir}/gpac \ | |
f0a57dca | 153 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
60486834 | 154 | MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir} |
5f694ea5 | 155 | |
5f694ea5 | 156 | %clean |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
159 | %post -p /sbin/ldconfig | |
160 | %postun -p /sbin/ldconfig | |
161 | ||
60486834 ER |
162 | %post -n browser-plugin-%{name} |
163 | %update_browser_plugins | |
84d02762 | 164 | |
60486834 ER |
165 | %postun -n browser-plugin-%{name} |
166 | if [ "$1" = 0 ]; then | |
167 | %update_browser_plugins | |
84d02762 | 168 | fi |
169 | ||
5f694ea5 | 170 | %files |
171 | %defattr(644,root,root,755) | |
e51b2790 | 172 | %doc AUTHORS BUGS Changelog README TODO |
5f694ea5 | 173 | %attr(755,root,root) %{_bindir}/* |
4979ec52 JB |
174 | %attr(755,root,root) %{_libdir}/lib*.so |
175 | %dir %{_libdir}/gpac | |
176 | %attr(755,root,root) %{_libdir}/gpac/*.so | |
5f694ea5 | 177 | %{_mandir}/man1/* |
84d02762 | 178 | |
179 | %files -n browser-plugin-%{name} | |
180 | %defattr(644,root,root,755) | |
60486834 ER |
181 | %attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so |
182 | %{_browserpluginsdir}/nposmozilla.xpt |