OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: r...@openpkg.org Module: openpkg-src Date: 08-May-2009 20:15:51 Branch: HEAD Handle: 2009050819155000 Added files: openpkg-src/libbls libbls.patch libbls.spec Log: new package: libbls 0.2.0 (Efficient Data Manipulation Library) Summary: Revision Changes Path 1.1 +46 -0 openpkg-src/libbls/libbls.patch 1.1 +92 -0 openpkg-src/libbls/libbls.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/libbls/libbls.patch ============================================================================ $ cvs diff -u -r0 -r1.1 libbls.patch --- /dev/null 2009-05-08 20:15:46 +0200 +++ libbls.patch 2009-05-08 20:15:51 +0200 @@ -0,0 +1,46 @@ +Index: SConstruct +--- SConstruct.orig 2009-05-04 19:57:36 +0200 ++++ SConstruct 2009-05-08 20:05:57 +0200 +@@ -85,7 +85,7 @@ + ################################ + + # Add default CCFLAGS +-env.Append(CCFLAGS = '-std=c99 -D_XOPEN_SOURCE=600 -Wall -Wextra -pedantic -O2') ++env.Append(CCFLAGS = '-std=c99 -D_XOPEN_SOURCE=600 -O2') + + debug = ARGUMENTS.get('debug', 0) + if int(debug): +@@ -96,8 +96,8 @@ + if int(lfs): + # Save flags in their own construction environment variables so they can be + # use in creating the pkg-config file +- env['lfs_cflags'] = commands.getoutput("getconf LFS_CFLAGS") +- env['lfs_ldflags'] = commands.getoutput("getconf LFS_LDFLAGS") ++ env['lfs_cflags'] = "" ++ env['lfs_ldflags'] = "" + env.Append(CCFLAGS = '$lfs_cflags') + env.Append(LINKFLAGS = '$lfs_ldflags') + else: +Index: scons_helpers.py +--- scons_helpers.py.orig 2009-05-04 19:57:36 +0200 ++++ scons_helpers.py 2009-05-08 20:06:06 +0200 +@@ -182,7 +182,7 @@ + + lib_name = target[prefix_length:suffix_index] + +- lib = env_lib.SharedLibrary(lib_name, source) ++ lib = env_lib.StaticLibrary(lib_name, source) + + lnk1, lnk2 = create_library_links(str(lib[0]), soname, env) + +Index: src/buffer_file.c +--- src/buffer_file.c.orig 2009-05-04 19:57:36 +0200 ++++ src/buffer_file.c 2009-05-08 20:05:57 +0200 +@@ -26,6 +26,7 @@ + #include <errno.h> + #include <stdlib.h> + #include <sys/types.h> ++#include <sys/stat.h> + #include <unistd.h> + #include <string.h> + #include <fcntl.h> @@ . patch -p0 <<'@@ .' Index: openpkg-src/libbls/libbls.spec ============================================================================ $ cvs diff -u -r0 -r1.1 libbls.spec --- /dev/null 2009-05-08 20:15:46 +0200 +++ libbls.spec 2009-05-08 20:15:51 +0200 @@ -0,0 +1,92 @@ +## +## libbls.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2009 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: libbls +Summary: Efficient Data Manipulation Library +URL: http://libbls.hellug.gr/ +Vendor: Alexandros Frantzis, Michael Iatrou +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Libraries +License: LGPL +Version: 0.2.0 +Release: 20090508 + +# list of sources +Source0: http://libbls.hellug.gr/libbls-%{version}.tar.gz +Patch0: libbls.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, scons, gcc +PreReq: OpenPKG, openpkg >= 20060823 +AutoReq: no +AutoReqProv: no + +%description + libbls is a highly efficient, flexible and robust data manipulation + library in the form of an editable buffer. An editable buffer + is a data structure which stores data and allows for efficient + insert, replace, delete, copy, multiple undo and redo editing + operations. libbls does all these in a fast and memory efficient + manner, combining data from both memory and arbitrary sized chunks + from files. + +%track + prog libbls = { + version = %{version} + url = http://libbls.hellug.gr/download.html + regex = libbls-(__VER__)\.tar\.gz + } + +%prep + %setup -q + %patch -p0 + +%build + scons \ + lfs=0 \ + destdir=$RPM_BUILD_ROOT \ + prefix=%{l_prefix} \ + includedir=%{l_prefix}/include \ + lib + +%install + rm -rf $RPM_BUILD_ROOT + scons \ + lfs=0 \ + destdir=$RPM_BUILD_ROOT \ + prefix=%{l_prefix} \ + includedir=%{l_prefix}/include \ + install-links=no \ + install + %{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 openpkg-cvs@openpkg.org