x265-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Summary: H.265/HEVC encoder library
  2. Name: x265
  3. Version: 1.8
  4. Release: 1%{?_dist_release}
  5. Group: System Environment/Libraries
  6. URL: http://x265.org/
  7. Source0: http://ftp.videolan.org/pub/videolan/x265/x265_%{version}.tar.gz
  8. # link test binaries with shared library
  9. Patch1: x265-test-shared.patch
  10. Patch4: x265-detect_cpu_armhfp.patch
  11. # source/Lib/TLibCommon - BSD
  12. # source/Lib/TLibEncoder - BSD
  13. # everything else - GPLv2+
  14. License: GPLv2+ and BSD
  15. BuildRequires: cmake
  16. BuildRequires: yasm
  17. %description
  18. The primary objective of x265 is to become the best H.265/HEVC encoder
  19. available anywhere, offering the highest compression efficiency and the
  20. highest performance on a wide variety of hardware platforms.
  21. This package contains the command line encoder and the shared library.
  22. %package devel
  23. Summary: H.265/HEVC encoder library development files
  24. Requires: %{name}%{?_isa} = %{version}-%{release}
  25. %description devel
  26. The primary objective of x265 is to become the best H.265/HEVC encoder
  27. available anywhere, offering the highest compression efficiency and the
  28. highest performance on a wide variety of hardware platforms.
  29. This package contains the shared library development files.
  30. %prep
  31. %setup -q -n x265_%{version}
  32. %patch1 -p1 -b .ts
  33. %patch4 -p1 -b .armhfp
  34. %build
  35. %cmake -G "Unix Makefiles" \
  36. -DCMAKE_SKIP_RPATH:BOOL=YES \
  37. -DENABLE_PIC:BOOL=ON \
  38. -DENABLE_TESTS:BOOL=ON \
  39. source
  40. %__make %{?_smp_mflags}
  41. %install
  42. %__make DESTDIR=%{buildroot} install
  43. %__rm %{buildroot}%{_libdir}/libx265.a || exit 1
  44. # %__install -Dpm644 COPYING %{buildroot}%{_pkgdocdir}/COPYING
  45. %ifnarch %{arm}
  46. %check
  47. LD_LIBRARY_PATH=%{buildroot}%{_libdir} test/TestBench
  48. %endif
  49. %post -p /sbin/ldconfig
  50. %postun -p /sbin/ldconfig
  51. %files
  52. %{_bindir}/x265
  53. %doc COPYING
  54. %{_libdir}/libx265.so.68
  55. %files devel
  56. %doc doc/*
  57. %{_includedir}/x265.h
  58. %{_includedir}/x265_config.h
  59. %{_libdir}/libx265.so
  60. %{_libdir}/pkgconfig/x265.pc
  61. %changelog
  62. * Sat Jan 23 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.8-1
  63. - new upstream release (ABI 68)
  64. * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-1
  65. - new upstream release (ABI 59)
  66. * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.6-1
  67. - new upstream release (ABI 51)
  68. - release tarballs are now hosted on videolan.org
  69. * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2
  70. - rebuild
  71. * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-1
  72. - new upstream release (ABI 43)
  73. - drop x265-pc-path.patch
  74. - add x265-1.5-test-shared.patch
  75. * Sat Feb 7 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4-2
  76. - added Group tag to Source0
  77. * Fri Jan 2 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.4-1
  78. - new upstream release (ABI 35)
  79. - initial build based on RPM Fusion rawhide
  80. * Sun Aug 17 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-5
  81. - don't include contributor agreement in doc
  82. - make sure /usr/share/doc/x265 is owned
  83. - add a comment noting which files are BSD-licenced
  84. * Fri Aug 08 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-4
  85. - don't create bogus soname (patch by Xavier)
  86. * Thu Jul 17 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-3
  87. - fix tr call to remove DOS EOL
  88. - build the library with -fPIC on arm and i686, too
  89. * Sun Jul 13 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-2
  90. - use version in source URL
  91. - update License tag
  92. - fix EOL in drag-uncrustify.bat
  93. - don't link test binaries with shared binary on x86 (segfault)
  94. * Thu Jul 10 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-1
  95. - initial build
  96. - fix pkgconfig file install location
  97. - link test binaries with shared library