x264-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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: 15.%{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. * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-15.20110322
  91. - updated source snapshot 20110322
  92. * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-14.20100625
  93. - updated source snapshot 20100625
  94. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-13.20100216
  95. - change release to sync with self-build-x264
  96. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-12.20100216
  97. - updated source snapshot 20100216
  98. - applied to link x264 binary to the shared library from RPM Fusion development
  99. * Mon Sep 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-11.20090522
  100. - changed Source0: to http://www.videolan.org/pub/videolan/x264/snapshots
  101. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-10.20090522
  102. - change release to sync with self-build-x264
  103. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-9.20090522
  104. - 20090522 snapshot
  105. - updated x264-vine.patch
  106. * Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-8.20090110
  107. - corrected release number
  108. * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-6.20090110
  109. - added configure options: --enable-mp4-output
  110. - added BuildRequires: gpac-devel
  111. * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-5.20090110
  112. - change release to sync with self-build-x264
  113. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-4.20090110
  114. - 20090110 snapshot
  115. * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-3.20081001
  116. - fixed License: GPLv2+
  117. - added BuildRequires: gettext
  118. - source updated
  119. - fixed x264-rpm.patch (merged x264-rpm.patch from RPM Fusion)
  120. and added x264-vine.patch
  121. #- changed version from 0.0.0-1.20080225 to 0.0.0-20081111.1
  122. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-2.20080225vl1
  123. - spec in utf8
  124. * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.0.0-1.20080225
  125. - apply new versioning policy
  126. * Wed Feb 27 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-0.20080225vl1
  127. - initial build for Vine Linux 4.2
  128. * Sun Jan 20 2008 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.57-0.r721vlmp1
  129. - update to SVN r721
  130. * Sat Aug 4 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.56-0.r667vlmp1
  131. - initial build for Vine Linux 4.1
  132. ### end of file