liblrdf/liblrdf.spec
Ismail Dönmez 5f8a178db8 Accepting request 83589 from home:rwooninck:UNSTABLE_KDE4
The current version of liblrdf does not build with raptor v2. However upstream already resolved this issue and the official support will come with version 0.5. In the meantime the attached patch will make liblrdf 0.4 build with raptor v2. Please do not accept until raptor v2 has been accepted in Factory (SR#83580

OBS-URL: https://build.opensuse.org/request/show/83589
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/liblrdf?expand=0&rev=5
2011-09-19 16:06:10 +00:00

121 lines
3.1 KiB
RPMSpec

#
# spec file for package liblrdf
#
# 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: liblrdf
BuildRequires: ladspa-devel libraptor-devel libxml2-devel pkgconfig
Summary: A library to Manipulate RDF Files for LADSPA Plug-Ins
Version: 0.4.0
Release: 134
License: GPL v2 or later
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
Patch1: liblrdf-symbol-conflict.diff
Patch2: raptor2-compat.diff
Url: http://liblrdf.sf.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a library to make it easy to manipulate RDF files describing
LADSPA plug-ins. It can also be used for general RDF manipulation.
It can read RDF, XLM, and N3 files and export N3 files. Ot also has a
light taxonomic inference capability.
Authors:
--------
Steve Harris <steve@plugin.org.uk>
%package -n liblrdf2
License: GPL v2 or later
Group: System/Libraries
Summary: A library to Manipulate RDF Files for LADSPA Plug-Ins
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n liblrdf2
This is a library to make it easy to manipulate RDF files describing
LADSPA plug-ins. It can also be used for general RDF manipulation.
It can read RDF, XLM, and N3 files and export N3 files. Ot also has a
light taxonomic inference capability.
Authors:
--------
Steve Harris <steve@plugin.org.uk>
%package devel
License: GPL v2 or later
Summary: Development package for the liblrdf library
Group: Development/Libraries/C and C++
Requires: liblrdf2 = %{version} libraptor-devel
%description devel
This package contains the files needed to compile programs that use the
liblrdf library.
Authors:
--------
Steve Harris <steve@plugin.org.uk>
%prep
%setup -q
%patch1 -p1
%patch2 -p0
%build
export CFLAGS="$RPM_OPT_FLAGS"
# Required because of patch2 that updates configure.ac
./autogen.sh
%configure --disable-static --with-pic
make
%install
make DESTDIR="$RPM_BUILD_ROOT" install
make -C examples distclean
%post -n liblrdf2 -p /sbin/ldconfig
%postun -n liblrdf2 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n liblrdf2
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/lib*.so.2*
%files devel
%defattr(-,root,root)
%doc examples
%{_libdir}/lib*.so
%{_includedir}/*
%{_datadir}/ladspa
%{_libdir}/pkgconfig/*.pc
%exclude %{_libdir}/lib*.la
%changelog