2011-02-15 18:14:34 +01:00
|
|
|
#
|
|
|
|
# spec file for package libyaml
|
|
|
|
#
|
2022-09-12 09:28:51 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-02-15 18:14:34 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-06 14:59:52 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-02-15 18:14:34 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-02-15 18:14:24 +01:00
|
|
|
Name: libyaml
|
2020-08-16 00:29:55 +02:00
|
|
|
Version: 0.2.5
|
2014-02-07 17:32:28 +01:00
|
|
|
Release: 0
|
2020-04-20 22:21:33 +02:00
|
|
|
Summary: A YAML parser and emitter written in C
|
2014-02-07 17:32:28 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-04-20 22:21:33 +02:00
|
|
|
URL: https://pyyaml.org/wiki/LibYAML
|
2018-01-03 11:26:31 +01:00
|
|
|
Source: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
|
2022-09-12 09:28:51 +02:00
|
|
|
Source99: baselibs.conf
|
2018-01-03 11:26:31 +01:00
|
|
|
BuildRequires: pkgconfig
|
2011-02-15 18:14:34 +01:00
|
|
|
|
2011-02-15 18:14:24 +01:00
|
|
|
%description
|
2020-04-20 22:21:33 +02:00
|
|
|
A YAML parser and emitter written in C
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%define lib_name libyaml-0-2
|
2011-02-15 18:14:34 +01:00
|
|
|
|
2011-02-15 18:14:24 +01:00
|
|
|
%package -n %{lib_name}
|
2020-04-20 22:21:33 +02:00
|
|
|
Summary: A YAML parser and emitter written in C
|
2019-01-28 14:43:34 +01:00
|
|
|
Group: System/Libraries
|
2011-02-15 18:14:34 +01:00
|
|
|
|
2011-02-15 18:14:24 +01:00
|
|
|
%description -n %{lib_name}
|
|
|
|
This package holds the shared library of libyaml.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libyaml
|
2014-02-07 17:32:28 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-01-03 11:26:31 +01:00
|
|
|
Requires: %{lib_name} = %{version}
|
2011-02-15 18:14:34 +01:00
|
|
|
|
2011-02-15 18:14:24 +01:00
|
|
|
%description devel
|
2019-01-28 14:43:34 +01:00
|
|
|
This package holds the development files for libyaml,
|
2020-04-20 22:21:33 +02:00
|
|
|
a YAML parser and emitter written in C.
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%prep
|
2018-01-03 11:26:31 +01:00
|
|
|
%setup -q -n yaml-%{version}
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%build
|
2019-01-28 14:43:34 +01:00
|
|
|
%configure --disable-static
|
2020-04-20 22:21:33 +02:00
|
|
|
%make_build
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%install
|
2018-01-03 11:26:31 +01:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%check
|
2020-04-20 22:21:33 +02:00
|
|
|
%make_build check
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%post -n %{lib_name} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lib_name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{lib_name}
|
|
|
|
%{_libdir}/libyaml-0.so.2
|
2013-04-03 13:03:33 +02:00
|
|
|
%{_libdir}/libyaml-0.so.2.0.*
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/yaml.h
|
|
|
|
%{_libdir}/libyaml.so
|
2013-04-03 13:03:33 +02:00
|
|
|
%{_libdir}/pkgconfig/yaml-0.1.pc
|
2011-02-15 18:14:24 +01:00
|
|
|
|
|
|
|
%changelog
|