SHA256
1
0
forked from pool/lilv

Accepting request 72808 from home:plater

New package lilv replaces slv2 for building apps that can use the LV2 plugin system

OBS-URL: https://build.opensuse.org/request/show/72808
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lilv?expand=0&rev=1
This commit is contained in:
Dave Plater 2011-06-06 18:19:50 +00:00 committed by Git OBS Bridge
commit 543995b499
11 changed files with 495 additions and 0 deletions

25
.gitattributes vendored Normal file
View File

@ -0,0 +1,25 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
## Specific LFS patterns
lv2_shaded_blue.svg filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

77
lilv-0.4.2-lserd.patch Normal file
View File

@ -0,0 +1,77 @@
Index: wscript
===================================================================
--- wscript.orig 2011-06-03 18:51:51.976991193 +0200
+++ wscript 2011-06-03 18:56:04.153991150 +0200
@@ -9,7 +9,7 @@ import waflib.Logs as Logs
# Version of this package (even if built as a child)
LILV_VERSION = '0.4.2'
-LILV_MAJOR_VERSION = '0'
+LILV_MAJOR_VERSION = ''
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -70,7 +70,9 @@ def configure(conf):
atleast_version='2.0.0', mandatory=True)
autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD',
atleast_version='2.0.0', mandatory=False)
- autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',
+ autowaf.check_pkg(conf, 'sord', uselib_store='SORD',
+ atleast_version='0.4.0', mandatory=True)
+ autowaf.check_pkg(conf, 'serd', uselib_store='SERD',
atleast_version='0.4.0', mandatory=True)
autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
atleast_version='0.107.0', mandatory=False)
@@ -129,7 +131,7 @@ def configure(conf):
conf.env['BUILD_UTILS'] = not Options.options.no_utils
conf.env['BASH_COMPLETION'] = not Options.options.no_bash_completion
- conf.env['LIB_LILV'] = ['lilv-%s' % LILV_MAJOR_VERSION]
+ conf.env['LIB_LILV'] = ['lilv%s' % LILV_MAJOR_VERSION]
if conf.is_defined('HAVE_JACK') and not Options.options.no_jack:
autowaf.check_header(conf, 'lv2/lv2plug.in/ns/ext/event/event.h',
@@ -197,14 +199,14 @@ def build(bld):
source = lib_source,
includes = ['.', './src'],
name = 'liblilv',
- target = 'lilv-%s' % LILV_MAJOR_VERSION,
+ target = 'lilv%s' % LILV_MAJOR_VERSION,
vnum = LILV_LIB_VERSION,
install_path = '${LIBDIR}',
cflags = libflags + [
'-DLILV_SHARED',
'-DLILV_INTERNAL' ],
linkflags = linkflags)
- autowaf.use_lib(bld, obj, 'SORD SERD LV2CORE GLIB')
+ autowaf.use_lib(bld, obj, 'SERD SORD LV2CORE GLIB')
if bld.env['BUILD_TESTS']:
# Static library (for unit test code coverage)
@@ -216,14 +218,14 @@ def build(bld):
install_path = '',
cflags = [ '-fprofile-arcs', '-ftest-coverage', '-DLILV_INTERNAL' ],
linkflags = linkflags)
- autowaf.use_lib(bld, obj, 'SORD SERD LV2CORE GLIB')
+ autowaf.use_lib(bld, obj, 'SERD SORD LV2CORE GLIB')
# Unit test program
obj = bld(features = 'c cprogram',
source = 'test/lilv_test.c',
includes = ['.', './src'],
use = 'liblilv_static',
- uselib = 'SORD SERD LV2CORE',
+ uselib = 'SERD SORD LV2CORE',
linkflags = linkflags + ['-lgcov'],
target = 'test/lilv_test',
install_path = '',
Index: lilv.pc.in
===================================================================
--- lilv.pc.in.orig 2011-06-03 19:13:54.000000000 +0200
+++ lilv.pc.in 2011-06-03 19:14:48.072991013 +0200
@@ -7,4 +7,4 @@ Name: Lilv
Version: @LILV_VERSION@
Description: Simple C library for hosting LV2 plugins
Libs: -L${libdir} -l@LIB_LILV@ -ldl
-Cflags: -I${includedir}/lilv-@LILV_MAJOR_VERSION@
+Cflags: -I${includedir}/lilv

45
lilv-0.4.2-serdlib.patch Normal file
View File

@ -0,0 +1,45 @@
Index: serd-0.4.2/wscript
===================================================================
--- serd-0.4.2/wscript.orig 2011-06-03 18:51:51.952991193 +0200
+++ serd-0.4.2/wscript 2011-06-03 18:59:52.762991134 +0200
@@ -10,7 +10,7 @@ import waflib.Logs as Logs, waflib.Optio
# Version of this package (even if built as a child)
SERD_VERSION = '0.4.2'
-SERD_MAJOR_VERSION = '0'
+SERD_MAJOR_VERSION = ''
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -53,10 +53,10 @@ def configure(conf):
autowaf.define(conf, 'SERD_VERSION', SERD_VERSION)
conf.write_config_header('serd-config.h', remove=False)
- conf.env['INCLUDES_SERD'] = ['%s/serd-%s' % (conf.env['INCLUDEDIR'],
+ conf.env['INCLUDES_SERD'] = ['%s/serd%s' % (conf.env['INCLUDEDIR'],
SERD_MAJOR_VERSION)]
conf.env['LIBPATH_SERD'] = [conf.env['LIBDIR']]
- conf.env['LIB_SERD'] = ['serd-%s' % SERD_MAJOR_VERSION];
+ conf.env['LIB_SERD'] = ['serd%s' % SERD_MAJOR_VERSION];
autowaf.display_msg(conf, "Utilities", str(conf.env['BUILD_UTILS']))
autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
@@ -85,7 +85,7 @@ def build(bld):
obj.source = lib_source
obj.includes = ['.', './src']
obj.name = 'libserd'
- obj.target = 'serd-%s' % SERD_MAJOR_VERSION
+ obj.target = 'serd%s' % SERD_MAJOR_VERSION
obj.vnum = SERD_LIB_VERSION
obj.install_path = '${LIBDIR}'
obj.cflags = [ '-fvisibility=hidden', '-DSERD_SHARED', '-DSERD_INTERNAL' ]
Index: serd-0.4.2/serd.pc.in
===================================================================
--- serd-0.4.2/serd.pc.in.orig 2011-05-26 01:50:40.000000000 +0200
+++ serd-0.4.2/serd.pc.in 2011-06-03 19:12:32.480991006 +0200
@@ -7,4 +7,4 @@ Name: Serd
Version: @SERD_VERSION@
Description: Lightweight RDF syntax library
Libs: -L${libdir} -l@LIB_SERD@
-Cflags: -I${includedir}/serd-@SERD_MAJOR_VERSION@
+Cflags: -I${includedir}/serd

62
lilv-0.4.2-sordlib.patch Normal file
View File

@ -0,0 +1,62 @@
Index: sord-0.4.2/wscript
===================================================================
--- sord-0.4.2/wscript.orig 2011-05-26 02:20:19.000000000 +0200
+++ sord-0.4.2/wscript 2011-06-06 15:23:51.975953812 +0200
@@ -7,7 +7,7 @@ import waflib.Logs as Logs, waflib.Optio
# Version of this package (even if built as a child)
SORD_VERSION = '0.4.2'
-SORD_MAJOR_VERSION = '0'
+SORD_MAJOR_VERSION = ''
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -42,7 +42,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB',
atleast_version='2.0.0', mandatory=True)
- autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
+ autowaf.check_pkg(conf, 'serd', uselib_store='SERD',
atleast_version='0.4.0', mandatory=True)
conf.env['BUILD_TESTS'] = Options.options.build_tests
@@ -66,15 +66,15 @@ def configure(conf):
conf.env['INCLUDES_SORD'] = ['${includedir}/sord-%s' % SORD_MAJOR_VERSION]
if not conf.env['INCLUDES_SERD']:
- fallback('INCLUDES_SERD', ['${includedir}/serd-0'])
+ fallback('INCLUDES_SERD', ['${includedir}/serd'])
conf.env['LIBPATH_SORD'] = [conf.env['LIBDIR']]
if not conf.env['LIBPATH_SERD']:
fallback('LIBPATH_SERD', conf.env['LIBPATH_SORD'])
- conf.env['LIB_SORD'] = ['sord-%s' % SORD_MAJOR_VERSION];
+ conf.env['LIB_SORD'] = ['sord%s' % SORD_MAJOR_VERSION];
if not conf.env['LIB_SERD']:
- fallback('LIB_SERD', 'serd-0')
+ fallback('LIB_SERD', 'serd')
autowaf.display_msg(conf, "Utilities", bool(conf.env['BUILD_UTILS']))
autowaf.display_msg(conf, "Unit tests", bool(conf.env['BUILD_TESTS']))
@@ -97,7 +97,7 @@ def build(bld):
includes = ['.', './src'],
export_includes = ['.'],
name = 'libsord',
- target = 'sord-%s' % SORD_MAJOR_VERSION,
+ target = 'sord%s' % SORD_MAJOR_VERSION,
vnum = SORD_LIB_VERSION,
install_path = '${LIBDIR}',
libs = [ 'm' ],
Index: sord-0.4.2/sord.pc.in
===================================================================
--- sord-0.4.2/sord.pc.in.orig 2011-05-26 01:46:00.000000000 +0200
+++ sord-0.4.2/sord.pc.in 2011-06-06 15:27:52.597953776 +0200
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: Sord
Version: @SORD_VERSION@
Description: A lightweight C library for storing RDF statements in memory.
-Libs: -L@LIBPATH_SERD@ -l@LIB_SERD@ -L${libdir} -lsord-@SORD_MAJOR_VERSION@
-Cflags: -I@INCLUDES_SERD@ -I${includedir}/sord-@SORD_MAJOR_VERSION@
+Libs: -L${libdir} -l@LIB_SERD@ -L${libdir} -lsord
+Cflags: -I${includedir}/serd-/ -I${includedir}/sord-/

3
lilv-0.4.2.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d1526647ebdca658145042a00438f29e1ffddc7f8f7fff8f92e8bb567fddb67d
size 152440

5
lilv.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed Jun 1 10:13:23 UTC 2011 - davejplater@gmail.com
- Created package lilv the successor to slv2

268
lilv.spec Normal file
View File

@ -0,0 +1,268 @@
#
# spec file for package [lilv]
#
# 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: lilv
Version: 0.4.2
Release: 1
Summary: A simple yet powerful C API for using LV2 plugins
Group: System/Libraries
License: MIT
URL: http://drobilla.net/software/lilv/
Source0: http://download.drobilla.net/%{name}-%{version}.tar.bz2
Source1: http://download.drobilla.net/sord-%{version}.tar.bz2
Source2: http://download.drobilla.net/serd-%{version}.tar.bz2
Source3: lv2_shaded_blue.svg
Patch0: lilv-0.4.2-lserd.patch
Patch1: lilv-0.4.2-serdlib.patch
Patch2: lilv-0.4.2-sordlib.patch
#Icon: lv2_shaded_blue.svg
BuildRequires: python-base glib2-devel
BuildRequires: doxygen graphviz fdupes
BuildRequires: lv2core-devel jack-devel
BuildRequires: gcc-c++ pkg-config
BuildRequires: swig python-devel
#BuildRequires: hicolor-icon-theme
#Requires:
%description
Lilv is a library to make the use of LV2 plugins as simple as
possible for applications. Lilv is the successor to SLV2,
rewritten to be significantly faster and have minimal
dependencies. Lilv is Free Software (using an extremely
liberal “MIT-style” license) written in C99 using Serd and
Sord, and is known to work on GNU/Linux, Mac OS X, and
Windows 7 with MingW. This package contains the tools.
%package devel
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 apps with LV2 plugin support. This package contains the
documentation, packageconfig and header files.
%package -n liblilv0
Summary: A simple yet powerful C API for using LV2 plugins
Group: System/Libraries
%description -n liblilv0
Liblilv is a library to make the use of LV2 plugins as simple as
possible for applications. Lilv is the successor to SLV2,
rewritten to be significantly faster and have minimal
dependencies.
%package -n libserd0
Summary: Lightweight RDF syntax library
Group: System/Libraries
%description -n libserd0
Libserd is a lightweight RDF syntax library used by livl.
%package -n libsord0
Summary: Lightweight C lib for storing RDF statements
Group: System/Libraries
%description -n libsord0
Libsord is a lightweight C library that is used by lilv for storing
RDF statements in memory.
%define buildir %{_builddir}/%{name}-%{version}
%prep
#chmod --verbose 0644 %%{S:0}
#chmod --verbose 0644 %%{S:1}
#chmod --verbose 0644 %%{S:2}
chmod --verbose 0644 %{S:3}
%setup -q -a 1 -a 2
%patch0
%patch1
%patch2
# Create serd .pc file with macros for the build
echo "prefix=%{buildir}/serd-%{version}">serd.pc
echo "exec_prefix=\${prefix}">>serd.pc
echo "libdir=%{buildir}/serd-%{version}/build">>serd.pc
echo "includedir=%{buildir}/serd-%{version}">>serd.pc
echo "">>serd.pc
echo "Name: Serd">>serd.pc
echo "Version: %{version}">>serd.pc
echo "Description: Lightweight RDF syntax library">>serd.pc
echo "Libs: -L\${libdir} -lserd">>serd.pc
echo "Cflags: -I\${includedir}">>serd.pc
echo "">>serd.pc
# Create sord .pc file with macros for the build
echo "prefix=%{buildir}/sord-%{version}">sord.pc
echo "exec_prefix=\${prefix}">>sord.pc
echo "libdir=%{buildir}/sord-%{version}/build">>sord.pc
echo "includedir=%{buildir}/sord-%{version}">>sord.pc
echo "">>sord.pc
echo "Name: Sord">>sord.pc
echo "Version: %{version}">>sord.pc
echo "Description: A lightweight C library for storing RDF statements in memory.">>sord.pc
echo "Libs: -L\${libdir} -lsord">>sord.pc
echo "Cflags: -I\${includedir}">>sord.pc
echo "">>sord.pc
export PKG_CONFIG_PATH=${PWD}
%build
# Use a bash function for the three builds.
wafbuild() {
export DEFAULT_LV2_PATH=%{_libdir}/lv2
export PKG_CONFIG_PATH=%{_builddir}/lilv-%{version}
export LIBPATH_SERD=%{buildir}/serd-%{version}/build
export LIBPATH_SORD=%{buildir}/sord-%{version}/build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
./waf configure --prefix=%{_prefix} \
--datadir=%{_datadir}/%{name} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--docdir=%{_docdir} \
--mandir=%{_mandir} \
--datadir=%{_datadir} \
--download \
--docs $1 $2
if test $? != 0; then
exit 1
fi
./waf build -v %{?jobs:-j%{jobs}}
if test $? != 0; then
exit 1
fi
}
pushd serd-%{version}
wafbuild "" ""
popd
pushd sord-%{version}
wafbuild "" ""
popd
wafbuild --default-lv2-path=%{_libdir}/lv2 --bindings
unset PKG_CONFIG_PATH
%install
pushd serd-%{version}
./waf install --destdir=%{buildroot}
popd
pushd sord-%{version}
./waf install --destdir=%{buildroot}
popd
./waf install --destdir=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
documents="AUTHORS ChangeLog COPYING README"
for i in ${documents}; do
cp $i %{buildroot}%{_docdir}/%{name}/
cp serd-%{version}/$i %{buildroot}%{_docdir}/serd/
cp sord-%{version}/$i %{buildroot}%{_docdir}/sord/
done
#mkdir -p %%{_datadir}/icons/hicolor/scalable/apps
#install -m 0644 %%{S:3} %%{_datadir}/icons/hicolor/scalable/apps/
%fdupes -s %{buildroot}%{_docdir}
%clean
rm -rf %{buildroot}
#%%post
# %%icon_theme_cache_post()
#%%postun
# %%icon_theme_cache_postun()
%post -n liblilv0
/sbin/ldconfig
%postun -n liblilv0
/sbin/ldconfig
%post -n libserd0
/sbin/ldconfig
%postun -n libserd0
/sbin/ldconfig
%post -n libsord0
/sbin/ldconfig
%postun -n libsord0
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/lilv-bench
%{_bindir}/lv2info
%{_bindir}/lv2ls
%{_bindir}/serdi
%{_bindir}/sordi
%{_mandir}/man1/*
%{_mandir}/man3/*
#%%{_datadir}/icons/hicolor/scalable/apps/lv2_shaded_blue.svg
%config %{_sysconfdir}/bash_completion.d/%{name}
%files devel
%defattr(-,root,root,-)
%dir %{_docdir}/%{name}
%dir %{_docdir}/serd
%dir %{_docdir}/sord
%{_docdir}/%{name}/*
%{_docdir}/serd/*
%{_docdir}/sord/*
%dir %{_includedir}/lilv-
%dir %{_includedir}/serd-
%dir %{_includedir}/sord-
%dir %{_includedir}/lilv-/lilv
%dir %{_includedir}/serd-/serd
%dir %{_includedir}/sord-/sord
%{_includedir}/lilv-/lilv/lilv.h
%{_includedir}/lilv-/lilv/lilvmm.hpp
%{_includedir}/serd-/serd/serd.h
%{_includedir}/sord-/sord/sord.h
%{_includedir}/sord-/sord/sordmm.hpp
#%%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/libserd.so
%{_libdir}/libsord.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/serd.pc
%{_libdir}/pkgconfig/sord.pc
%files -n liblilv0
%defattr(-,root,root,-)
%{_libdir}/liblilv.so.0
%{_libdir}/liblilv.so.0.4.2
%files -n libserd0
%defattr(-,root,root,-)
%{_libdir}/libserd.so.0
%{_libdir}/libserd.so.0.4.2
%files -n libsord0
%defattr(-,root,root,-)
%{_libdir}/libsord.so.0
%{_libdir}/libsord.so.0.4.2
%changelog

3
lv2_shaded_blue.svg Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f9fb572e2256ade3bd53767e37d609e821e1ec6b0423caf6ff7e5a2274cedf0c
size 23960

3
serd-0.4.2.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97d8dcb1b81461985765194471e3beb17f00fdcd774af4bddd4ffab5dcf0002f
size 278652

3
sord-0.4.2.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f0de2b6fe1a322e51f74f4957e2ba36165bde993891e9646aec2b063c8b5c0db
size 271741