x264-vl.spec 6.1 KB

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