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