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:   15-May-2006 20:44:00
  Branch: HEAD                             Handle: 2006051519435900

  Added files:
    openpkg-src/redland     redland.spec

  Log:
    new package: redland 1.0.4 (Redland RDF Application Framework)

  Summary:
    Revision    Changes     Path
    1.1         +172 -0     openpkg-src/redland/redland.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/redland/redland.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 redland.spec
  --- /dev/null 2006-05-15 20:43:51 +0200
  +++ redland.spec      2006-05-15 20:44:00 +0200
  @@ -0,0 +1,172 @@
  +##
  +##  redland.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  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 version
  +%define       V_raptor           1.4.9
  +%define       V_rasqal           0.9.12
  +%define       V_redland          1.0.4
  +
  +#   package information
  +Name:         redland
  +Summary:      Redland RDF Application Framework
  +URL:          http://librdf.org/
  +Vendor:       Dave Beckett
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        SGML
  +License:      LGPL/GPL
  +Version:      %{V_redland}
  +Release:      20060515
  +
  +#   list of sources
  +Source0:      http://download.librdf.org/source/raptor-%{V_raptor}.tar.gz
  +Source1:      http://download.librdf.org/source/rasqal-%{V_rasqal}.tar.gz
  +Source2:      http://download.librdf.org/source/redland-%{V_redland}.tar.gz
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130
  +BuildPreReq:  libxml, libxslt, pcre, openssl, sqlite
  +PreReq:       libxml, libxslt, pcre, openssl, sqlite
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Redland is a set of free software libraries that provide support
  +    for the Resource Description Framework (RDF). It provides APIs for
  +    manipulating the RDF graph, triples, URIs and Literals; Parsers
  +    and Serializers for reading and writing RDF; Storage for graphs.
  +
  +%track
  +    prog redland:raptor = {
  +        version   = %{V_raptor}
  +        url       = http://librdf.org/
  +        regex     = raptor-(__VER__)\.tar\.gz
  +    }
  +    prog redland:rasqal = {
  +        version   = %{V_rasqal}
  +        url       = http://librdf.org/
  +        regex     = rasqal-(__VER__)\.tar\.gz
  +    }
  +    prog redland:redland = {
  +        version   = %{V_redland}
  +        url       = http://librdf.org/
  +        regex     = redland-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -c
  +    %setup -q -D -T -a 1
  +    %setup -q -D -T -a 2
  +
  +%build
  +    ln -s raptor-%{V_raptor}   raptor
  +    ln -s rasqal-%{V_rasqal}   rasqal
  +    ln -s redland-%{V_redland} redland
  +    ( cd raptor-%{V_raptor}
  +      CC="%{l_cc}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CPPFLAGS="%{l_cppflags}" \
  +      LDFLAGS="%{l_ldflags}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --includedir=%{l_prefix}/include/redland \
  +          --with-xml2-config=%{l_prefix}/bin/xml2-config \
  +          --with-xslt-config=%{l_prefix}/bin/xslt-config \
  +          --with-xml-parser=libxml \
  +          --with-www=xml \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +    ( cd rasqal-%{V_rasqal}
  +      CC="%{l_cc}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CPPFLAGS="%{l_cppflags}" \
  +      LDFLAGS="%{l_ldflags}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --includedir=%{l_prefix}/include/redland \
  +          --enable-pcre \
  +          --with-pcre-config=%{l_prefix}/bin/pcre-config \
  +          --with-regex-library=pcre \
  +          --enable-xml2 \
  +          --with-xml2-config=%{l_prefix}/bin/xml2-config \
  +          --with-raptor=internal \
  +          --with-redland=internal \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +    ( cd redland-%{V_redland}
  +      for subdir in raptor rasqal; do
  +          rm -rf $subdir/*
  +          ( echo "#!/bin/sh"; echo "exit 0" ) >$subdir/configure; chmod a+x 
$subdir/configure
  +          ( echo "all:"; echo "install:" ) >$subdir/Makefile
  +          ln -s ../../$subdir/src $subdir/src
  +      done
  +      CC="%{l_cc}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CPPFLAGS="%{l_cppflags}" \
  +      LDFLAGS="%{l_ldflags}" \
  +      RAPTOR_CONFIG="`pwd`/../raptor-%{V_raptor}/src/raptor-config" \
  +      RASQAL_CONFIG="`pwd`/../rasqal-%{V_rasqal}/src/rasqal-config" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --includedir=%{l_prefix}/include/redland \
  +          --enable-release \
  +          --disable-assertions \
  +          --with-raptor=internal \
  +          --with-rasqal=internal \
  +          --with-openssl-digests \
  +          --with-sqlite=yes \
  +          --with-sqlite-version=3 \
  +          --without-threestore \
  +          --without-mysql \
  +          --without-postgresql \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    ( cd raptor-%{V_raptor}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    ( cd rasqal-%{V_rasqal}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    ( cd redland-%{V_redland}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to