x264-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. %define date 20100625
  2. %define time 2245
  3. Summary: Library for encoding and decoding H264/AVC video streams
  4. Name: x264
  5. Version: 0.0.0
  6. Release: 14.%{date}%{?_dist_release}
  7. License: GPLv2+
  8. Group: System Environment/Libraries
  9. URL: http://www.videolan.org/developers/x264.html
  10. #Source: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/%{name}-snapshot-%{date}-%{time}.tar.bz2
  11. Source: http://www.videolan.org/pub/videolan/x264/snapshots/%{name}-snapshot-%{date}-%{time}.tar.bz2
  12. Source1: %{name}.desktop
  13. # # don't remove config.h and don't re-run version.sh
  14. # Patch0: x264-nover.patch
  15. # link with shared libx264
  16. Patch1: x264-shared.patch
  17. # don't strip if configured with --enable-debug
  18. Patch2: x264-nostrip.patch
  19. %ifarch x86_64 %{ix86}
  20. BuildRequires: yasm
  21. %endif
  22. # gpac-devel package provided by self-build-gpac
  23. # in self-build-%{name}.spec as PreReq.
  24. #BuildRequires: gpac-devel
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. Provides: libx264 = %{version}
  27. Obsoletes: libx264 < %{version}
  28. Obsoletes: x264 < %{version}
  29. %description
  30. x264 is a free library for encoding H264/AVC video streams, written from
  31. scratch.
  32. %package devel
  33. Summary: Development files for the x264 library
  34. Group: Development/Libraries
  35. Requires: %{name} = %{version}-%{release}
  36. Requires: pkgconfig
  37. %description devel
  38. x264 is a free library for encoding H264/AVC video streams, written from
  39. scratch.
  40. This package contains the development files.
  41. %prep
  42. %setup -q -n %{name}-snapshot-%{date}-%{time}
  43. # %patch0 -p1 -b .nover
  44. %patch1 -p1 -b .shared
  45. %patch2 -p1 -b .nostrip
  46. # AUTHORS file is in iso-8859-1
  47. iconv -f iso-8859-1 -t utf-8 -o AUTHORS.utf8 AUTHORS
  48. %__mv -f AUTHORS.utf8 AUTHORS
  49. %build
  50. ./configure \
  51. --host=%{_target_platform} \
  52. --prefix=%{_prefix} \
  53. --exec-prefix=%{_exec_prefix} \
  54. --bindir=%{_bindir} \
  55. --includedir=%{_includedir} \
  56. --libdir=%{_libdir} \
  57. --extra-cflags="$RPM_OPT_FLAGS" \
  58. --enable-mp4-output \
  59. %{?_with_visualize:--enable-visualize} \
  60. \
  61. --enable-lavf \
  62. --disable-ffms \
  63. --enable-gpac \
  64. --enable-pthread \
  65. --enable-asm \
  66. --enable-debug \
  67. --enable-shared \
  68. --enable-pic \
  69. ;
  70. %{__make} %{?_smp_mflags}
  71. %install
  72. %{__rm} -rf %{buildroot}
  73. %{__make} DESTDIR=%{buildroot} install
  74. %clean
  75. %{__rm} -rf %{buildroot}
  76. %post -p /sbin/ldconfig
  77. %postun -p /sbin/ldconfig
  78. %files
  79. %defattr(644, root, root, 0755)
  80. %doc AUTHORS COPYING
  81. %attr(755,root,root) %{_bindir}/x264
  82. %{_libdir}/libx264.so.*
  83. %files devel
  84. %defattr(644, root, root, 0755)
  85. %doc doc/ratecontrol.txt doc/vui.txt
  86. %{_includedir}/x264.h
  87. %exclude %{_libdir}/libx264.a
  88. %{_libdir}/libx264.so
  89. %{_libdir}/pkgconfig/%{name}.pc
  90. %changelog
  91. * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-14.20100625
  92. - updated source snapshot 20100625
  93. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-13.20100216
  94. - change release to sync with self-build-x264
  95. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-12.20100216
  96. - updated source snapshot 20100216
  97. - applied to link x264 binary to the shared library from RPM Fusion development
  98. * Mon Sep 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-11.20090522
  99. - changed Source0: to http://www.videolan.org/pub/videolan/x264/snapshots
  100. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-10.20090522
  101. - change release to sync with self-build-x264
  102. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-9.20090522
  103. - 20090522 snapshot
  104. - updated x264-vine.patch
  105. * Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-8.20090110
  106. - corrected release number
  107. * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-6.20090110
  108. - added configure options: --enable-mp4-output
  109. - added BuildRequires: gpac-devel
  110. * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-5.20090110
  111. - change release to sync with self-build-x264
  112. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-4.20090110
  113. - 20090110 snapshot
  114. * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-3.20081001
  115. - fixed License: GPLv2+
  116. - added BuildRequires: gettext
  117. - source updated
  118. - fixed x264-rpm.patch (merged x264-rpm.patch from RPM Fusion)
  119. and added x264-vine.patch
  120. #- changed version from 0.0.0-1.20080225 to 0.0.0-20081111.1
  121. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-2.20080225vl1
  122. - spec in utf8
  123. * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.0.0-1.20080225
  124. - apply new versioning policy
  125. * Wed Feb 27 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-0.20080225vl1
  126. - initial build for Vine Linux 4.2
  127. * Sun Jan 20 2008 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.57-0.r721vlmp1
  128. - update to SVN r721
  129. * Sat Aug 4 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.56-0.r667vlmp1
  130. - initial build for Vine Linux 4.1
  131. ### end of file