7acba73
%global maj 0
7acba73
7acba73
Name:       lilv
7acba73
Version:    0.5.0
7acba73
Release:    3%{?dist}
7acba73
Summary:    An LV2 Resource Description Framework Library
7acba73
7acba73
Group:      System Environment/Libraries
7acba73
License:    MIT
7acba73
URL:        http://drobilla.net/software/lilv/
7acba73
Source0:    http://download.drobilla.net/%{name}-%{version}.tar.bz2
7acba73
# correct non-deterministic node retrieval of scale points in test suite,
7acba73
# and increase the size of the test float array
7acba73
Patch0:     lilv-0.5.0-_lilv_test.c-from-3609-to-3610.patch
7acba73
Patch1:     lilv-0.5.0-lilv_test.c-r4011.patch 
7acba73
BuildRequires:  doxygen
7acba73
BuildRequires:  graphviz
7acba73
BuildRequires:  sord-devel >= 0.5.0
7acba73
BuildRequires:  lv2core-devel >= 4.0
7acba73
BuildRequires:  python2-devel
7acba73
BuildRequires:  swig
7acba73
7acba73
%filter_setup
7acba73
7acba73
%description
7acba73
%{name} is a library to make the use of LV2 plugins as simple as possible 
7acba73
for applications. Lilv is the successor to SLV2, rewritten to be significantly 
7acba73
faster and have minimal dependencies. 
7acba73
7acba73
%package devel
7acba73
Summary:    Development libraries and headers for %{name}
7acba73
Group:      Development/Libraries
7acba73
Requires:   %{name}%{_isa} = %{version}-%{release}
7acba73
7acba73
%description devel
7acba73
%{name} is a lightweight C library for Resource Description Syntax which 
7acba73
supports reading and writing Turtle and NTriples.
7acba73
7acba73
This package contains the headers and development libraries for %{name}.
7acba73
7acba73
%package -n python-%{name}
7acba73
Summary:    Python bindings for %{name}
7acba73
Group:      Development/Libraries
7acba73
Requires:   %{name}%{_isa} = %{version}-%{release}
7acba73
7acba73
%description -n python-%{name} 
7acba73
%{name} is a lightweight C library for Resource Description Syntax which 
7acba73
supports reading and writing Turtle and NTriples.
7acba73
7acba73
This package contains the python libraries for %{name}.
7acba73
7acba73
%prep
7acba73
%setup -q 
7acba73
%patch0 
7acba73
%patch1 -p1 
7acba73
7acba73
# we'll run ld config
7acba73
sed -i -e 's|bld.add_post_fun(autowaf.run_ldconfig)||' wscript
7acba73
# for packagers sake, build the tests with debug symbols
7acba73
sed -i -e "s| '-ftest-coverage' \]|\
7acba73
 '-ftest-coverage' \] + '%{optflags}'.split(' ')|" wscript
7acba73
7acba73
%build
7acba73
export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
7acba73
./waf configure -v \
7acba73
    --prefix=%{_prefix} \
7acba73
    --libdir=%{_libdir} \
7acba73
    --mandir=%{_mandir} \
7acba73
    --datadir=%{_datadir} \
7acba73
    --docdir=%{_docdir}/%{name}-devel-%{version} \
7acba73
    --configdir=%{_sysconfdir} \
7acba73
    --test \
7acba73
    --bindings \
7acba73
    --docs 
7acba73
./waf build -v %{?_smp_mflags}
7acba73
7acba73
%install
7acba73
DESTDIR=%{buildroot} ./waf install
7acba73
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
7acba73
7acba73
%post -p /sbin/ldconfig
7acba73
7acba73
%postun -p /sbin/ldconfig
7acba73
7acba73
%check
7acba73
./build/test/lilv_test
7acba73
7acba73
%files
7acba73
%doc AUTHORS ChangeLog README COPYING
7acba73
%{_libdir}/lib%{name}-%{maj}.so.*
7acba73
%{_bindir}/lilv-bench
7acba73
%{_bindir}/lv2info
7acba73
%{_bindir}/lv2ls
7acba73
%dir %{_sysconfdir}/bash_completion.d/
7acba73
%{_sysconfdir}/bash_completion.d/lilv
7acba73
%{_mandir}/man1/*
7acba73
7acba73
%files devel
7acba73
%{_libdir}/lib%{name}-%{maj}.so
7acba73
%{_libdir}/pkgconfig/%{name}-%{maj}.pc
7acba73
%{_includedir}/%{name}-%{maj}/
7acba73
%{_docdir}/%{name}-devel-%{version}
7acba73
%{_mandir}/man3/*
7acba73
7acba73
%files -n python-%{name}
7acba73
%{python_sitelib}/%{name}.*
7acba73
%{python_sitearch}/_%{name}.so
7acba73
7acba73
%changelog
7acba73
* Wed Feb 29 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-3
7acba73
- Remove redundant build requires, merge python bindings
7acba73
- Move man3 pages to devel package
7acba73
- Apply patch to correct scale points iteration in test suite
7acba73
7acba73
* Sun Feb 26 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-2
7acba73
- Add python bindings, and missing build requires
7acba73
- Move man pages to main package
7acba73
7acba73
* Fri Dec 23 2011 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-1
7acba73
- Initial build