x264-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. %global snapshot_date 20141218
  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.142
  7. Release: 4.%{snapshot_date}%{?_dist_release}
  8. License: GPLv2+
  9. Group: System Environment/Libraries
  10. URL: http://www.videolan.org/developers/x264.html
  11. Source: http://download.videolan.org/pub/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. * Mon Mar 9 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.142-4.20141218
  75. - rebuild
  76. * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.142-3.20141218
  77. - rebuild
  78. * Sun Jan 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.142-2.20141218
  79. - Obsoletes: self-build-x264 < %{version}
  80. * Fri Dec 26 2014 Munehiro Yamamoto <munepi@vinelinux.org> 0.142-1.20141218
  81. - updated source snapshot 20141218 stable branch (ABI 0.142)
  82. * Sun Sep 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.136-1.20130927
  83. - updated source snapshot 20130927 stable branch (ABI 0.136)
  84. * Sat Jan 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.129-1.20130118
  85. - updated source snapshot 20130118 stable branch (ABI 0.129)
  86. * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.124-1.20120525
  87. - updated source snapshot 20120525 stable branch (ABI 0.124)
  88. - changed release number; upstream have release numbers at least on stable branch
  89. * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-18.20111216
  90. - updated source snapshot 20111216 stable branch (ABI 0.119)
  91. * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-17.20111013
  92. - updated source snapshot 20111013 stable branch (ABI 0.116)
  93. * Thu Sep 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-16.20110322
  94. - change release to sync with self-build-x264
  95. * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-15.20110322
  96. - updated source snapshot 20110322 (ABI 0.114)
  97. * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-14.20100625
  98. - updated source snapshot 20100625
  99. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-13.20100216
  100. - change release to sync with self-build-x264
  101. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-12.20100216
  102. - updated source snapshot 20100216
  103. - applied to link x264 binary to the shared library from RPM Fusion development
  104. * Mon Sep 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-11.20090522
  105. - changed Source0: to http://www.videolan.org/pub/videolan/x264/snapshots
  106. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-10.20090522
  107. - change release to sync with self-build-x264
  108. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-9.20090522
  109. - 20090522 snapshot
  110. - updated x264-vine.patch
  111. * Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-8.20090110
  112. - corrected release number
  113. * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-6.20090110
  114. - added configure options: --enable-mp4-output
  115. - added BuildRequires: gpac-devel
  116. * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-5.20090110
  117. - change release to sync with self-build-x264
  118. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-4.20090110
  119. - 20090110 snapshot
  120. * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-3.20081001
  121. - fixed License: GPLv2+
  122. - added BuildRequires: gettext
  123. - source updated
  124. - fixed x264-rpm.patch (merged x264-rpm.patch from RPM Fusion)
  125. and added x264-vine.patch
  126. #- changed version from 0.0.0-1.20080225 to 0.0.0-20081111.1
  127. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-2.20080225vl1
  128. - spec in utf8
  129. * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.0.0-1.20080225
  130. - apply new versioning policy
  131. * Wed Feb 27 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-0.20080225vl1
  132. - initial build for Vine Linux 4.2
  133. * Sun Jan 20 2008 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.57-0.r721vlmp1
  134. - update to SVN r721
  135. * Sat Aug 4 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.56-0.r667vlmp1
  136. - initial build for Vine Linux 4.1
  137. ### end of file