]> git.pld-linux.org Git - packages/gpac.git/blame - gpac.spec
- tabs in preamble
[packages/gpac.git] / gpac.spec
CommitLineData
60486834
ER
1# TODO
2# - soname for libm4systems(?)
d4565eb8 3# - use system mozilla includes
35738b12
ER
4# - ./configure[692]: wx-config: not found
5# - ./configure[693]: wx-config: not found
6# - CC, CFLAGS
7# - Xiph Theora: no
4979ec52 8#
cee2dd04 9# Conditional build:
5f694ea5 10%bcond_with amr
5f694ea5 11%bcond_without faad
cee2dd04
JB
12%bcond_without ffmpeg
13%bcond_without freetype
5f694ea5 14%bcond_without jpeg
cee2dd04 15%bcond_without js
5f694ea5 16%bcond_without mad
cee2dd04 17%bcond_without png
5f694ea5 18%bcond_without xvid
6dcdf31e 19%bcond_with wx
cee2dd04 20#
b2995149 21Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1)
5dbd083d 22Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
5f694ea5 23Name: gpac
84d02762 24Version: 0.4.0
60486834 25Release: 4
84d02762 26License: LGPL
5f694ea5 27Group: Applications
cee2dd04 28Source0: http://dl.sourceforge.net/gpac/%{name}-%{version}.tar.gz
84d02762 29# Source0-md5: a8b4b3206cabda946850240f1e7aea93
5f694ea5 30Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip
31# Source1-md5: 705f6993fbf890e92eb7a331e7c716d1
e25a2665 32Patch0: %{name}-install.patch
6dcdf31e 33Patch1: %{name}-wxWidgets.patch
267232dd 34Patch2: %{name}-amd64.patch
5eb82e91 35Patch3: %{name}-libdir.patch
5f694ea5 36URL: http://gpac.sourceforge.net/
f0a57dca 37BuildRequires: SDL-devel
cee2dd04
JB
38%{?with_faad:BuildRequires: faad2-devel}
39%{?with_ffmpeg:BuildRequires: ffmpeg-devel}
40%{?with_freetype:BuildRequires: freetype-devel}
41%{?with_js:BuildRequires: js-devel}
42%{?with_jpeg:BuildRequires: libjpeg-devel}
43%{?with_mad:BuildRequires: libmad-devel}
44%{?with_png:BuildRequires: libpng-devel}
6dcdf31e 45BuildRequires: libxml2-devel
60486834 46BuildRequires: rpmbuild(macros) >= 1.357
f0a57dca 47%{?with_wx:BuildRequires: wxGTK2-devel >= 2.5.4}
cee2dd04 48%{?with_xvid:BuildRequires: xvid-devel}
5f694ea5 49Requires: SDL
cee2dd04
JB
50%{?with_faad:Requires: faad2}
51%{?with_ffmpeg:Requires: ffmpeg}
52%{?with_freetype:Requires: freetype}
53%{?with_js:Requires: js}
e25a2665 54%{?with_jpeg:Requires: libjpeg}
cee2dd04 55%{?with_mad:Requires: libmad}
f0a57dca 56%{?with_png:Requires: libpng}
cee2dd04 57%{?with_xvid:Requires: xvid}
5f694ea5 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
e25a2665 60%define _noautoreq libm4systems.so
61
5f694ea5 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
84d02762 92%package -n browser-plugin-%{name}
93Summary: GPAC browser plugin
5dbd083d 94Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW
84d02762 95Group: X11/Libraries
96Requires: %{name} = %{version}-%{release}
60486834
ER
97Requires: browser-plugins >= 2.0
98Requires: browser-plugins(%{_target_base_arch})
84d02762 99
100%description -n browser-plugin-%{name}
101GPAC plugin for Netscape-compatible WWW browsers.
102
80b9bf8c
JR
103%description -n browser-plugin-%{name} -l pl.UTF-8
104Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape.
84d02762 105
5f694ea5 106%prep
f0a57dca
ER
107%setup -q -n %{name}
108%patch0 -p1
6dcdf31e 109%{?with_wx:%patch1 -p1}
267232dd 110%patch2 -p1
5eb82e91 111%patch3 -p1
cee2dd04 112%if %{with amr}
5f694ea5 113mkdir -p Plugins/amr_dec/AMR_NB
114cd Plugins/amr_dec/AMR_NB
6f5d48c3 115unzip -j %{SOURCE1}
5f694ea5 116unzip -j 26073-530_ANSI_C_source_code.zip
064b0670 117cd ../../..
5f694ea5 118%endif
e25a2665 119chmod a+x configure
5f694ea5 120
dccb2221 121# files for w32 and Linux were swapped
84d02762 122rm -rf applications/osmozilla/nsIOsmozilla.xpt_linux
123mv applications/osmozilla/nsIOsmozilla.xpt_w32 applications/osmozilla/nsIOsmozilla.xpt_linux
124
5f694ea5 125%build
cee2dd04 126%configure \
bfe128ea 127 --extra-cflags="-fPIC" \
128 --extra-ldflags="-fPIC" \
f0a57dca
ER
129 --enable-oss-audio \
130 %{?with_amr:--enable-amr-nb} \
131 %{!?with_faad:--disable-faad} \
132 %{!?with_ffmpeg:--disable-ffmpeg} \
133 %{!?with_freetype:--disable-ft} \
134 %{!?with_jpeg:--disable-jpeg} \
135 %{!?with_js:--disable-js} \
136 %{!?with_mad:--disable-mad} \
137 %{!?with_png:--disable-png} \
138 %{!?with_xvid:--disable-xvid}
5f694ea5 139
35738b12 140%{__make} -j1 \
5eb82e91 141 XLIBDIR="/usr/X11R6/%{_lib}" \
5f694ea5 142 DESTDIR=$RPM_BUILD_ROOT
143
144%install
145rm -rf $RPM_BUILD_ROOT
146
147%{__make} install \
148 bindir=$RPM_BUILD_ROOT%{_bindir} \
149 libdir=$RPM_BUILD_ROOT%{_libdir} \
e25a2665 150 mandir=$RPM_BUILD_ROOT%{_mandir} \
dccb2221
JB
151 plugdir=$RPM_BUILD_ROOT%{_libdir}/gpac \
152 real_plugdir=%{_libdir}/gpac \
f0a57dca 153 prefix=$RPM_BUILD_ROOT%{_prefix} \
60486834 154 MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir}
5f694ea5 155
5f694ea5 156%clean
157rm -rf $RPM_BUILD_ROOT
158
159%post -p /sbin/ldconfig
160%postun -p /sbin/ldconfig
161
60486834
ER
162%post -n browser-plugin-%{name}
163%update_browser_plugins
84d02762 164
60486834
ER
165%postun -n browser-plugin-%{name}
166if [ "$1" = 0 ]; then
167 %update_browser_plugins
84d02762 168fi
169
5f694ea5 170%files
171%defattr(644,root,root,755)
e51b2790 172%doc AUTHORS BUGS Changelog README TODO
5f694ea5 173%attr(755,root,root) %{_bindir}/*
4979ec52
JB
174%attr(755,root,root) %{_libdir}/lib*.so
175%dir %{_libdir}/gpac
176%attr(755,root,root) %{_libdir}/gpac/*.so
5f694ea5 177%{_mandir}/man1/*
84d02762 178
179%files -n browser-plugin-%{name}
180%defattr(644,root,root,755)
60486834
ER
181%attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so
182%{_browserpluginsdir}/nposmozilla.xpt
This page took 0.161526 seconds and 4 git commands to generate.