diff --git a/README.md b/README.md index d9c1522..4758e2b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libyaml +LibYAML - A C library for parsing and emitting YAML. + diff --git a/libyaml.spec b/libyaml.spec new file mode 100644 index 0000000..b17e68d --- /dev/null +++ b/libyaml.spec @@ -0,0 +1,66 @@ +Name: libyaml +Version: 0.1.4 +Release: 1mamba +Summary: LibYAML - A C library for parsing and emitting YAML +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://pyyaml.org/wiki/LibYAML +## GITSOURCE https://github.com/yaml/libyaml.git 0.1.4 +Source: https://github.com/yaml/libyaml.git/%{version}/libyaml-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +LibYAML - A C library for parsing and emitting YAML. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +./bootstrap +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libyaml-0.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/yaml.h +%{_libdir}/libyaml.a +%{_libdir}/libyaml.la +%{_libdir}/libyaml.so +%{_libdir}/pkgconfig/yaml-0.1.pc +%doc README + +%changelog +* Sun Oct 26 2014 Silvan Calarco 0.1.4-1mamba +- package created using the webbuild interface