diff --git a/.cvsignore b/.cvsignore index e69de29..57e9374 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +yaml-0.1.2.tar.gz diff --git a/libyaml.spec b/libyaml.spec new file mode 100644 index 0000000..059ed10 --- /dev/null +++ b/libyaml.spec @@ -0,0 +1,73 @@ +Name: libyaml +Version: 0.1.2 +Release: 2%{?dist} +Summary: YAML 1.1 parser and emitter written in C + +Group: Development/Libraries +License: MIT +URL: http://pyyaml.org/ +Source0: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + + +%description +YAML is a data serialization format designed for human readability and +interaction with scripting languages. LibYAML is a YAML parser and +emitter written in C. + + +%package devel +Summary: Development libraries and headers for developing LibYAML applications +Group: Development/Libraries +Requires: libyaml = %{version}-%{release} + + +%description devel +Development libraries and headers for developing LibYAML applications. + + +%prep +%setup -q -n yaml-%{version} + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} INSTALL="install -p" install +rm -f %{buildroot}%{_libdir}/*.la + +%clean +rm -rf %{buildroot} + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc README LICENSE +%{_libdir}/%{name}*.so.* + + +%files devel +%defattr(-,root,root,-) +%doc doc/html +%{_libdir}/%{name}*.so +%{_libdir}/*a +%{_includedir}/yaml.h + + +%changelog +* Thu Feb 26 2009 John Eckersberg - 0.1.2-2 +- Remove README and LICENSE from docs on -devel package +- Remove -static package and merge contents into the -devel package + +* Wed Feb 25 2009 John Eckersberg - 0.1.2-1 +- Initial packaging for Fedora diff --git a/sources b/sources index e69de29..f969dc6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f6c9b5c2b0f6919abd79f5fd059b01dc yaml-0.1.2.tar.gz