]> git.pld-linux.org Git - packages/gpac.git/blame - gpac.spec
- release 4
[packages/gpac.git] / gpac.spec
CommitLineData
4979ec52 1#
cee2dd04 2# Conditional build:
0f42ec7c 3%bcond_with amr # AMR-NB and AMR-WB (floating-point) support
13701c20
JB
4%bcond_without faad # AAC decoding support
5%bcond_without ffmpeg # ffmpeg support
6%bcond_without freetype # freetype support
7%bcond_without jpeg # JPEG support
8%bcond_without js # JavaScript support
9%bcond_without mad # MP3 support
10%bcond_without png # PNG support
11%bcond_without xvid # xvid support
0f42ec7c 12%bcond_without wx # wxWidgets support
cee2dd04 13#
b2995149 14Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1)
5dbd083d 15Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
5f694ea5 16Name: gpac
13701c20 17Version: 0.4.5
ac1e6cf8 18Release: 4
13701c20
JB
19License: LGPL v2+
20Group: Applications/Multimedia
21Source0: http://downloads.sourceforge.net/gpac/%{name}-%{version}.tar.gz
22# Source0-md5: 755e8c438a48ebdb13525dd491f5b0d1
e25a2665 23Patch0: %{name}-install.patch
0f42ec7c
JB
24Patch1: %{name}-libpng.patch
25Patch2: %{name}-pic.patch
26Patch3: %{name}-xulrunner.patch
27Patch4: %{name}-amr.patch
ab82664f 28Patch5: %{name}-ffmpeg.patch
c59004e5 29Patch6: %{name}-install-is-not-clean.patch
a8c7bdfb 30Patch7: %{name}-flags.patch
9cf5dcbc 31Patch8: %{name}-ffmpeg-0.8.patch
5f694ea5 32URL: http://gpac.sourceforge.net/
f0a57dca 33BuildRequires: SDL-devel
13701c20
JB
34BuildRequires: a52dec-libs-devel
35BuildRequires: alsa-lib-devel >= 0.9
0f42ec7c
JB
36%{?with_amr:BuildRequires: amrnb-devel}
37%{?with_amr:BuildRequires: amrwb-devel}
cee2dd04 38%{?with_faad:BuildRequires: faad2-devel}
9c5072f3 39%{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.6}
cee2dd04 40%{?with_freetype:BuildRequires: freetype-devel}
13701c20 41BuildRequires: 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 45BuildRequires: libogg-devel
cee2dd04 46%{?with_png:BuildRequires: libpng-devel}
13701c20
JB
47BuildRequires: libtheora-devel
48BuildRequires: libvorbis-devel
6dcdf31e 49BuildRequires: libxml2-devel
13701c20
JB
50BuildRequires: openjpeg-devel
51BuildRequires: pulseaudio-devel
60486834 52BuildRequires: rpmbuild(macros) >= 1.357
0f42ec7c 53BuildRequires: sed >= 4.0
b676b63c 54BuildRequires: unzip
0f42ec7c 55%{?with_wx:BuildRequires: wxGTK2-devel >= 2.6.0}
a8c7bdfb 56BuildRequires: xmlrpc-c-server-devel
13701c20
JB
57BuildRequires: xorg-lib-libXext-devel
58BuildRequires: xorg-lib-libXv-devel
59BuildRequires: xulrunner-devel >= 1.9.1
cee2dd04 60%{?with_xvid:BuildRequires: xvid-devel}
5f694ea5 61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63%description
b2995149 64GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC
6514496-1) developed from scratch in ANSI C.
5f694ea5 66
b2995149 67The main development goal is to provide a clean (a.k.a. readable by as
68many people as possible), small and flexible alternative to the MPEG-4
69Systems reference software (known as IM1 and distributed in ISO/IEC
7014496-5). The MPEG-4 Reference software is indeed a very large piece
71of software, designed to verify the standard rather than provide a
72small, production-stable software. GPAC is written in ANSI C for
73portability reasons (embedded platforms and DSPs) with a simple goal:
74keep the memory footprint as low as possible. The project will at term
75provide player(s), systems encoders and publishing tools for content
76distribution.
5f694ea5 77
80b9bf8c 78%description -l pl.UTF-8
cee2dd04
JB
79GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
80stworzona od zera w ANSI C.
81
80b9bf8c
JR
82Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej
83dla jak największej liczby ludzi), małej i elastycznej alternatywy dla
cee2dd04
JB
84wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i
85rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4
80b9bf8c
JR
86jest bardzo dużą porcją kodu, zaprojektowaną raczej do zweryfikowania
87standardu niż dostarczenia małej, stabilnej wersji produkcyjnej. GPAC
88jest pisany w ANSI C ze względu na przenośność (platformy wbudowane i
89DSP) z prostym celem: wymagać tak mało pamięci, jak to tylko możliwe.
90Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia
91do publikacji w celu dystrybucji materiałów.
cee2dd04 92
9cf5dcbc
JB
93%package devel
94Summary: Header files for GPAC library
95Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPAC
96Group: Development/Libraries
97Requires: %{name} = %{version}-%{release}
98
99%description devel
100Header files for GPAC library.
101
102%description devel -l pl.UTF-8
103Pliki nagłówkowe biblioteki GPAC.
104
0f42ec7c
JB
105%package gui
106Summary: wxWidgets-based GUI for GPAC
107Summary(pl.UTF-8): Oparty na wxWidgets graficzny interfejs do GPAC
108Group: X11/Applications/Multimedia
109Requires: %{name} = %{version}-%{release}
110
111%description gui
112Osmo4 - wxWidgets-based GUI for GPAC.
113
114%description gui -l pl.UTF-8
115Osmo4 - oparty na wxWidgets graficzny interfejs do GPAC.
116
84d02762 117%package -n browser-plugin-%{name}
118Summary: GPAC browser plugin
5dbd083d 119Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW
84d02762 120Group: X11/Libraries
121Requires: %{name} = %{version}-%{release}
60486834
ER
122Requires: browser-plugins >= 2.0
123Requires: browser-plugins(%{_target_base_arch})
84d02762 124
125%description -n browser-plugin-%{name}
126GPAC plugin for Netscape-compatible WWW browsers.
127
80b9bf8c
JR
128%description -n browser-plugin-%{name} -l pl.UTF-8
129Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape.
84d02762 130
5f694ea5 131%prep
f0a57dca
ER
132%setup -q -n %{name}
133%patch0 -p1
0f42ec7c 134%patch1 -p1
267232dd 135%patch2 -p1
5eb82e91 136%patch3 -p1
13701c20 137%patch4 -p1
ab82664f 138%patch5 -p1
c59004e5 139%patch6 -p1
a8c7bdfb 140%patch7 -p1
9cf5dcbc 141%patch8 -p1
13701c20 142
cee2dd04 143%if %{with amr}
0f42ec7c 144sed -i -e 's/amr_\([nw]b\)_ft/amr\1/' modules/amr_float_dec/amr_float_dec.c
5f694ea5 145%endif
0f42ec7c 146sed -i -e 's/wx-config/wx-gtk2-unicode-config/' configure
e25a2665 147chmod a+x configure
5f694ea5 148
5f694ea5 149%build
13701c20
JB
150cd applications/osmozilla
151xpidl -m header -I /usr/share/idl/xulrunner nsIOsmozilla.idl
152xpidl -m typelib -I /usr/share/idl/xulrunner nsIOsmozilla.idl
153cp -f nsIOsmozilla.xpt nsIOsmozilla.xpt_linux
154cd ../..
cee2dd04 155%configure \
13701c20
JB
156 --X11-path=/usr \
157 --cc="%{__cc}" \
158 --disable-opt \
0f42ec7c
JB
159 %{!?with_wx:--disable-wx} \
160 %{?with_amr:--enable-amr} \
13701c20
JB
161 --enable-joystick \
162 --enable-pic \
163 --extra-cflags="%{rpmcflags}" \
164 --extra-ldflags="%{rpmldflags}" \
165 --mozdir=%{_browserpluginsdir} \
166 %{!?with_faad:--use-faad=no} \
167 %{!?with_ffmpeg:--use-ffmpeg=no} \
168 %{!?with_freetype:--use-ft=no} \
169 %{!?with_jpeg:--use-jpeg=no} \
170 %{!?with_js:--use-js=no} \
171 %{!?with_mad:--use-mad=no} \
172 %{!?with_png:--use-png=no} \
173 %{!?with_xvid:--use-xvid=no} \
174 --xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr"
5f694ea5 175
35738b12 176%{__make} -j1 \
c59004e5 177 BUILD_INSTALL=yes \
9c5072f3 178 CXX="%{__cxx} -fPIC" \
13701c20 179 libdir=%{_lib}
5f694ea5 180
181%install
182rm -rf $RPM_BUILD_ROOT
183
184%{__make} install \
13701c20
JB
185 DESTDIR=$RPM_BUILD_ROOT \
186 libdir=%{_lib} \
60486834 187 MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir}
5f694ea5 188
9cf5dcbc
JB
189install -d $RPM_BUILD_ROOT%{_includedir}
190cp -a include/gpac $RPM_BUILD_ROOT%{_includedir}/gpac
191
5f694ea5 192%clean
193rm -rf $RPM_BUILD_ROOT
194
195%post -p /sbin/ldconfig
196%postun -p /sbin/ldconfig
197
60486834
ER
198%post -n browser-plugin-%{name}
199%update_browser_plugins
84d02762 200
60486834
ER
201%postun -n browser-plugin-%{name}
202if [ "$1" = 0 ]; then
203 %update_browser_plugins
84d02762 204fi
205
5f694ea5 206%files
207%defattr(644,root,root,755)
e51b2790 208%doc AUTHORS BUGS Changelog README TODO
13701c20
JB
209%attr(755,root,root) %{_bindir}/MP4Box
210%attr(755,root,root) %{_bindir}/MP4Client
211%attr(755,root,root) %{_libdir}/libgpac-%{version}.so
9cf5dcbc 212%attr(755,root,root) %ghost %{_libdir}/libgpac.so
4979ec52 213%dir %{_libdir}/gpac
13701c20
JB
214%attr(755,root,root) %{_libdir}/gpac/gm_*.so
215%{_datadir}/gpac
216%{_mandir}/man1/gpac.1*
217%{_mandir}/man1/mp4box.1*
218%{_mandir}/man1/mp4client.1*
84d02762 219
9cf5dcbc
JB
220%files devel
221%defattr(644,root,root,755)
222%{_includedir}/gpac
223
0f42ec7c
JB
224%files gui
225%defattr(644,root,root,755)
226%attr(755,root,root) %{_bindir}/Osmo4
227
84d02762 228%files -n browser-plugin-%{name}
229%defattr(644,root,root,755)
60486834
ER
230%attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so
231%{_browserpluginsdir}/nposmozilla.xpt
This page took 0.102378 seconds and 4 git commands to generate.