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