%define major 102 %define libname %mklibname %{name}_ %{major} %define develname %mklibname %{name} -d Name: x265 Version: 2.2 Release: %mkrel 1 Summary: H265/AVC encoder License: GPLv2 Group: Video/Utilities Url: http://x265.org/ Source0: http://ftp.videolan.org/pub/videolan/x265/%{name}_%{version}.tar.gz BuildRequires: yasm BuildRequires: cmake %description x265 is an open-source project and free application library for encoding video streams into the H.265/High Efficiency Video Coding (HEVC) format. This package is in tainted repository as the video encoder may be covered by software patents. %package -n %{libname} Summary: Shared library of x265 Group: System/Libraries %description -n %{libname} x265 dynamic libraries. %package -n %{develname} Summary: H265/AVC encoding library headers Group: Development/C Requires: %{libname} = %{version} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} Development files for %{name}. %prep %setup -q -n %{name}_%{version} %build %cmake ../source %make %install %make_install -C build #TODO disable static build rm %{buildroot}%{_libdir}/libx265.a %files %doc COPYING %{_bindir}/%{name} %files -n %{libname} %{_libdir}/libx265.so.%{major} %files -n %{develname} %{_includedir}/*.h %{_libdir}/libx265.so %{_libdir}/pkgconfig/*.pc %changelog * Sat Dec 31 2016 luigiwalser <luigiwalser> 2.2-1.mga6 + Revision: 1078929 - 2.2 - library major is now 102 * Fri Nov 11 2016 luigiwalser <luigiwalser> 2.1-1.mga6 + Revision: 1066618 - 2.1 - library major is now 95 * Sat Sep 10 2016 luigiwalser <luigiwalser> 2.0-1.mga6.tainted + Revision: 1051190 - 2.0 - library major is now 87 * Mon Feb 08 2016 zezinho <zezinho> 1.9-1.mga6.tainted + Revision: 950296 - fix libversion - new version 1.9 * Thu Oct 08 2015 zezinho <zezinho> 1.8-2.mga6.tainted + Revision: 887880 - move so file to devel - imported package x265