Projects
home:Eustace:branches:Eulaceura:Factory
yaml-cpp
_service:obs_scm:yaml-cpp.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:yaml-cpp.spec of Package yaml-cpp
Name: yaml-cpp Version: 0.8.0 Release: 1 Summary: A YAML parser and emitter in C++. License: MIT URL: https://github.com/jbeder/yaml-cpp Source0: https://github.com/jbeder/yaml-cpp/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake gcc gcc-c++ %description yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec. %package devel Summary: Development files for yaml-cpp Requires: yaml-cpp = %{version}-%{release} boost-devel pkgconfig Provides: yaml-cpp-static = %{version}-%{release} Obsoletes: yaml-cpp-static < %{version}-%{release} %description devel This package contains libraries and header files for developing applications that use yaml-cpp. %prep %autosetup -n %{name}-%{version} -p1 %build %cmake -B build_static \ -DCMAKE_BUILD_TYPE=Release \ -DYAML_CPP_BUILD_TOOLS:BOOL=OFF \ -DYAML_CPP_FORMAT_SOURCE:BOOL=OFF \ -DYAML_CPP_INSTALL:BOOL=ON \ -DYAML_BUILD_SHARED_LIBS:BOOL=OFF \ -DYAML_CPP_BUILD_TESTS:BOOL=OFF %make_build -C build_static %cmake -B build_shared \ -DCMAKE_BUILD_TYPE=Release \ -DYAML_CPP_BUILD_TOOLS:BOOL=OFF \ -DYAML_CPP_FORMAT_SOURCE:BOOL=OFF \ -DYAML_CPP_INSTALL:BOOL=ON \ -DYAML_BUILD_SHARED_LIBS:BOOL=ON \ -DYAML_CPP_BUILD_TESTS:BOOL=OFF %make_build -C build_shared %install %make_install -C build_static yaml-cpp # Move files so they don't get trampled mv %{buildroot}%{_libdir}/cmake/%{name} \ %{buildroot}%{_libdir}/cmake/%{name}-static mv %{buildroot}%{_libdir}/pkgconfig/%{name}.pc \ %{buildroot}%{_libdir}/pkgconfig/%{name}-static.pc %make_install -C build_shared %post /sbin/ldconfig %postun /sbin/ldconfig %files %license LICENSE %doc README.md %{_libdir}/*.so.* %files devel %{_libdir}/*.so %{_libdir}/*.a %{_includedir}/yaml-cpp/ %{_libdir}/cmake/ %{_libdir}/pkgconfig/ %changelog * Mon Sep 30 2024 Ge Wang <wang__ge@126.com> - 0.8.0-1 - Update to version 0.8.0 * Tue Sep 05 2023 yaoxin <yao_xin001@hoperun.com> - 0.7.0-2 - Fix cmake error of referencing yaml-cpp-devel and remove unused patch * Thu Jul 06 2023 yaoxin <yao_xin001@hoperun.com> - 0.7.0-1 - Update to 0.7.0 - Abi change: libyaml-cpp.so.0.6.3 -> libyaml-cpp.so.0.7.0 * Mon Jan 6 2020 Senlin Xia<xiasenlin1@huawei.com> - 0.6.3-1 - Package init
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
.
浙ICP备2022010568号-2