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