Search
SailfishOS Open Build Service
>
Projects
>
home:birdzhang
:
rime
>
yaml-cpp
> _service:tar_git:yaml-cpp.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:yaml-cpp.spec of Package yaml-cpp
# # spec file for package yaml-cpp # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define library_name libyaml-cpp0_6 Name: yaml-cpp Version: 0.6.2+master.20181213083542.4d61e32 Release: 0 Summary: YAML parser and emitter in C++ License: MIT Group: Development/Libraries/C and C++ Url: https://github.com/jbeder/yaml-cpp/ Source: https://github.com/jbeder/yaml-cpp/archive/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig BuildRequires: sed BuildRequires: gcc BuildRequires: gcc-c++ %description A YAML parser and emitter in C++ matching the YAML 1.2 spec. %package -n %{library_name} Summary: YAML parser and emitter in C++ Group: Development/Libraries/C and C++ %description -n %{library_name} A YAML parser and emitter in C++ matching the YAML 1.2 spec. %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{library_name} = %{version} %description devel Development files for %{name} library. %prep %setup -q -n %{name}-%{version}/%{name} %build export CC=gcc export CXX=g++ %cmake -DYAML_CPP_BUILD_TESTS:BOOL=OFF \ -DCMAKE_C_COMPILER=$CC \ -DCMAKE_CXX_COMPILER=$CXX make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} %post -n %{library_name} -p /sbin/ldconfig %postun -n %{library_name} -p /sbin/ldconfig %files -n %{library_name} %defattr(-,root,root,-) %doc LICENSE %{_libdir}/libyaml-cpp.so.* %files devel %defattr(-,root,root,-) %{_includedir}/yaml-cpp/ %{_libdir}/libyaml-cpp.so %{_libdir}/pkgconfig/yaml-cpp.pc %{_libdir}/cmake/%{name}/ %changelog