libyaml/libyaml.spec
Dirk Mueller 0a4cff36b8 - update to 0.2.5:
* Allow question marks in plain scalars in flow collections
  * Emitter: Don't output trailing space for empty scalar nodes
  * Emitter: Output space after an alias mapping key
  * Add -h and --flow (on|off|keep) to run-*-test-suite
  * Remove unnecessary include and malloc
  * Add specific files back to .gitignore
  * Output error position in run-parser-test-suite.c
  * A couple patches to improve test suite support

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyaml?expand=0&rev=29
2020-08-15 22:29:55 +00:00

77 lines
2.0 KiB
RPMSpec

#
# spec file for package libyaml
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: libyaml
Version: 0.2.5
Release: 0
Summary: A YAML parser and emitter written in C
License: MIT
Group: Development/Libraries/C and C++
URL: https://pyyaml.org/wiki/LibYAML
Source: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
BuildRequires: pkgconfig
%description
A YAML parser and emitter written in C
%define lib_name libyaml-0-2
%package -n %{lib_name}
Summary: A YAML parser and emitter written in C
Group: System/Libraries
%description -n %{lib_name}
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
This package holds the development files for libyaml,
a YAML parser and emitter written in C.
%prep
%setup -q -n yaml-%{version}
%build
%configure --disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
%make_build 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