Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X265 1.9 #367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions specs/x265/x265.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# $Id$
# Authority: matthias

Summary: Library for encoding H265/HEVC video streams
Name: x265
Version: 1.9
Release: 1%{?dist}
License: GPL
Group: System Environment/Libraries
URL: http://developers.videolan.org/x265.html

Source: http://downloads.videolan.org/pub/videolan/x265/x265_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: yasm
BuildRequires: cmake

%description
Utility and library for encoding H265/HEVC video streams.

%package devel
Summary: Development files for the x265 library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}, pkgconfig

%description devel
This package contains the files required to develop programs that will encode
H265/HEVC video streams using the x265 library.

%prep
%setup -n %{name}_%{version}
# configure hardcodes X11 lib path
%{__perl} -pi -e 's|/usr/X11R6/lib |/usr/X11R6/%{_lib} |g' configure

%build
# Force PIC as applications fail to recompile against the lib on x86_64 without
cd build/linux
%cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
%{?_without_asm:-DENABLE_ASSENBLY=OFF} \
../../source

%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
cd build/linux
%{__make} install DESTDIR="%{buildroot}"

%clean
%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-, root, root, 0755)
%doc COPYING
%{_bindir}/x265
%{_libdir}/libx265.so.*

%files devel
%defattr(-, root, root, 0755)
%doc doc/reST/*.rst
%{_includedir}/x265.h
%{_includedir}/x265_config.h
%{_libdir}/pkgconfig/x265.pc
%{_libdir}/libx265.a
%{_libdir}/libx265.so

%changelog
* Tue Feb 23 2016 Moriyoshi Koizumi <[email protected]> 1.9-1
- Initial RPM release.

Binary file added specs/x265/x265_1.9.tar.gz
Binary file not shown.