| 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 |
|
|---|
| 26 | Summary: C library and frontend for decoding MPEG2/4 AAC
|
|---|
| 27 | Name: faad2
|
|---|
| 28 | Version: 2.8.8
|
|---|
| 29 | Release: 1
|
|---|
| 30 | License: GPL
|
|---|
| 31 | Group: 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
|
|---|
| 35 | BuildRequires: autoconf, automake, libtool, gcc
|
|---|
| 36 |
|
|---|
| 37 | %if %{?_with_xmms:1}%{!?_with_xmms:0}
|
|---|
| 38 | #BuildRequires: xmms-devel
|
|---|
| 39 | %endif
|
|---|
| 40 |
|
|---|
| 41 | URL: 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}
|
|---|
| 49 | BuildRequires: gtk-devel >= 1.2.0
|
|---|
| 50 | %endif
|
|---|
| 51 | %if !%{suse} && !%{mdk}
|
|---|
| 52 | #BuildRequires: gtk+-devel >= 1.2.0
|
|---|
| 53 | %endif
|
|---|
| 54 | %endif
|
|---|
| 55 |
|
|---|
| 56 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|---|
| 57 | Packager: a.kurpiers@nt.tu-darmstadt.de
|
|---|
| 58 |
|
|---|
| 59 | %description
|
|---|
| 60 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
|
|---|
| 61 | written from scratch. FAAD 2 is licensed under the GPL.
|
|---|
| 62 |
|
|---|
| 63 | Includes libmp4ff, a Quicktime library for UNIX in a freely redistributable,
|
|---|
| 64 | statically linkable library.
|
|---|
| 65 |
|
|---|
| 66 | %package devel
|
|---|
| 67 | Summary: Development libraries the FAAD 2 AAC decoder.
|
|---|
| 68 | Group: Development/Libraries
|
|---|
| 69 | Requires: %{name}
|
|---|
| 70 |
|
|---|
| 71 | %description devel
|
|---|
| 72 | Header files and development documentation for libfaad.
|
|---|
| 73 |
|
|---|
| 74 | %if %{?_with_xmms:1}%{!?_with_xmms:0}
|
|---|
| 75 | %package xmms
|
|---|
| 76 | Group: Applications/Multimedia
|
|---|
| 77 | Summary: AAC and MP4 input plugin for xmms
|
|---|
| 78 | Requires: %{name}, xmms
|
|---|
| 79 |
|
|---|
| 80 | %description xmms
|
|---|
| 81 | The AAC xmms input plugin for xmms recognizes AAC files by an
|
|---|
| 82 | .aac extension.
|
|---|
| 83 | This MP4 xmms plugin reads AAC files with and without ID3 tags (version 2.x).
|
|---|
| 84 | AAC 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
|
|---|
| 90 | autoreconf -vif
|
|---|
| 91 |
|
|---|
| 92 | %build
|
|---|
| 93 | #sh bootstrap
|
|---|
| 94 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 95 | export LIBS="-lcx"
|
|---|
| 96 | ./configure --with-drm %{?_without_xmms} --prefix=/@unixroot/usr
|
|---|
| 97 |
|
|---|
| 98 | make %{?_smp_mflags}
|
|---|
| 99 |
|
|---|
| 100 | %install
|
|---|
| 101 | rm -rf %{buildroot}
|
|---|
| 102 | # Hack to work around a problem with DESTDIR in libtool 1.4.x
|
|---|
| 103 | LIBRARY_PATH="%{buildroot}/usr/lib:${LIBRARY_PATH}" make install DESTDIR=%{buildroot}
|
|---|
| 104 | # install libmp4ff
|
|---|
| 105 | install -m 755 common/mp4ff/libmp4ff.a %{buildroot}%{_libdir}
|
|---|
| 106 | install common/mp4ff/mp4ff.h %{buildroot}%{_includedir}
|
|---|
| 107 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 108 |
|
|---|
| 109 | #%post -p /sbin/ldconfig
|
|---|
| 110 |
|
|---|
| 111 | #%postun -p /sbin/ldconfig
|
|---|
| 112 |
|
|---|
| 113 | %clean
|
|---|
| 114 | rm -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
|
|---|