File rasqal.spec of Package rasqal

#
# spec file for package rasqal
#
# Copyright (c) 2011 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.27
Release:        1
License:        LGPLv2.1+ or GPLv2+ or ASLv2.0+
Summary:        RDF Parser Toolkit for Redland
Url:            http://librdf.org/rasqal/
Group:          Productivity/Other
# http://download.librdf.org/source/rasqal-0.9.21.tar.gz
Source0:        %{name}-%{version}.tar.bz2
Source100:      baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  libraptor-devel
BuildRequires:  libxml2-devel
BuildRequires:  mpfr-devel
BuildRequires:  pcre-devel
BuildRequires:  pkg-config

%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.

%package -n librasqal3
License:        LGPLv2.1+ or GPLv2+ or ASLv2.0+
Summary:        RDF Parser Toolkit for Redland
Group:          System/Libraries
%requires_ge    libraptor1

%description -n librasqal3
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.

%package -n librasqal-devel
License:        LGPLv2.1+ or GPLv2+ or ASLv2.0+
Summary:        Development package for the Rasqal RDF query library
Group:          Development/Languages/C and C++
Requires:       libraptor-devel >= 2.0.4
Requires:       librasqal3 = %{version}

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

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"

%configure --enable-release \
           --with-raptor=system \
           --disable-static \
           --with-pic \
           --with-regex-library=pcre \
           --with-html-dir=%{_docdir}/librasqal-devel/

make %{?_smp_mflags}

%install
%make_install

rm -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf %{buildroot}

%post -n librasqal3 -p /sbin/ldconfig

%postun -n librasqal3 -p /sbin/ldconfig

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

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

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

%changelog
openSUSE Build Service is sponsored by