x265-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. Summary: H.265/HEVC encoder library
  2. Name: x265
  3. Version: 1.7
  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.59
  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 Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-1
  63. - new upstream release (ABI 59)
  64. * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.6-1
  65. - new upstream release (ABI 51)
  66. - release tarballs are now hosted on videolan.org
  67. * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2
  68. - rebuild
  69. * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-1
  70. - new upstream release (ABI 43)
  71. - drop x265-pc-path.patch
  72. - add x265-1.5-test-shared.patch
  73. * Sat Feb 7 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4-2
  74. - added Group tag to Source0
  75. * Fri Jan 2 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.4-1
  76. - new upstream release (ABI 35)
  77. - initial build based on RPM Fusion rawhide
  78. * Sun Aug 17 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-5
  79. - don't include contributor agreement in doc
  80. - make sure /usr/share/doc/x265 is owned
  81. - add a comment noting which files are BSD-licenced
  82. * Fri Aug 08 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-4
  83. - don't create bogus soname (patch by Xavier)
  84. * Thu Jul 17 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-3
  85. - fix tr call to remove DOS EOL
  86. - build the library with -fPIC on arm and i686, too
  87. * Sun Jul 13 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-2
  88. - use version in source URL
  89. - update License tag
  90. - fix EOL in drag-uncrustify.bat
  91. - don't link test binaries with shared binary on x86 (segfault)
  92. * Thu Jul 10 2014 Dominik Mierzejewski <rpm@greysector.net> 1.2-1
  93. - initial build
  94. - fix pkgconfig file install location
  95. - link test binaries with shared library