raptor/raptor.spec
Ismail Dönmez 858b9e43b7 Accepting request 127986 from home:babelworx:ldig:branches:X11:common:Factory
license update: LGPL-2.1+ or GPL-2.0+ or Apache-2.0
Updating to those licenses stated in the LICENSE.txt file (even though the LGPL-2.1 has a migration clause to GPL-2.0 anyway"

OBS-URL: https://build.opensuse.org/request/show/127986
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/raptor?expand=0&rev=28
2012-07-16 10:35:58 +00:00

103 lines
2.9 KiB
RPMSpec

#
# spec file for package raptor
#
# Copyright (c) 2012 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: raptor
Version: 2.0.8
Release: 0
Summary: RDF Parser Toolkit
License: LGPL-2.1+ or GPL-2.0+ or Apache-2.0
Group: System/Libraries
Url: http://www.redland.opensource.ac.uk/raptor/
Source0: %{name}2-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: autoconf
BuildRequires: curl-devel
BuildRequires: libxslt-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(libxml-2.0)
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.
%package -n libraptor2-0
Summary: RDF Parser Toolkit
Group: System/Libraries
%description -n libraptor2-0
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.
%package -n libraptor-devel
Summary: Development package for the raptor library
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libraptor2-0 = %{version}
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.
%prep
%setup -q -n %{name}2-%{version}
%build
%configure --disable-gtk-doc --disable-static --with-pic --with-html-dir=%{_docdir}
make %{?_smp_flags}
%install
make DESTDIR=%{buildroot} install
mv %{buildroot}%{_docdir}/raptor2 %{buildroot}%{_docdir}/raptor-devel
#causes some ugly dependency bloat..
rm -f %{buildroot}%{_libdir}/libraptor2.la
%check
export MALLOC_CHECK_=2
make check
unset MALLOC_CHECK_
%post -n libraptor2-0 -p /sbin/ldconfig
%postun -n libraptor2-0 -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}/*
%{_libdir}/pkgconfig/*.pc
%files -n libraptor2-0
%defattr(-,root,root)
%{_libdir}/libraptor2.so.0*
%changelog