Группа :: Система/Библиотеки
Пакет: yaml-cpp
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define soversion 0.7
Name: yaml-cpp
Version: 0.7.0
Release: alt1
Summary: A YAML parser and emitter for C++
License: MIT
Group: System/Libraries
Url: https://github.com/jbeder/%name
# https://github.com/jbeder/%name/archive/%name-%version/%name-%name-%version.tar.gz
Source: %name-%name-%version.tar
Patch1: https://patch-diff.githubusercontent.com/raw/jbeder/yaml-cpp/pull/1037.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: boost-devel-headers cmake gcc-c++
%description
A YAML parser and emitter for C++
%package -n lib%name%soversion
Summary: A YAML parser and emitter for C++
Group: System/Libraries
%description -n lib%name%soversion
A YAML parser and emitter for C++
%package -n lib%name-devel
Summary: YAML Development libraries
Group: Development/C++
Provides: %name-devel = %EVR
Obsoletes: %name-devel < %EVR
%description -n lib%name-devel
Development libraries for YAML.
This package contains static development files for YAML.
%prep
%setup -n %name-%name-%version
%patch1 -p1
%build
%cmake \
-DCMAKE_INSTALL_DATADIR:PATH=%_libdir \
-DYAML_BUILD_SHARED_LIBS:BOOL=ON \
-DYAML_CPP_BUILD_TOOLS:BOOL=OFF \
-DYAML_CPP_BUILD_TESTS:BOOL=OFF \
%nil
%cmake_build
%install
%cmakeinstall_std
%files -n lib%name%soversion
%doc LICENSE *.md
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/%name
%_pkgconfigdir/*.pc
%_libdir/*.so
%_libdir/cmake/%name
%changelog
…
Полный changelog можно просмотреть здесь
%define soversion 0.7
Name: yaml-cpp
Version: 0.7.0
Release: alt1
Summary: A YAML parser and emitter for C++
License: MIT
Group: System/Libraries
Url: https://github.com/jbeder/%name
# https://github.com/jbeder/%name/archive/%name-%version/%name-%name-%version.tar.gz
Source: %name-%name-%version.tar
Patch1: https://patch-diff.githubusercontent.com/raw/jbeder/yaml-cpp/pull/1037.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: boost-devel-headers cmake gcc-c++
%description
A YAML parser and emitter for C++
%package -n lib%name%soversion
Summary: A YAML parser and emitter for C++
Group: System/Libraries
%description -n lib%name%soversion
A YAML parser and emitter for C++
%package -n lib%name-devel
Summary: YAML Development libraries
Group: Development/C++
Provides: %name-devel = %EVR
Obsoletes: %name-devel < %EVR
%description -n lib%name-devel
Development libraries for YAML.
This package contains static development files for YAML.
%prep
%setup -n %name-%name-%version
%patch1 -p1
%build
%cmake \
-DCMAKE_INSTALL_DATADIR:PATH=%_libdir \
-DYAML_BUILD_SHARED_LIBS:BOOL=ON \
-DYAML_CPP_BUILD_TOOLS:BOOL=OFF \
-DYAML_CPP_BUILD_TESTS:BOOL=OFF \
%nil
%cmake_build
%install
%cmakeinstall_std
%files -n lib%name%soversion
%doc LICENSE *.md
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/%name
%_pkgconfigdir/*.pc
%_libdir/*.so
%_libdir/cmake/%name
%changelog
…
Полный changelog можно просмотреть здесь