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