Name: libustr Version: 1.0.4 Release: 1mamba Summary: A string API for C Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.and.org/ustr/ Source: http://www.and.org/ustr/%{version}/ustr-%{version}.tar.bz2 License: LGPL, MIT, BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description ustr (Micro string library) is a string API for C. It has tiny overhead over just plain strdup(), is much safer, is easier to use, is faster for many operations, can be used with read-only or automatically allocated data. You don't even need to link to the library to use it (so there are no dependencies). %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel ustr (Micro string library) is a string API for C. It has tiny overhead over just plain strdup(), is much safer, is easier to use, is faster for many operations, can be used with read-only or automatically allocated data. You don't even need to link to the library to use it (so there are no dependencies). This package contains static libraries and header files need for development. %prep %setup -q -n ustr-%{version} %build %make CC=%{_host}-gcc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall mandir=%{_mandir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libustr-*.so.* %doc AUTHORS ChangeLog LICENSE NEWS README README-DEVELOPERS THANKS TODO %files devel %defattr(-,root,root) %{_bindir}/ustr-import %{_includedir}/ustr*.h %{_libdir}/libustr*.a %{_libdir}/libustr*.so %dir %{_datadir}/ustr-%{version} %{_datadir}/ustr-%{version}/.gdbinit %{_datadir}/ustr-%{version}/* %{_libdir}/pkgconfig/ustr*.pc %{_mandir}/man1/ustr-import.1* %{_mandir}/man3/ustr.3* %{_mandir}/man3/ustr_const.3* %{_docdir}/ustr-devel-%{version}/* %changelog * Sat Apr 30 2011 Silvan Calarco 1.0.4-1mamba - package created by autospec