Initialize for libyaml
This commit is contained in:
commit
d54633645b
4 changed files with 103 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
yaml-0.1.7.tar.gz
|
1
.libyaml.metadata
Normal file
1
.libyaml.metadata
Normal file
|
@ -0,0 +1 @@
|
||||||
|
4968e80a7690a1b5c27632584d51ded12ba3253a265c708a3728833910f629b4 yaml-0.1.7.tar.gz
|
33
libyaml.changes
Normal file
33
libyaml.changes
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
* Sun Dec 31 2017 avindra@opensuse.org
|
||||||
|
- update to 0.1.7
|
||||||
|
* Fixed segfault in yaml_string_write_handler
|
||||||
|
* Fixed invalid simple key assertion (CVE-2014-9130)
|
||||||
|
* Fixed error handling in some examples
|
||||||
|
- remove CVE-2014-9130.patch
|
||||||
|
- fixed upstream in 946596172d140497b560e016e581accb0a92cca4
|
||||||
|
- cleanup spec file with spec-cleaner
|
||||||
|
* Wed Dec 3 2014 jmassaguerpla@suse.com
|
||||||
|
- fix CVE-2014-9130: libyaml: assert failure when processing
|
||||||
|
wrapped strings (bnc#907809)
|
||||||
|
CVE-2014-9130.patch contains the fix
|
||||||
|
* Fri Mar 28 2014 jmassaguerpla@suse.com
|
||||||
|
- update to 0.1.6 is a security update release for:
|
||||||
|
* CVE-2014-2525: heap overflow during parsing (bnc#868944)
|
||||||
|
bnc#860617)
|
||||||
|
* Fri Feb 7 2014 dmueller@suse.com
|
||||||
|
- update to 0.1.5:
|
||||||
|
* Manually define PTRDIFF_MAX for VS C compiler
|
||||||
|
* Limit input size to SIZE_MAX/2
|
||||||
|
* Guard against overflows in indent and flow_level (CVE-2013-6393, bnc#860617)
|
||||||
|
* Prevent node index overflow (Reported by Florian Weimer).
|
||||||
|
* Fixed invalid size_t->int cast (Thank to Florian Weimer).
|
||||||
|
* Tue Mar 26 2013 dmueller@suse.com
|
||||||
|
- update to 0.1.4:
|
||||||
|
* documentation update
|
||||||
|
* add pkgconfig support
|
||||||
|
* Sun Jan 29 2012 jengelh@medozas.de
|
||||||
|
- Remove redundant tags/sections per specfile guideline suggestions
|
||||||
|
* Wed Feb 9 2011 pascal.bleser@opensuse.org
|
||||||
|
- fixed erroneous license from GPLv2 to MIT, bnc#670525
|
||||||
|
* Tue Apr 6 2010 mrueckert@suse.de
|
||||||
|
- initial package of version 0.1.3
|
68
libyaml.spec
Normal file
68
libyaml.spec
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
#
|
||||||
|
# spec file for package libyaml
|
||||||
|
#
|
||||||
|
# Copyright (c) 2022-2023 ZhuningOS
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: libyaml
|
||||||
|
Version: 0.1.7
|
||||||
|
Release: 1.17
|
||||||
|
Summary: A YAML 1.1 parser and emitter written in C
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Url: http://pyyaml.org/wiki/LibYAML
|
||||||
|
Source: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
|
%description
|
||||||
|
A YAML 1.1 parser and emitter written in C
|
||||||
|
|
||||||
|
%define lib_name libyaml-0-2
|
||||||
|
|
||||||
|
%package -n %{lib_name}
|
||||||
|
Summary: Shared library from libyaml
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
|
%description -n %{lib_name}
|
||||||
|
A YAML 1.1 parser and emitter written in C
|
||||||
|
|
||||||
|
This package holds the shared library of libyaml.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libyaml
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{lib_name} = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
A YAML 1.1 parser and emitter written in C
|
||||||
|
|
||||||
|
This package holds the development files for libyaml.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n yaml-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --with-pic --disable-static
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
%check
|
||||||
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
|
%post -n %{lib_name} -p /sbin/ldconfig
|
||||||
|
%postun -n %{lib_name} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n %{lib_name}
|
||||||
|
%{_libdir}/libyaml-0.so.2
|
||||||
|
%{_libdir}/libyaml-0.so.2.0.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/yaml.h
|
||||||
|
%{_libdir}/libyaml.so
|
||||||
|
%{_libdir}/pkgconfig/yaml-0.1.pc
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Add table
Reference in a new issue