File lv2core.spec of Package lv2core
#
# spec file for package lv2core
#
# 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: lv2core
Version: 4.0pre1
Release: 1
Summary: Core package for LV2 plugin system
Group: Development/Tools/Other
License: LGPLv2.1+ ; X11 MIT ; GPLv2+ ; BSD3c
Url: http://lv2plug.in/
Source0: http://lv2plug.in/spec/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen gcc-c++ graphviz pkg-config python-base
%if 0%{?suse_version} > 1120
BuildRequires: pkgconfig(redland)
%else
BuildRequires: libredland-devel
%endif
%description
LV2 is a standard for plugins and matching host applications,
primarily targeted at audio processing and generation.
This package is the "core" LV2 specification in usual source package form.
The major version of this package refers to the LV2 specification revision
contained, while the minor version refers only to this package.
Application authors aren't required to depend on this package
(including lv2.h in source distributions is acceptable)
but any system with LV2 plugins should have the LV2 bundle contained in
this package installed somewhere in the LV2 path
(it contains plugin classes and other useful information).
%package devel
License: LGPLv2.1+ ; X11 MIT ; GPLv2+ ; BSD3c
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -fPIC -ggdb"
export CXXFLAGS="$CFLAGS"
autowaf/waf -vv \
--prefix=%{_prefix} \
--libdir=/%{_libdir} \
--docs \
configure
# waf only understands -j, so do not use smp_mflags
autowaf/waf build %{?jobs:-j%jobs}
%install
autowaf/waf install --destdir=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc
%{_bindir}/lv2config
%files devel
%defattr(-,root,root,-)
%{_includedir}/lv2.h
%dir %{_libdir}/lv2/lv2core.lv2/
%dir %{_libdir}/lv2/
%{_libdir}/pkgconfig/lv2core.pc
%{_libdir}/lv2/lv2core.lv2/lv2.ttl
%{_libdir}/lv2/lv2core.lv2/manifest.ttl
%changelog