package init
This commit is contained in:
parent
2b191f2a62
commit
8baaea0e37
BIN
release-0.3.0.tar.gz
Normal file
BIN
release-0.3.0.tar.gz
Normal file
Binary file not shown.
10
yaml-cpp03-pkgconf.patch
Normal file
10
yaml-cpp03-pkgconf.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -Naur yaml-cpp.orig/yaml-cpp.pc.cmake yaml-cpp/yaml-cpp.pc.cmake
|
||||
--- yaml-cpp.orig/yaml-cpp.pc.cmake 2012-01-21 02:52:48.000000000 -0600
|
||||
+++ yaml-cpp/yaml-cpp.pc.cmake 2013-10-16 14:41:06.837360011 -0500
|
||||
@@ -7,5 +7,5 @@
|
||||
Description: A YAML parser and emitter for C++
|
||||
Version: @YAML_CPP_VERSION@
|
||||
Requires:
|
||||
-Libs: -L${libdir} -lyaml-cpp
|
||||
+Libs: -L${libdir} -lyaml-cpp03
|
||||
Cflags: -I${includedir}
|
||||
67
yaml-cpp03.spec
Normal file
67
yaml-cpp03.spec
Normal file
@ -0,0 +1,67 @@
|
||||
%global realname yaml-cpp
|
||||
|
||||
Name: yaml-cpp03
|
||||
Version: 0.3.0
|
||||
Release: 1
|
||||
Summary: A YAML parser and emitter for C++
|
||||
License: MIT
|
||||
URL: https://github.com/jbeder/yaml-cpp
|
||||
Source0: https://github.com/jbeder/yaml-cpp/archive/release-%{version}.tar.gz
|
||||
Patch0: yaml-cpp03-pkgconf.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
Provides: yaml-cpp = %{version}-%{release}
|
||||
Obsoletes: yaml-cpp < 0.3.0-5
|
||||
|
||||
%description
|
||||
yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec.
|
||||
This is a compatibility package for version 0.3.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
License: MIT
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release} pkgconfig boost-devel
|
||||
Provides: yaml-cpp-devel = %{version}-%{release}
|
||||
Obsoletes: yaml-cpp-devel < 0.3.0-5
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
This is a compatibility package for version 3.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{realname}-release-%{version}
|
||||
%patch0 -p1 -b .pkgconf
|
||||
|
||||
# Fix eol
|
||||
sed -i 's/\r//' license.txt
|
||||
|
||||
%build
|
||||
%cmake . -DYAML_CPP_BUILD_TOOLS=0
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
mv %{buildroot}%{_includedir}/yaml-cpp %{buildroot}%{_includedir}/%{name}
|
||||
mv %{buildroot}%{_libdir}/libyaml-cpp.so %{buildroot}%{_libdir}/lib%{name}.so
|
||||
mv %{buildroot}%{_libdir}/pkgconfig/yaml-cpp.pc \
|
||||
%{buildroot}%{_libdir}/pkgconfig/%{name}.pc
|
||||
for header in %{buildroot}%{_includedir}/%{name}/*.h; do
|
||||
sed -i "s|#include \"yaml-cpp|#include \"%{name}|g" $header
|
||||
done
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc license.txt
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Mon Jul 27 2020 maminjie <maminjie1@huawei.com> - 0.3.0-1
|
||||
- package init
|
||||
4
yaml-cpp03.yaml
Normal file
4
yaml-cpp03.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: jbeder/yaml-cpp
|
||||
tag_prefix: release-
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user