Группа :: System/Legacy libraries
Пакет: libyaml-cpp0
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define origname yaml-cpp
%define soversion 0
Name: lib%origname%soversion
Version: 0.6.3
Release: alt2
Summary: A YAML parser and emitter for C++
License: MIT
Group: System/Legacy libraries
Url: https://github.com/jbeder/yaml-cpp
# https://github.com/jbeder/yaml-cpp.git
Source: %name-%version.tar
Patch1: CVE-2017-5950.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: boost-devel-headers cmake gcc-c++
Provides: %name = %EVR
%description
A YAML parser and emitter for C++
%prep
%setup
%patch1 -p1
%build
%cmake \
-DYAML_BUILD_SHARED_LIBS:BOOL=ON \
-DYAML_CPP_BUILD_TOOLS:BOOL=OFF \
-DYAML_CPP_BUILD_TESTS:BOOL=OFF \
%nil
%cmake_build
%install
%cmakeinstall_std
%__rm -rf %buildroot%_includedir/%origname
%__rm -rf %buildroot%_libdir/cmake/%origname
%__rm -rf %buildroot%_libdir/lib%origname.so
%__rm -rf %buildroot%_pkgconfigdir/%origname.pc
%files
%doc LICENSE *.md
%_libdir/*.so.*
%changelog
…
Полный changelog можно просмотреть здесь
%define origname yaml-cpp
%define soversion 0
Name: lib%origname%soversion
Version: 0.6.3
Release: alt2
Summary: A YAML parser and emitter for C++
License: MIT
Group: System/Legacy libraries
Url: https://github.com/jbeder/yaml-cpp
# https://github.com/jbeder/yaml-cpp.git
Source: %name-%version.tar
Patch1: CVE-2017-5950.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: boost-devel-headers cmake gcc-c++
Provides: %name = %EVR
%description
A YAML parser and emitter for C++
%prep
%setup
%patch1 -p1
%build
%cmake \
-DYAML_BUILD_SHARED_LIBS:BOOL=ON \
-DYAML_CPP_BUILD_TOOLS:BOOL=OFF \
-DYAML_CPP_BUILD_TESTS:BOOL=OFF \
%nil
%cmake_build
%install
%cmakeinstall_std
%__rm -rf %buildroot%_includedir/%origname
%__rm -rf %buildroot%_libdir/cmake/%origname
%__rm -rf %buildroot%_libdir/lib%origname.so
%__rm -rf %buildroot%_pkgconfigdir/%origname.pc
%files
%doc LICENSE *.md
%_libdir/*.so.*
%changelog
…
Полный changelog можно просмотреть здесь