]> git.pld-linux.org Git - packages/gpac.git/blame - gpac.spec
- dropped outdated wxWidgets patch, use sed call to set wx-config path;
[packages/gpac.git] / gpac.spec
CommitLineData
60486834 1# TODO
13701c20 2# - FFMPEG: local
4979ec52 3#
cee2dd04 4# Conditional build:
0f42ec7c 5%bcond_with amr # AMR-NB and AMR-WB (floating-point) support
13701c20
JB
6%bcond_without faad # AAC decoding support
7%bcond_without ffmpeg # ffmpeg support
8%bcond_without freetype # freetype support
9%bcond_without jpeg # JPEG support
10%bcond_without js # JavaScript support
11%bcond_without mad # MP3 support
12%bcond_without png # PNG support
13%bcond_without xvid # xvid support
0f42ec7c 14%bcond_without wx # wxWidgets support
cee2dd04 15#
b2995149 16Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1)
5dbd083d 17Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
5f694ea5 18Name: gpac
13701c20 19Version: 0.4.5
0f42ec7c 20Release: 0.2
13701c20
JB
21License: LGPL v2+
22Group: Applications/Multimedia
23Source0: http://downloads.sourceforge.net/gpac/%{name}-%{version}.tar.gz
24# Source0-md5: 755e8c438a48ebdb13525dd491f5b0d1
e25a2665 25Patch0: %{name}-install.patch
0f42ec7c
JB
26Patch1: %{name}-libpng.patch
27Patch2: %{name}-pic.patch
28Patch3: %{name}-xulrunner.patch
29Patch4: %{name}-amr.patch
5f694ea5 30URL: http://gpac.sourceforge.net/
f0a57dca 31BuildRequires: SDL-devel
13701c20
JB
32BuildRequires: a52dec-libs-devel
33BuildRequires: alsa-lib-devel >= 0.9
0f42ec7c
JB
34%{?with_amr:BuildRequires: amrnb-devel}
35%{?with_amr:BuildRequires: amrwb-devel}
cee2dd04
JB
36%{?with_faad:BuildRequires: faad2-devel}
37%{?with_ffmpeg:BuildRequires: ffmpeg-devel}
38%{?with_freetype:BuildRequires: freetype-devel}
13701c20 39BuildRequires: jack-audio-connection-kit-devel
cee2dd04
JB
40%{?with_js:BuildRequires: js-devel}
41%{?with_jpeg:BuildRequires: libjpeg-devel}
42%{?with_mad:BuildRequires: libmad-devel}
13701c20 43BuildRequires: libogg-devel
cee2dd04 44%{?with_png:BuildRequires: libpng-devel}
13701c20
JB
45BuildRequires: libtheora-devel
46BuildRequires: libvorbis-devel
6dcdf31e 47BuildRequires: libxml2-devel
13701c20
JB
48BuildRequires: openjpeg-devel
49BuildRequires: pulseaudio-devel
60486834 50BuildRequires: rpmbuild(macros) >= 1.357
0f42ec7c 51BuildRequires: sed >= 4.0
b676b63c 52BuildRequires: unzip
0f42ec7c 53%{?with_wx:BuildRequires: wxGTK2-devel >= 2.6.0}
13701c20
JB
54# -server
55BuildRequires: xmlrpc-c-devel
56BuildRequires: xorg-lib-libXext-devel
57BuildRequires: xorg-lib-libXv-devel
58BuildRequires: xulrunner-devel >= 1.9.1
cee2dd04 59%{?with_xvid:BuildRequires: xvid-devel}
5f694ea5 60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62%description
b2995149 63GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC
6414496-1) developed from scratch in ANSI C.
5f694ea5 65
b2995149 66The main development goal is to provide a clean (a.k.a. readable by as
67many people as possible), small and flexible alternative to the MPEG-4
68Systems reference software (known as IM1 and distributed in ISO/IEC
6914496-5). The MPEG-4 Reference software is indeed a very large piece
70of software, designed to verify the standard rather than provide a
71small, production-stable software. GPAC is written in ANSI C for
72portability reasons (embedded platforms and DSPs) with a simple goal:
73keep the memory footprint as low as possible. The project will at term
74provide player(s), systems encoders and publishing tools for content
75distribution.
5f694ea5 76
80b9bf8c 77%description -l pl.UTF-8
cee2dd04
JB
78GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
79stworzona od zera w ANSI C.
80
80b9bf8c
JR
81Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej
82dla jak największej liczby ludzi), małej i elastycznej alternatywy dla
cee2dd04
JB
83wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i
84rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4
80b9bf8c
JR
85jest bardzo dużą porcją kodu, zaprojektowaną raczej do zweryfikowania
86standardu niż dostarczenia małej, stabilnej wersji produkcyjnej. GPAC
87jest pisany w ANSI C ze względu na przenośność (platformy wbudowane i
88DSP) z prostym celem: wymagać tak mało pamięci, jak to tylko możliwe.
89Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia
90do publikacji w celu dystrybucji materiałów.
cee2dd04 91
0f42ec7c
JB
92%package gui
93Summary: wxWidgets-based GUI for GPAC
94Summary(pl.UTF-8): Oparty na wxWidgets graficzny interfejs do GPAC
95Group: X11/Applications/Multimedia
96Requires: %{name} = %{version}-%{release}
97
98%description gui
99Osmo4 - wxWidgets-based GUI for GPAC.
100
101%description gui -l pl.UTF-8
102Osmo4 - oparty na wxWidgets graficzny interfejs do GPAC.
103
84d02762 104%package -n browser-plugin-%{name}
105Summary: GPAC browser plugin
5dbd083d 106Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW
84d02762 107Group: X11/Libraries
108Requires: %{name} = %{version}-%{release}
60486834
ER
109Requires: browser-plugins >= 2.0
110Requires: browser-plugins(%{_target_base_arch})
84d02762 111
112%description -n browser-plugin-%{name}
113GPAC plugin for Netscape-compatible WWW browsers.
114
80b9bf8c
JR
115%description -n browser-plugin-%{name} -l pl.UTF-8
116Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape.
84d02762 117
5f694ea5 118%prep
f0a57dca
ER
119%setup -q -n %{name}
120%patch0 -p1
0f42ec7c 121%patch1 -p1
267232dd 122%patch2 -p1
5eb82e91 123%patch3 -p1
13701c20
JB
124%patch4 -p1
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.053169 seconds and 4 git commands to generate.