x264-vl.spec 5.9 KB

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