File rasqal.spec of Package rasqal

#
# spec file for package rasqal (Version 0.9.20)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           rasqal
Version:        0.9.20
Release:        1
#
License:        LGPLv2.1+ ; ASLv..
Group:          Development/Libraries/C and C++
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison flex gtk-doc libraptor-devel libxml2-devel pcre-devel pkg-config
#
Url:            http://librdf.org/rasqal/
Source:         http://download.librdf.org/source/%{name}-%{version}.tar.bz2
#
Summary:        Rasqal RDF Parser Toolkit for Redland

%description
Rasqal is a library providing full support for querying Resource
Description Framework (RDF) including parsing query syntaxes,
constructing the queries, executing them and returning result formats. 
It currently handles the RDF Data Query Language (RDQL) and SPARQL
Query language.



Authors:
--------
    Dave Beckett <dave@dajobe.org>

%package -n librasqal2
License:        LGPLv2.1+ ; ASLv..
Summary:        Rasqal RDF Parser Toolkit for Redland
Group:          System/Libraries
%requires_ge    libraptor1

%description -n librasqal2
Rasqal is a library providing full support for querying Resource
Description Framework (RDF) including parsing query syntaxes,
constructing the queries, executing them and returning result formats. 
It currently handles the RDF Data Query Language (RDQL) and SPARQL
Query language.



Authors:
--------
    Dave Beckett <dave@dajobe.org>

%package -n librasqal-devel
License:        LGPLv2.1+ ; ASLv..
Summary:        Development package for the Rasqal RDF query library
Group:          Development/Languages/C and C++
Requires:       librasqal2 = %{version} libraptor-devel >= 1.4.9

%description -n librasqal-devel
This package contains the files needed to develop with the Rasqal RDF
query language library.



Authors:
--------
    Dave Beckett <dave@dajobe.org>

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
autoreconf -fi
%configure --enable-release --with-raptor=system \
  --with-html-dir=%{_docdir}/%{name}-devel/ \
  --includedir=%{_includedir}/%{name} \
  --disable-static \
  --disable-gtk-doc \
  --with-pic \
  --with-regex-library=pcre
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall docdir=%{_docdir}/%{name}
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
%{__rm} -rf %{buildroot}

%post -n librasqal2 -p /sbin/ldconfig

%postun -n librasqal2 -p /sbin/ldconfig

%files -n librasqal2
%defattr(-, root, root)
%{_libdir}/librasqal.so.2*

%files -n librasqal-devel
%defattr(-, root, root)
%{_libdir}/librasqal.so
%{_mandir}/man1/rasqal-config.1*
%{_mandir}/man3/librasqal.3*
%{_libdir}/pkgconfig/rasqal.pc
%{_includedir}/%{name}/
%{_bindir}/rasqal-config
%doc %{_docdir}/%{name}-devel/

%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
%doc LICENSE-2.0.txt NOTICE
%doc *.html
%{_bindir}/roqet
%{_mandir}/man1/roqet.1*

%changelog