xvidcore-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Summary: MPEG-4 Simple and Advanced Simple Profile codec
  2. Name: xvidcore
  3. Version: 1.2.2
  4. Release: 1%{?_dist_release}
  5. Source: http://downloads.xvid.org/downloads/%{name}-%{version}.tar.bz2
  6. Patch0: xvidcore-noexec-stack.patch
  7. Group: System Environment/Libraries
  8. License: GPLv2+
  9. URL: http://www.xvid.org/
  10. BuildRequires: nasm >= 2.0
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. %description
  13. The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple
  14. Profile standards. It permits compressing and decompressing digital video
  15. in order to reduce the required bandwidth of video data for transmission
  16. over computer networks or efficient storage on CDs or DVDs. Due to its
  17. unrivalled quality Xvid has gained great popularity and is used in many
  18. other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and
  19. many more.
  20. %package devel
  21. Summary: Development files for the Xvid video codec
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. This package contains header files, static library and API
  26. documentation for the Xvid video codec.
  27. %prep
  28. %setup -q -n %{name}
  29. %patch0 -p1 -z .noexec-stack
  30. chmod -x examples/*.pl
  31. f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f
  32. # Yes, we want to see the build output.
  33. %{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile
  34. %build
  35. cd build/generic
  36. export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
  37. %configure
  38. %__make %{?_smp_mflags}
  39. cd -
  40. %install
  41. %__rm -rf $RPM_BUILD_ROOT
  42. %__make -C build/generic install DESTDIR=$RPM_BUILD_ROOT
  43. %__rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a
  44. cd $RPM_BUILD_ROOT%{_libdir}
  45. chmod 755 libxvidcore.so*
  46. /sbin/ldconfig -n .
  47. ln -s libxvidcore.so.? libxvidcore.so
  48. cd -
  49. %clean
  50. %__rm -rf $RPM_BUILD_ROOT
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc LICENSE README AUTHORS ChangeLog
  56. %{_libdir}/libxvidcore.so.*
  57. %files devel
  58. %defattr(-,root,root,-)
  59. %doc CodingStyle TODO examples/
  60. %{_includedir}/xvid.h
  61. %{_libdir}/libxvidcore.so
  62. %changelog
  63. * Sat Dec 25 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.2-1
  64. - new upstream release
  65. - applied a rebase noexec-stack patch from RPM Fusion development
  66. * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.1-4
  67. - change release to sync with self-build-xvidcore
  68. * Fri Jun 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-3
  69. - change release to sync with self-build-xvidcore
  70. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-2
  71. - change release to sync with self-build-xvidcore
  72. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-1
  73. - new upstream release
  74. - dropped xvidcore-1.1.3_bitstream.patch
  75. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-3
  76. - spec in utf8
  77. * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.3-2
  78. - release +1 to sync with self-build-xvidcore
  79. * Fri Apr 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-1vl4
  80. - build with new versioning policy
  81. - apply xvidcore-1.1.3_bitstream.patch
  82. * Tue Feb 19 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-0vl1
  83. - initial build for Vine Linux 4.2
  84. ### end of file