| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- ##
- ## redland.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2007 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.16
- %define V_rasqal 0.9.14
- %define V_redland 1.0.6
- # package information
- Name: redland
- Summary: Redland RDF Application Framework
- URL: http://librdf.org/
- Vendor: Dave Beckett
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: EVAL
- Group: XML
- License: LGPL/GPL
- Version: %{V_redland}
- Release: 20071001
- # 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} \
- --datarootdir=%{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}/gtk-doc
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|