diff --git a/libyami-fb48083.tar.gz b/libyami-fb48083.tar.gz new file mode 100644 index 0000000..85811c9 Binary files /dev/null and b/libyami-fb48083.tar.gz differ diff --git a/libyami-libtool-macro.patch b/libyami-libtool-macro.patch new file mode 100644 index 0000000..0261a7b --- /dev/null +++ b/libyami-libtool-macro.patch @@ -0,0 +1,13 @@ +diff -up libyami-40fa32e79f12c3c85c360532be00b7e4f9a35920/configure.ac.obs libyami-40fa32e79f12c3c85c360532be00b7e4f9a35920/configure.ac +--- libyami-40fa32e79f12c3c85c360532be00b7e4f9a35920/configure.ac.obs 2018-03-08 12:46:30.000000000 +0100 ++++ libyami-40fa32e79f12c3c85c360532be00b7e4f9a35920/configure.ac 2018-03-09 17:30:04.515833627 +0100 +@@ -417,8 +417,7 @@ AC_PROG_CPP + AC_PROG_INSTALL + AC_PROG_LN_S + AC_PROG_MAKE_SET +-AC_PROG_LIBTOOL +-#LT_INIT ++LT_INIT + # Checks for libraries. + + # Checks for header files. diff --git a/libyami.spec b/libyami.spec new file mode 100644 index 0000000..7c3742b --- /dev/null +++ b/libyami.spec @@ -0,0 +1,51 @@ +Name: libyami +Version: 1.3.1 +Release: 3 +Summary: Another Media Infrastructure +License: ASL 2.0 and BSD +URL: https://github.com/intel/libyami +Source0: https://github.com/intel/libyami/archive/fb48083de91f837ddbf599dd4b5ad1eb1239e1cf/libyami-fb48083.tar.gz +Patch0000: libyami-libtool-macro.patch +BuildRequires: libtool gcc-c++ libva-devel pkgconfig(libdrm) pkgconfig(x11) +%description +Yami is the core building block of a media solution. It uses hardware acceleration to parses and decode video streams. + +%package devel +Summary: Development files for libyami +Requires: libyami = %{version}-%{release} +%description devel +Libyami-devel package contains libraries and header files used +for developing applications using libyami. + +%prep +%autosetup -n libyami-fb48083de91f837ddbf599dd4b5ad1eb1239e1cf -p1 +autoreconf -vif + +%build +%configure --disable-static --enable-dmabuf --enable-wayland \ + --enable-mpeg2dec --enable-vp9dec --enable-vc1dec \ + --enable-fakedec --enable-jpegenc --enable-vp8svct \ + --enable-vp9enc --enable-h265enc +%make_build V=1 + +%install +%make_install +%delete_la + +%post +/sbin/ldconfig +%postun +/sbin/ldconfig + +%files +%doc NEWS README.md codecparsers/{dboolhuff.LICENSE,vp9quant.LICENSE} LICENSE.md +%{_libdir}/*.so.* + +%files devel +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/libyami.pc + +%changelog +* Thu Jun 11 2020 wangchong - 1.3.1-3 +- package init diff --git a/libyami.yaml b/libyami.yaml new file mode 100644 index 0000000..ac6bc54 --- /dev/null +++ b/libyami.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/intel/libyami.git +version_control: github +src_repo: intel/libyami +tag_prefix: "libyami-" +seperator: "."