xvidcore-vl.spec 3.2 KB

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