%global githash c76a0951cfd204a3ad9cc3971aab0ae6a875c4e4 Name: kvazaar Version: 0.8.3 Release: 1%{?dist} Summary: High Efficiency Video Coding Encoder License: LGPLv2+ URL: http://ultravideo.cs.tut.fi/#encoder Source0: https://github.com/ultravideo/kvazaar/archive/%{githash}/%{name}-%{githash}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: yasm %description The purpose of this project is to develop a video encoder for the emerging High Efficiency Video Coding (HEVC) standard. %package devel Summary: Development package for %{name} Requires: %{name}%{_isa} = %{version}-%{release} %description devel This package contains the header files and static libraries needed to compile applications or shared objects that use %{name}. %prep %setup -q -n %{name}-%{githash} %build autoreconf -fi %configure --disable-static # remove RPATH hardcoding sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} find %{buildroot} -name '*.a' -delete find %{buildroot} -name '*.la' -delete # Handle with documentation license macros rm -rf %{buildroot}%{_docdir}/kvazaar %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_bindir}/%{name} %{_libdir}/*.so.* %doc CREDITS README.md %license COPYING %files devel %{_includedir}/*.h %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Sat Apr 30 2016 gil cattaneo 0.8.3-1 - initial rpm