libfame-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Summary: Fast Assembly MPEG Encoding library
  2. Name: libfame
  3. Version: 0.9.1
  4. Release: 7vl1
  5. License: LGPL
  6. Group: System Environment/Libraries
  7. URL: http://fame.sourceforge.net/
  8. Source: http://dl.sf.net/fame/libfame-%{version}.tar.gz
  9. Patch0: libfame-0.9.1-fstrict-aliasing.patch
  10. Patch1: http://www.linuxfromscratch.org/blfs/downloads/svn/libfame-0.9.1-gcc34-1.patch
  11. Patch2: libfame-0.9.1-underquoted.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: autoconf, automake, libtool
  14. %description
  15. A library for fast (real-time) MPEG video encoding, written in C and assembly.
  16. It currently allows encoding of fast MPEG-1 video, as well as MPEG-4 (OpenDivX
  17. compatible) rectangular and arbitrary shaped video.
  18. %package devel
  19. Summary: Development files and static libraries for libfame
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}
  22. %description devel
  23. A library for fast (real-time) MPEG video encoding, written in C and assembly.
  24. It currently allows encoding of fast MPEG-1 video, as well as MPEG-4 (OpenDivX
  25. compatible) rectangular and arbitrary shaped video.
  26. This package contains the files necessary to build programs that use the
  27. libfame library.
  28. %prep
  29. %setup -q
  30. %patch0 -p1 -b .fstrict-aliasing
  31. %patch1 -p1 -b .mmxone
  32. %patch2 -p1 -b .m4
  33. ./autogen.sh
  34. # Fix lib stuff for lib64
  35. perl -pi.orig -e 's|/lib"|/%{_lib}"|g' configure.in
  36. %build
  37. # use a special MMX & SSE flags if you can use
  38. %ifarch i686 athlon k7
  39. %configure --enable-sse --enable-mmx
  40. %else
  41. %configure --disable-mmx
  42. %endif
  43. make %{?_smp_mflags} LIBTOOL=/usr/bin/libtool
  44. %install
  45. rm -rf %{buildroot}
  46. %makeinstall LIBTOOL=/usr/bin/libtool
  47. # Workaround for direct <libfame/fame.h> includes (include/libfame -> .)
  48. #%{__ln_s} . %{buildroot}%{_includedir}/%{name}
  49. %clean
  50. rm -rf %{buildroot}
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. %files
  54. %defattr(-, root, root, 0755)
  55. %doc AUTHORS BUGS CHANGES COPYING README TODO
  56. %{_libdir}/*.so.*
  57. %files devel
  58. %defattr(-, root, root, 0755)
  59. %{_bindir}/%{name}-config
  60. %{_libdir}/*.a
  61. %exclude %{_libdir}/*.la
  62. %{_libdir}/*.so
  63. %{_includedir}/*
  64. %{_datadir}/aclocal/%{name}.m4
  65. %{_mandir}/man3/*
  66. %changelog
  67. * Mon Sep 26 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.1-7vl1
  68. - build for VineLinux
  69. * Sun Jun 5 2005 Matthias Saou <http://freshrpms.net/> 0.9.1-7 - 3283/thias
  70. - Make the underquoted patch apply to the .in file too, so it actually works.
  71. - Put ldconfig calls back as programs to have rpm's deps pick them up.
  72. * Thu May 5 2005 Matthias Saou <http://freshrpms.net/> 0.9.1-6
  73. - Run plain "./autogen.sh" instead of autoreconf to avoid libm problem on
  74. x86_64 (weird one!).
  75. - Actually really apply the last patch too...
  76. * Sun May 1 2005 Matthias Saou <http://freshrpms.net/> 0.9.1-5
  77. - Patch the m4 file to fix underquoted warning.
  78. * Thu Nov 4 2004 Matthias Saou <http://freshrpms.net/> 0.9.1-4
  79. - Add libfame-0.9.1-gcc34-1.patch to fix "undefined symbol: _mmx_one".
  80. * Mon Oct 25 2004 Matthias Saou <http://freshrpms.net/> 0.9.1-3
  81. - Add libfame-0.9.1-fstrict-aliasing.patch to actually make the lib work,
  82. thanks to Nicholas Miell.
  83. * Tue Aug 31 2004 Matthias Saou <http://freshrpms.net/> 0.9.1-2
  84. - Add specially compiled MMX & SSE lib on x86.
  85. * Tue Feb 24 2004 Matthias Saou <http://freshrpms.net/> 0.9.1-1
  86. - Update to 0.9.1.
  87. - Updated the Source URL.
  88. * Fri Dec 5 2003 Matthias Saou <http://freshrpms.net/> 0.9.0-4
  89. - Added /usr/include/libfame -> . symlink as a workaround for MPlayer.
  90. * Fri Nov 7 2003 Matthias Saou <http://freshrpms.net/> 0.9.0-3
  91. - Rebuild for Fedora Core 1.
  92. * Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
  93. - Rebuilt for Red Hat Linux 9.
  94. - Exclude .la files.
  95. * Mon Oct 28 2002 Matthias Saou <http://freshrpms.net/>
  96. - Spec file cleanup.
  97. * Mon Jun 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
  98. - release 2
  99. * Mon Jun 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
  100. - adapted from PLD spec file for GStreamer packaging