libyaml/libyaml.spec
Dirk Mueller 44bc7c6fa5 - 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).

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyaml?expand=0&rev=11
2014-02-07 16:32:28 +00:00

84 lines
2.2 KiB
RPMSpec

#
# spec file for package libyaml
#
# Copyright (c) 2014 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: libyaml
Version: 0.1.5
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://pyyaml.org/wiki/LibYAML
Source: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
BuildRequires: pkg-config
Summary: A YAML 1.1 parser and emitter written in C
License: MIT
Group: Development/Libraries/C and C++
%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
Requires: %{lib_name} = %{version}
Summary: Development files for libyaml
Group: Development/Libraries/C and C++
%description devel
A YAML 1.1 parser and emitter written in C
This package holds the development files for libyaml.
%prep
%setup -n yaml-%{version}
%build
%configure --with-pic --disable-static
make %{?_smp_flags}
%install
%makeinstall
find %{buildroot} -name \*.la -delete -print
%check
make check
%post -n %{lib_name} -p /sbin/ldconfig
%postun -n %{lib_name} -p /sbin/ldconfig
%files -n %{lib_name}
%defattr(-,root,root,-)
%{_libdir}/libyaml-0.so.2
%{_libdir}/libyaml-0.so.2.0.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/yaml.h
%{_libdir}/libyaml.so
%{_libdir}/pkgconfig/yaml-0.1.pc
%changelog