x264-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. %global snapshot_date 20111216
  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.0.0
  7. Release: 18.%{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. # # don't remove config.h and don't re-run version.sh
  13. # Patch0: x264-nover.patch
  14. # # link with shared libx264
  15. # Patch1: x264-shared.patch
  16. # don't strip if configured with --enable-debug
  17. # Patch2: x264-nostrip.patch
  18. BuildRequires: yasm
  19. # gpac-devel package provided by self-build-gpac
  20. # in self-build-%{name}.spec as PreReq.
  21. #BuildRequires: gpac-devel
  22. # # this package is generated by self-build-%{name}
  23. # Requires: self-build-%{name} = %{version}-%{release}
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. Provides: libx264 = %{version}
  26. Obsoletes: libx264 < %{version}
  27. Obsoletes: x264 < %{version}
  28. %description
  29. x264 is a free library for encoding H264/AVC video streams, written from
  30. scratch.
  31. %package devel
  32. Summary: Development files for the x264 library
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: pkgconfig
  36. %description devel
  37. x264 is a free library for encoding H264/AVC video streams, written from
  38. scratch.
  39. This package contains the development files.
  40. %prep
  41. %setup -q -n %{name}-snapshot-%{snapshot_date}-%{snapshot_time}%{?branch:-%{branch}}
  42. # %patch0 -p1 -b .nover
  43. # %patch1 -p1 -b .shared
  44. # %patch2 -p1 -b .nostrip
  45. %build
  46. ./configure \
  47. --host=%{_target_platform} \
  48. --prefix=%{_prefix} \
  49. --exec-prefix=%{_exec_prefix} \
  50. --bindir=%{_bindir} \
  51. --includedir=%{_includedir} \
  52. --libdir=%{_libdir} \
  53. --extra-cflags="$RPM_OPT_FLAGS" \
  54. \
  55. %{?_with_visualize:--enable-visualize} \
  56. %{!?_with_libavformat:--disable-lavf} \
  57. %{!?_with_ffmpegsource:--disable-ffms} \
  58. --enable-debug \
  59. --enable-shared \
  60. --enable-pic \
  61. ;
  62. %{__make} %{?_smp_mflags}
  63. %install
  64. %{__rm} -rf %{buildroot}
  65. %{__make} DESTDIR=%{buildroot} install
  66. %clean
  67. %{__rm} -rf %{buildroot}
  68. %post -p /sbin/ldconfig
  69. %postun -p /sbin/ldconfig
  70. %files
  71. %defattr(644, root, root, 0755)
  72. %doc AUTHORS COPYING
  73. %attr(755,root,root) %{_bindir}/x264
  74. %{_libdir}/libx264.so.*
  75. %files devel
  76. %defattr(644, root, root, 0755)
  77. %doc doc/*
  78. %{_includedir}/x264.h
  79. %{_includedir}/x264_config.h
  80. %{_libdir}/libx264.so
  81. %{_libdir}/pkgconfig/%{name}.pc
  82. %changelog
  83. * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-18.20111216
  84. - updated source snapshot 20111216 stable branch (ABI 0.119)
  85. * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-17.20111013
  86. - updated source snapshot 20111013 stable branch (ABI 0.116)
  87. * Thu Sep 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-16.20110322
  88. - change release to sync with self-build-x264
  89. * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-15.20110322
  90. - updated source snapshot 20110322 (ABI 0.114)
  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