x265-vl.spec 3.5 KB

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