OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [email protected] Module: openpkg-src Date: 14-Mar-2009 11:00:16 Branch: HEAD Handle: 2009031410001500 Added files: openpkg-src/liboil liboil.patch liboil.spec Log: new package: liboil 0.3.15 (CPU-Optimized Function Library) Summary: Revision Changes Path 1.1 +32 -0 openpkg-src/liboil/liboil.patch 1.1 +94 -0 openpkg-src/liboil/liboil.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/liboil/liboil.patch ============================================================================ $ cvs diff -u -r0 -r1.1 liboil.patch --- /dev/null 2009-03-14 11:00:13 +0100 +++ liboil.patch 2009-03-14 11:00:16 +0100 @@ -0,0 +1,32 @@ +Index: liboil.pc.in +--- liboil.pc.in.orig 2007-11-16 03:53:47 +0100 ++++ liboil.pc.in 2009-03-14 10:56:23 +0100 +@@ -1,7 +1,7 @@ + pref...@prefix@ + exec_pref...@exec_prefix@ + libd...@libdir@ +-included...@includedir@/libo...@liboil_majorminor@ ++included...@includedir@ + toolsdir=${exec_prefix}/bin + + +@@ -9,6 +9,6 @@ + Description: Library of Optimized Inner Loops + Version: @VERSION@ + Libs: -L${libdir} -lo...@liboil_majorminor@ @LIBM@ @LIBRT@ +-Cflags: -I${includedir} ++Cflags: -I${includedir}/liboil -I${includedir} + + +Index: liboil/Makefile.in +--- liboil/Makefile.in.orig 2008-07-01 06:46:08 +0200 ++++ liboil/Makefile.in 2009-03-14 10:56:05 +0100 +@@ -229,7 +229,7 @@ + ETAGS = etags + CTAGS = ctags + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +-pkgincludedir = $(includedir)/libo...@liboil_majorminor@/liboil ++pkgincludedir = $(includedir)/liboil + ACLOCAL = @ACLOCAL@ + ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ + ALTIVEC_CFLAGS = @ALTIVEC_CFLAGS@ @@ . patch -p0 <<'@@ .' Index: openpkg-src/liboil/liboil.spec ============================================================================ $ cvs diff -u -r0 -r1.1 liboil.spec --- /dev/null 2009-03-14 11:00:13 +0100 +++ liboil.spec 2009-03-14 11:00:16 +0100 @@ -0,0 +1,94 @@ +## +## liboil.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: liboil +Summary: CPU-Optimized Function Library +URL: http://liboil.freedesktop.org/ +Vendor: David Schleef +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Libraries +License: BSD +Version: 0.3.15 +Release: 20090314 + +# list of sources +Source0: http://liboil.freedesktop.org/download/liboil-%{version}.tar.gz +Patch0: liboil.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc +PreReq: OpenPKG, openpkg >= 20060823 +AutoReq: no +AutoReqProv: no + +%description + Liboil is a library of simple functions that are optimized for + various CPUs. These functions are generally loops implementing + simple algorithms, such as converting an array of N integers to + floating-point numbers or multiplying and summing an array of N + numbers. Such functions are candidates for significant optimization + using various techniques, especially by using extended instructions + provided by modern CPUs (Altivec, MMX, SSE, etc.). + +%track + prog liboil = { + version = %{version} + url = http://liboil.freedesktop.org/download/ + regex = liboil-(__VER__)\.tar\.gz + } + +%prep + %setup -q + %patch -p0 + +%build + CC="%{l_cc}" \ + CXX="%{l_cxx}" \ + CFLAGS="%{l_cflags -O}" \ + CXXFLAGS="%{l_cxxflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --disable-glib \ + --disable-gtk-doc \ + --disable-shared + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc >/dev/null 2>&1 || true + rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin >/dev/null 2>&1 || true + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List [email protected]
