Projects
Essentials
x265
x265.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File x265.spec of Package x265 (Revision 13)
Currently displaying revision
13
,
Show latest
# based on the spec file from https://build.opensuse.org/package/view_file/home:Simmphonie/libx265/ Name: x265 %define soname 87 %define libname lib%{name} %define libsoname %{libname}-%{soname} Version: 2.0 Release: 0 License: GPL-2.0+ Summary: A free h265/HEVC encoder - encoder binary Url: https://bitbucket.org/multicoreware/x265/wiki/Home Group: Productivity/Multimedia/Video/Editors and Convertors Source0: https://bitbucket.org/multicoreware/x265/downloads/%{name}_%{version}.tar.gz Patch0: arm.patch BuildRequires: gcc gcc-c++ BuildRequires: cmake >= 2.8.8 # for openSUSE 13.1 only libnuma-devel = 2.0.8 is available, but version 2.0.9 or higher is required # build against version 2.0.8 failes with "error: 'numa_bitmask_weight' was not declared in this scope" %if ! ( 0%{?suse_version} == 1310 ) %ifarch x86_64 BuildRequires: libnuma-devel >= 2.0.9 %endif %endif BuildRequires: pkg-config BuildRequires: yasm >= 1.2.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description x265 is a free library for encoding next-generation H265/HEVC video streams. %package -n %{libsoname} Summary: A free H265/HEVC encoder - encoder binary Group: Productivity/Multimedia/Video/Editors and Convertors %description -n %{libsoname} x265 is a free library for encoding next-generation H265/HEVC video streams. %package -n %{libname}-devel Summary: Libraries and include file for the %{libname} encoder Group: Development/Libraries/C and C++ Requires: %{buildrequires} Requires: %{libsoname} = %{version} Provides: %{name}-devel = %{version} Obsoletes: %{name}-devel < %{version} %description -n %{libname}-devel x265 is a free library for encoding next-generation H265/HEVC video streams. %prep %setup -q -n x265_%{version} %patch0 -p1 %define FAKE_BUILDDATE %(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') sed -i -e "s/0.0/%{soname}.0/g" source/cmake/version.cmake %build export CXXFLAGS="%{optflags}" export CFLAGS="%{optflags}" cd build/linux cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIB_INSTALL_DIR=%{_lib} \ -DENABLE_TESTS=ON \ -G "Unix Makefiles" \ ../../source make %{?_smp_mflags} VERBOSE=1 %install cd build/linux %makeinstall rm -f %{buildroot}%{_libdir}/%{libname}.a echo "%{libname}-%{soname}" > %{_sourcedir}/baselibs.conf %post -n %{libsoname} -p /sbin/ldconfig %postun -n %{libsoname} -p /sbin/ldconfig %files -n %{libsoname} %defattr(0644,root,root) %{_libdir}/%{libname}.so.%{soname}* %files %defattr(0755,root,root) %{_bindir}/%{name} %files -n %{libname}-devel %defattr(0644,root,root) %{_includedir}/%{name}.h %{_includedir}/%{name}_config.h %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/%{libname}.so %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.