]> git.pld-linux.org Git - packages/gpac.git/blame - gpac.spec
- Summary cosmetics, formattong
[packages/gpac.git] / gpac.spec
CommitLineData
5f694ea5 1
2%bcond_with amr
3%bcond_without js
4%bcond_without freetype
5%bcond_without faad
6%bcond_without jpeg
7%bcond_without png
8%bcond_without mad
9%bcond_without xvid
10%bcond_without ffmpeg
11
b2995149 12Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1)
13Summary(pl): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
5f694ea5 14Name: gpac
15Version: 0.2.1
16Release: 1
17License: GPL
18Group: Applications
19Source0: http://mesh.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
20# Source0-md5: 3a3e193e805ab177f44514ca3289b461
21# Source0-size: 2227080
22Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip
23# Source1-md5: 705f6993fbf890e92eb7a331e7c716d1
24# Source1-size: 916695
25URL: http://gpac.sourceforge.net/
26BuildRequires: SDL-devel
27#BuildRequires: wxWidgets-devel
28%{!?_without_js:BuildRequires: js-devel}
29%{!?_without_freetype:BuildRequires: freetype-devel}
30%{!?_without_faad:BuildRequires: faad2-devel}
31%{!?_without_jpeg:BuildRequires: libjpeg-devel}
32%{!?_without_png:BuildRequires: libpng-devel}
33%{!?_without_mad:BuildRequires: libmad-devel}
34%{!?_without_xvid:BuildRequires: xvid-devel}
35%{!?_without_ffmpeg:BuildRequires: ffmpeg-devel}
36Requires: SDL
37#Requires: wxWidgets
38%{!?_without_js:Requires: js}
39%{!?_without_freetype:Requires: freetype}
40%{!?_without_faad:Requires: faad2}
41%{!?_without_jpeg:Requires: libjpeg-6b}
42%{!?_without_png:Requires: libpng}
43%{!?_without_mad:Requires: libmad}
44%{!?_without_xvid:Requires: xvid}
45%{!?_without_ffmpeg:Requires: ffmpeg}
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
b2995149 49GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC
5014496-1) developed from scratch in ANSI C.
5f694ea5 51
b2995149 52The main development goal is to provide a clean (a.k.a. readable by as
53many people as possible), small and flexible alternative to the MPEG-4
54Systems reference software (known as IM1 and distributed in ISO/IEC
5514496-5). The MPEG-4 Reference software is indeed a very large piece
56of software, designed to verify the standard rather than provide a
57small, production-stable software. GPAC is written in ANSI C for
58portability reasons (embedded platforms and DSPs) with a simple goal:
59keep the memory footprint as low as possible. The project will at term
60provide player(s), systems encoders and publishing tools for content
61distribution.
5f694ea5 62
b2995149 63The current GPAC release (0.2.1) is far from being complete but
64already covers a very large part of the standard, and can probably be
65seen as the most advanced and robust 2D MPEG-4 Player available
66worldwide (its 3D side is not to be neglected though).
5f694ea5 67
68%prep
69%setup -q -n gpac
70%if %{?_with_amr:1}%{!?_with_amr:0}
71mkdir -p Plugins/amr_dec/AMR_NB
72cd Plugins/amr_dec/AMR_NB
73unzip -j ../../SOURCES/26073-530.zip
74unzip -j 26073-530_ANSI_C_source_code.zip
75cd ../../..
76%endif
77
78
79%build
80%configure --enable-oss-audio \
81 %{?_with_amr: --enable-amr-nb} \
82 %{?_without_js: --disable-js} \
83 %{?_without_freetype: --disable-ft} \
84 %{?_without_faad: --disable-faad} \
85 %{?_without_jpeg: --disable-jpeg} \
86 %{?_without_png: --disable-png} \
87 %{?_without_mad: --disable-mad} \
88 %{?_without_xvid: --disable-xvid} \
89 %{?_without_ffmpeg: --disable-ffmpeg}
90
91%{__make} \
92 DESTDIR=$RPM_BUILD_ROOT
93
94%install
95rm -rf $RPM_BUILD_ROOT
96
97%{__make} install \
98 bindir=$RPM_BUILD_ROOT%{_bindir} \
99 libdir=$RPM_BUILD_ROOT%{_libdir} \
100 mandir=$RPM_BUILD_ROOT%{_mandir}
101
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106%post -p /sbin/ldconfig
107%postun -p /sbin/ldconfig
108
109%files
110%defattr(644,root,root,755)
111%doc AUTHORS BUGS Changelog COPYING README TODO
112%attr(755,root,root) %{_bindir}/*
113%attr(755,root,root) %{_libdir}/*
114%{_mandir}/man1/*
This page took 0.082339 seconds and 4 git commands to generate.