File rasqal.spec of Package rasqal

#
# spec file for package rasqal
#
# 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/
#

Name:           rasqal
Version:        0.9.28
%define SONAME  3
Release:        1
#
License:        LGPLv2.1+ ; ASLv..
Group:          Development/Libraries/C and C++
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison flex gmp-devel gtk-doc libraptor2-devel libxml2-devel mhash-devel pcre-devel pkg-config
#
Url:            http://librdf.org/rasqal/
# http://download.librdf.org/source/%{name}-%{version}.tar.gz
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.

%package -n librasqal%{SONAME}
Summary:        Rasqal RDF Parser Toolkit for Redland
Group:          System/Libraries

%description -n librasqal%{SONAME}
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
Summary:        Development package for the Rasqal RDF query library
Group:          Development/Languages/C and C++
Requires:       librasqal%{SONAME} = %{version}
Requires:       libraptor2-devel

%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 \
  --with-html-dir=%{_docdir}/%{name}-devel/ \
  --includedir=%{_includedir}/%{name} \
  --disable-static \
  --disable-gtk-doc \
  --with-pic \
  --with-regex-library=pcre
%__make %{?_smp_flags}

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

%post -n librasqal%{SONAME} -p /sbin/ldconfig

%postun -n librasqal%{SONAME} -p /sbin/ldconfig

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

%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}/%{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%{ext_man}

%changelog
openSUSE Build Service is sponsored by