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