source: spec/trunk/SPECS/faad2.spec@ 1796

Last change on this file since 1796 was 1673, checked in by tellie, 6 years ago

spec: faad2: Release version 2.8.8-1.

File size: 4.4 KB
Line 
1# option to compile without XMMS plugin
2%if %{?without_xmms:1}%{!?without_xmms:0}
3 %define _without_xmms --without-xmms
4%else
5 %define _with_xmms --with-xmms
6%endif
7
8# this has been taken from http://www.hyperborea.org/software/dillo/dillo.spec
9#################################################################################
10# Identify which distribution we're building on.
11# This will determine any changes in menu structure or release number (i.e. .mdk)
12# Eventually, need to make this configurable from the rpmbuild command line.
13
14%define freedesktop %(if [ -e /usr/share/applications ]; then echo 1; else echo 0; fi;)
15%define conectiva %(if [ -e /etc/conectiva-release ]; then echo 1; else echo 0; fi;)
16%define mdk %(if [ -e /etc/mandrake-release ]; then echo 1; else echo 0; fi;)
17%define suse %(if [ -e /etc/SuSE-release ]; then echo 1; else echo 0; fi;)
18%define oldsuse 0
19%if %{suse}
20 %define oldsuse %(if [ `grep VERSION /etc/SuSE-release | sed -e "s/VERSION = //"` \\< 8.0 ]; then echo 1; else echo 0; fi;)
21%endif
22
23%define oldredhat %(if [ -e /etc/redhat-release ]; then echo 1; else echo 0; fi;) && !%{mdk} && !%{suse} && !%{conectiva} && !%{freedesktop}
24%define plain !%{mdk} && !%{suse} && !%{conectiva} && !%{oldredhat} && !%{freedesktop}
25
26Summary: C library and frontend for decoding MPEG2/4 AAC
27Name: faad2
28Version: 2.8.8
29Release: 1
30License: GPL
31Group: Applications/Multimedia
32#Source0: http://download.sourceforge.net/faad/%{name}-%{version}.tar.gz
33#Patch: faad2-%{version}.patch
34%scm_source github https://github.com/komh/faad2-os2 master
35BuildRequires: autoconf, automake, libtool, gcc
36
37%if %{?_with_xmms:1}%{!?_with_xmms:0}
38#BuildRequires: xmms-devel
39%endif
40
41URL: http://www.audiocoding.com/
42#################################################################################
43%if %{?_with_xmms:1}%{!?_with_xmms:0}
44# GTK Dependencies
45%if %{mdk}
46#BuildRequires: libgtk+-devel >= 1.2.0
47%endif
48%if %{suse}
49BuildRequires: gtk-devel >= 1.2.0
50%endif
51%if !%{suse} && !%{mdk}
52#BuildRequires: gtk+-devel >= 1.2.0
53%endif
54%endif
55
56BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
57Packager: a.kurpiers@nt.tu-darmstadt.de
58
59%description
60FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
61written from scratch. FAAD 2 is licensed under the GPL.
62
63Includes libmp4ff, a Quicktime library for UNIX in a freely redistributable,
64statically linkable library.
65
66%package devel
67Summary: Development libraries the FAAD 2 AAC decoder.
68Group: Development/Libraries
69Requires: %{name}
70
71%description devel
72Header files and development documentation for libfaad.
73
74%if %{?_with_xmms:1}%{!?_with_xmms:0}
75%package xmms
76Group: Applications/Multimedia
77Summary: AAC and MP4 input plugin for xmms
78Requires: %{name}, xmms
79
80%description xmms
81The AAC xmms input plugin for xmms recognizes AAC files by an
82.aac extension.
83This MP4 xmms plugin reads AAC files with and without ID3 tags (version 2.x).
84AAC files are MPEG2 or MPEG4 files that can be found in MPEG4 audio files
85(.mp4). MPEG4 files with AAC inside can be read by RealPlayer or Quicktime.
86%endif
87
88%prep
89%scm_setup
90autoreconf -vif
91
92%build
93#sh bootstrap
94export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
95export LIBS="-lcx"
96./configure --with-drm %{?_without_xmms} --prefix=/@unixroot/usr
97
98make %{?_smp_mflags}
99
100%install
101rm -rf %{buildroot}
102# Hack to work around a problem with DESTDIR in libtool 1.4.x
103LIBRARY_PATH="%{buildroot}/usr/lib:${LIBRARY_PATH}" make install DESTDIR=%{buildroot}
104# install libmp4ff
105install -m 755 common/mp4ff/libmp4ff.a %{buildroot}%{_libdir}
106install common/mp4ff/mp4ff.h %{buildroot}%{_includedir}
107rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
108
109#%post -p /sbin/ldconfig
110
111#%postun -p /sbin/ldconfig
112
113%clean
114rm -rf %{buildroot}
115
116%files
117%defattr(-, root, root)
118%doc AUTHORS COPYING ChangeLog NEWS README TODO
119%{_bindir}/*
120%{_libdir}/faad*.dll
121
122%files devel
123%defattr(-, root, root)
124#%{_libdir}/faad*.dll
125%{_libdir}/faad*.a
126#%{_libdir}/libfaad.la
127%{_includedir}/faad.h
128%{_includedir}/neaacdec.h
129%{_includedir}/mp4ff.h
130%{_libdir}/libmp4ff.a
131%{_datadir}/man/man1/*.1.gz
132
133#%if %{?_with_xmms:1}%{!?_with_xmms:0}
134#%files xmms
135#%defattr(-,root,root)
136#%doc plugins/xmms/README
137#_libdir/xmms/Input/*
138#%endif
139
140%changelog
141* Wed Oct 09 2019 Elbert Pol <elbert.pol@gmail.com> - 2.8.8-1
142- First rpm for OS2
143- Thankz KO Myung-Hun for the OS2 source
144
145* Tue Jan 24 2006 Alexander Kurpiers <a.kurpiers@nt.tu-darmstadt.de>
146- fix wrong function declaration in mp4ffint.h
Note: See TracBrowser for help on using the repository browser.