raptor/raptor.spec

118 lines
3.1 KiB
RPMSpec

#
# spec file for package raptor
#
# 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: raptor
BuildRequires: curl-devel gtkdoc libxml2-devel libxslt-devel pkg-config
Summary: RDF Parser Toolkit
Version: 1.4.21
Release: 9
License: LGPLv2.1+ ; ASLv..
Group: System/Libraries
Source0: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch1: curl-types.patch
Url: http://www.redland.opensource.ac.uk/raptor/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.
Authors:
--------
Dave Beckett <dave@dajobe.org>
%package -n libraptor1
License: LGPLv2.1+ ; ASLv..
Summary: RDF Parser Toolkit
Group: System/Libraries
%description -n libraptor1
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.
Authors:
--------
Dave Beckett <dave@dajobe.org>
%package -n libraptor-devel
License: LGPLv2.1+ ; ASLv..
Summary: Development package for the raptor library
Group: Development/Libraries/C and C++
Requires: libraptor1 = %{version} glibc-devel
Requires: raptor = %{version}
Provides: raptor-devel = %{version}
Obsoletes: raptor-devel < %{version}
%description -n libraptor-devel
This package contains the files needed to compile programs that use the
raptor library.
Authors:
--------
Dave Beckett <dave@dajobe.org>
%prep
%setup -q
%patch1 -p0
%build
autoreconf -fiv
%configure --disable-static --with-pic --with-html-dir=%{_docdir}
%{__make} %{?jobs:-j%jobs}
%install
%{__make} DESTDIR="%{buildroot}" install
mv %{buildroot}%{_docdir}/raptor %{buildroot}%{_docdir}/raptor-devel
#causes some ugly dependency bloat..
%{__rm} -f %{buildroot}%{_libdir}/libraptor.la
%check
export MALLOC_CHECK_=2
%{__make} check
unset MALLOC_CHECK_
%post -n libraptor1 -p /sbin/ldconfig
%postun -n libraptor1 -p /sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
%{_bindir}/rapper
%{_mandir}/man?/*
%files -n libraptor-devel
%defattr(-,root,root)
%doc %{_docdir}/raptor-devel
%{_libdir}/lib*.so
%{_includedir}/*
%{_bindir}/*-config
%{_libdir}/pkgconfig/*.pc
%files -n libraptor1
%defattr(-,root,root)
%{_libdir}/libraptor.so.1*
%changelog