forked from pool/yaml-cpp
Accepting request 91406 from home:scarabeus_iv:testing
Quite nice cpp interface I use for my hacking and soon I will add at least one consumer (openxcom game) OBS-URL: https://build.opensuse.org/request/show/91406 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/yaml-cpp?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
_service
Normal file
3
_service
Normal file
@@ -0,0 +1,3 @@
|
||||
<services>
|
||||
<service name="download_url"><param name="path">files/yaml-cpp-0.2.7.tar.gz</param><param name="host">yaml-cpp.googlecode.com</param></service>
|
||||
</services>
|
||||
4
yaml-cpp.changes
Normal file
4
yaml-cpp.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 14 15:58:30 UTC 2011 - tchvatal@suse.com
|
||||
|
||||
- Initial commit of yaml-cpp.
|
||||
93
yaml-cpp.spec
Normal file
93
yaml-cpp.spec
Normal file
@@ -0,0 +1,93 @@
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products 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/
|
||||
#
|
||||
|
||||
Name: yaml-cpp
|
||||
Version: 0.2.7
|
||||
Release: 1
|
||||
License: MIT
|
||||
Summary: YAML parser and emitter in C++
|
||||
Url: http://code.google.com/p/yaml-cpp/
|
||||
Group: Development/Libraries/C and C++
|
||||
Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc gcc-c++
|
||||
BuildRequires: sed
|
||||
BuildRequires: pkg-config
|
||||
|
||||
%description
|
||||
A YAML parser and emitter in C++ matching the YAML 1.2 spec.
|
||||
|
||||
%define library_name libyaml-cpp0_2
|
||||
%package -n %{library_name}
|
||||
Group: Development/Libraries/C and C++
|
||||
License: MIT
|
||||
Summary: YAML parser and emitter in C++
|
||||
|
||||
%description -n %{library_name}
|
||||
A YAML parser and emitter in C++ matching the YAML 1.2 spec.
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries/C and C++
|
||||
License: MIT
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{library_name} = %{version}
|
||||
|
||||
%description devel
|
||||
Development files for %{name} library
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
sed -i -e 's:INCLUDE_INSTALL_ROOT_DIR:INCLUDE_INSTALL_DIR:g' yaml-cpp.pc.cmake
|
||||
mkdir build
|
||||
|
||||
%build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="%{optflags}" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
%if %{_lib} == lib64
|
||||
-DLIB_SUFFIX=64 \
|
||||
%endif
|
||||
%{_builddir}/%{name}-%{version}
|
||||
make VERBOSE=1 %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
cd build
|
||||
make DESTDIR=%{buildroot} install
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%post -n libyaml-cpp0_2 -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%postun -n libyaml-cpp0_2 -p /sbin/ldconfig
|
||||
|
||||
%files -n libyaml-cpp0_2
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/lib*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/yaml-cpp/
|
||||
%{_libdir}/lib*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user