xvidcore-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %define name xvidcore
  2. %define version 1.2.1
  3. %define release 4%{?_dist_release}
  4. Summary: Free reimplementation of the OpenDivX video codec
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Source: http://downloads.xvid.org/downloads/%{name}-%{version}.tar.bz2
  9. License: XVID (GPL with specific restrictions)
  10. URL: http://www.xvid.org/
  11. Group: System Environment/Libraries
  12. #Requires:
  13. %ifarch %{ix86}
  14. BuildRequires: nasm
  15. %endif
  16. %ifarch x86_64
  17. BuildRequires: yasm
  18. %endif
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. %description
  21. Free reimplementation of the OpenDivX video codec. You can play OpenDivX
  22. and DivX4 videos with it, as well as encode compatible files.
  23. %package devel
  24. Summary: Development files for the XviD video codec
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. %description devel
  28. This package contains header files, static library and API
  29. documentation for the XviD video codec.
  30. %prep
  31. %setup -q -n %{name}
  32. %build
  33. cd build/generic
  34. %configure
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf %{buildroot}
  38. cd build/generic
  39. %makeinstall
  40. rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a
  41. cd $RPM_BUILD_ROOT%{_libdir}
  42. chmod 755 libxvidcore.so*
  43. /sbin/ldconfig -n .
  44. ln -s libxvidcore.so.? libxvidcore.so
  45. %post -p /sbin/ldconfig
  46. %postun -p /sbin/ldconfig
  47. %clean
  48. rm -rf $RPM_BUILD_ROOT
  49. %files
  50. %defattr(-,root,root,-)
  51. %doc LICENSE README AUTHORS ChangeLog TODO
  52. %{_libdir}/libxvidcore.so.*
  53. %files devel
  54. %defattr(-,root,root,-)
  55. %doc CodingStyle examples/
  56. %{_includedir}/xvid.h
  57. %{_libdir}/libxvidcore.so
  58. %changelog
  59. * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.1-4
  60. - change release to sync with self-build-xvidcore
  61. * Fri Jun 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-3
  62. - change release to sync with self-build-xvidcore
  63. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-2
  64. - change release to sync with self-build-xvidcore
  65. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-1
  66. - new upstream release
  67. - dropped xvidcore-1.1.3_bitstream.patch
  68. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-3
  69. - spec in utf8
  70. * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.3-2
  71. - release +1 to sync with self-build-xvidcore
  72. * Fri Apr 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-1vl4
  73. - build with new versioning policy
  74. - apply xvidcore-1.1.3_bitstream.patch
  75. * Tue Feb 19 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-0vl1
  76. - initial build for Vine Linux 4.2
  77. ### end of file