Package init
This commit is contained in:
commit
191d643ef4
67
libyaml.spec
Normal file
67
libyaml.spec
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
Name: libyaml
|
||||||
|
Version: 0.2.2
|
||||||
|
Release: 1
|
||||||
|
Summary: A C library for parsing and emitting YAML
|
||||||
|
License: MIT
|
||||||
|
URL: http://pyyaml.org/
|
||||||
|
Source0: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
|
||||||
|
%description
|
||||||
|
${summary}.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for LibYAML applications
|
||||||
|
Requires: libyaml = %{version}-%{release}, pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Documents for using LibYAML
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n yaml-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --enable-static=no
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
rm -vf %{buildroot}%{_libdir}/*.la
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license LICENSE
|
||||||
|
%doc README
|
||||||
|
%{_libdir}/%{name}*.so.*
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/%{name}*.so
|
||||||
|
%{_libdir}/pkgconfig/yaml-0.1.pc
|
||||||
|
%{_includedir}/yaml.h
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc doc/html
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.2-1
|
||||||
|
- Package init
|
||||||
BIN
yaml-0.2.2.tar.gz
Normal file
BIN
yaml-0.2.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user