Projects
Essentials
x265
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 16
View file
x265.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Dec 20 12:02:33 UTC 2016 - scarabeus@opensuse.org + +- Switch to use cmake macros + +------------------------------------------------------------------- Thu Sep 29 12:26:59 UTC 2016 - idonmez@suse.com - Update to version 2.1
View file
x265.spec
Changed
@@ -14,13 +14,7 @@ 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 @@ -50,32 +44,28 @@ streams. %prep -%setup -q -n x265_%{version} +%setup -q -n %{name}_%{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 +%if 0%{?suse_version} < 1330 +cd source +%else +%define __builddir ./source/build +%define __sourcedir ./source +%endif +%cmake -DENABLE_TESTS=ON +make %{?_smp_mflags} %install -cd build/linux -%makeinstall - +%if 0%{?suse_version} < 1330 +cd source +%endif +%cmake_install rm -f %{buildroot}%{_libdir}/%{libname}.a - echo "%{libname}-%{soname}" > %{_sourcedir}/baselibs.conf %post -n %{libsoname} -p /sbin/ldconfig
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
.