x264-vl.spec 5.1 KB

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