faad2-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. %define xmmsinputdir %{_libdir}/xmms/Input
  2. #%define date 20040923
  3. Summary: Library and frontend for decoding MPEG2/4 AAC
  4. Summary(ja): MPEG2/4 AAC のデコード用ライブラリおよびフロントエンド
  5. Name: faad2
  6. Version: 2.7
  7. Release: 4%{?_dist_release}
  8. License: GPLv2+
  9. Group: Applications/Multimedia
  10. URL: http://www.audiocoding.com/
  11. Source: %{name}-%{version}.tar.gz
  12. #Source: faad2-%{date}.tar.bz2
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: autoconf, automake, libtool
  15. BuildRequires: gcc-c++, zlib-devel, sysfsutils-devel
  16. BuildRequires: id3lib-devel, gtk+-devel
  17. %{?_with_xmms:BuildRequires: xmms-devel}
  18. %description
  19. FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
  20. written from scratch.
  21. %if %{?_with_xmms:1}%{!?_with_xmms:0}
  22. %package -n xmms-aac
  23. Summary: X MultiMedia System input plugin to play AAC files
  24. Group: Applications/Multimedia
  25. Requires: %{name} = %{version}, xmms, id3lib
  26. Provides: xmms-%{name} = %{version}-%{release}
  27. %description -n xmms-aac
  28. This xmms plugin reads AAC files with and without ID3 tags (version 2.x).
  29. AAC files are MPEG2 or MPEG4 files that can be found in MPEG4 audio files
  30. (.mp4). MPEG4 files with AAC inside can be read by RealPlayer or Quicktime.
  31. %endif
  32. %package devel
  33. Summary: Development libraries of the FAAD 2 AAC decoder
  34. Summary(ja): FAAD 2 AAC デコーダの開発用ライブラリ
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. %description devel
  38. FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
  39. written from scratch.
  40. This package contains development files and documentation for libfaad.
  41. %prep
  42. %setup -q
  43. ### Required to make automake < 1.7 work
  44. %{__perl} -pi -e 's|dnl AC_PROG_CXX|AC_PROG_CXX|' configure.in
  45. %build
  46. # This is what the README.linux file recommends
  47. autoreconf -vif
  48. %configure \
  49. --disable-static \
  50. %{?_with_xmms:--with-xmms} \
  51. --with-mpeg4ip \
  52. --without-drm
  53. # --with--mp4v2 \
  54. %{__make} %{?_smp_mflags}
  55. %install
  56. %{__rm} -rf %{buildroot}
  57. %{__make} install DESTDIR=%{buildroot}
  58. # Remove this wrong include
  59. #perl -pi -e 's|#include <systems.h>||g' %{buildroot}%{_includedir}/mpeg4ip.h
  60. ## remove unuse files
  61. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{la,a}
  62. %clean
  63. %{__rm} -rf %{buildroot}
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %files
  67. %defattr(-, root, root, 0755)
  68. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  69. %{_bindir}/*
  70. %{_libdir}/*.so.*
  71. %if %{?_with_xmms:1}%{!?_with_xmms:0}
  72. %files -n xmms-aac
  73. %defattr(-, root, root, 0755)
  74. %doc plugins/xmms/AUTHORS plugins/xmms/NEWS
  75. %doc plugins/xmms/README plugins/xmms/TODO
  76. #%exclude %{xmmsinputdir}/*.a
  77. %exclude %{xmmsinputdir}/*.la
  78. %{xmmsinputdir}/*.so
  79. %endif
  80. %files devel
  81. %defattr(-, root, root, 0755)
  82. %{_includedir}/*
  83. #%{_libdir}/*.a
  84. #%{_libdir}/*.la
  85. %{_libdir}/*.so
  86. #exclude %{_libdir}/*.la
  87. %changelog
  88. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-4
  89. - change release to sync with self-build-faad2
  90. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-3
  91. - change release to sync with self-build-faad2
  92. * Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-2
  93. - changed to --without-drm in configure options
  94. * Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-1
  95. - new upstream release
  96. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.6.1-3
  97. - change release to sync with self-build-faad2
  98. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.6.1-2
  99. - applied faad2-cve-2008-4201.patch
  100. - added %%configure options: --disable-static
  101. - using %{?_with_xmms}
  102. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.6.1-1vl5
  103. - applied new versioning policy, spec in utf-8
  104. - removed *.la
  105. * Sun Dec 30 2007 Satoshi MACHINO <machino@vinelinux.org> 2.6.1-0vl1
  106. - new upstream release
  107. - dropped patch0
  108. * Mon Dec 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-1vl1
  109. - new upstream release based on DAG packages
  110. * Fri Dec 15 2006 Matthias Saou <http://freshrpms.net/> 2.5-1 - 5002+/thias
  111. - Update to 2.5.
  112. - Completely remove xmms/bmp plugin, it's a real mess anyway. Use audacious.
  113. - Rip out libmp4v2 too, it's best as a separate package.
  114. - Add libsysfs-devel build requirement, as it seems configure checks for it.
  115. - added Japanese summary
  116. * Wed Nov 10 2004 Satoshi MACHINO <machino@vinelinux.org> 2.0-0.%{date}vl1
  117. - Built for VineLinux