Summary: avl for forked-daapd Name: libavl Version: 0.3.5 Release: 1%{?dist} License: LGPLv2+ # upstream is dead and gone Url: http://ftp.debian.org/debian/pool/main/liba/libavl/ Source: http://ftp.debian.org/debian/pool/main/liba/%{name}/%{name}_%{version}.orig.tar.gz Patch1: libavl_0.3.5-3.diff Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description AVLTree is a small implementation of AVL trees for the C programming language. It is distributed under the Library GNU Public License (see the file LICENSE for details). This library does the basic stuff. It allows for inserts, searches, and deletes in O(log n) time. It also allows the tree to be used as a linked indexable list (search/insert functions cannot be used in that case). libavl is not the GNU libavl. There doesn't seem to be an upstream website anymore, but you'll find the source tarball alongside the forked-daapd release tarballs (see below for the URL). Alternatively, you can fetch it from any Debian mirror, too (it'll be in /debian/pool/main/liba/libavl) %package devel Summary: Development package that includes the header files Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The devel package contains the library and the include files %prep %setup -q -n avl-%{version} %patch1 -p1 %build make %{?_smp_mflags} CFLAGS="%{optflags} -fPIC" %install mkdir -p %{buildroot}/%{_includedir} %{buildroot}/%{_libdir}/ install libavl*.so* %{buildroot}/%{_libdir}/ install -m0644 avl.h %{buildroot}/%{_includedir} ln -s libavl.so.1.5 %{buildroot}/%{_libdir}/libavl.so ln -s libavl.so.1.5 %{buildroot}/%{_libdir}/libavl.so.1 %clean rm -rf %{buildroot} %files %{_libdir}/libavl.so.* %doc README COPYING %files devel %{_libdir}/libavl.so %{_includedir}/*.h %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Fri Sep 28 2012 Paul Wouters - 0.3.5-1 - Initial package based of Debian's 0.3.5-3 release