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