forked from pool/libyaml
Accepted submit request 60306 from user ug OBS-URL: https://build.opensuse.org/request/show/60306 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libyaml?expand=0&rev=1
70 lines
1.4 KiB
RPMSpec
70 lines
1.4 KiB
RPMSpec
# norootforbuild
|
|
|
|
Name: libyaml
|
|
Version: 0.1.3
|
|
Release: 0
|
|
#
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
#
|
|
Url: http://pyyaml.org/wiki/LibYAML
|
|
Source: http://pyyaml.org/download/libyaml/yaml-0.1.3.tar.gz
|
|
#
|
|
Summary: A YAML 1.1 parser and emitter written in C
|
|
%description
|
|
A YAML 1.1 parser and emitter written in C
|
|
|
|
%define lib_name libyaml-0-2
|
|
%package -n %{lib_name}
|
|
Group: Development/Libraries/C and C++
|
|
#
|
|
Summary: Shared library from libyaml
|
|
%description -n %{lib_name}
|
|
A YAML 1.1 parser and emitter written in C
|
|
|
|
This package holds the shared library of libyaml.
|
|
|
|
%package devel
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{lib_name} = %{version}
|
|
#
|
|
Summary: Development files for libyaml
|
|
%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
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%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.1
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/yaml.h
|
|
%{_libdir}/libyaml.so
|
|
|
|
%changelog
|