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