x264-vl.spec 5.1 KB

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