30ecaf
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
7acba7
%global maj 0
7acba7
7acba7
Name:       lilv
6db349
Version:    0.20.0
41b302
Release:    6%{?dist}
7acba7
Summary:    An LV2 Resource Description Framework Library
7acba7
7acba7
Group:      System Environment/Libraries
7acba7
License:    MIT
7acba7
URL:        http://drobilla.net/software/lilv/
7acba7
Source0:    http://download.drobilla.net/%{name}-%{version}.tar.bz2
9278d7
Patch1:     lilv-0.16.0-gcc.patch
7acba7
BuildRequires:  doxygen
7acba7
BuildRequires:  graphviz
9278d7
BuildRequires:  sord-devel >= 0.12.0
366728
BuildRequires:  sratom-devel >= 0.4.4
366728
BuildRequires:  lv2-devel >= 1.8.0
8a0308
BuildRequires:  python2-devel
7acba7
BuildRequires:  swig
df8b2d
BuildRequires:  numpy
7acba7
7acba7
%filter_setup
7acba7
7acba7
%description
7acba7
%{name} is a library to make the use of LV2 plugins as simple as possible 
7acba7
for applications. Lilv is the successor to SLV2, rewritten to be significantly 
7acba7
faster and have minimal dependencies. 
7acba7
7acba7
%package devel
7acba7
Summary:    Development libraries and headers for %{name}
7acba7
Group:      Development/Libraries
7acba7
Requires:   %{name}%{_isa} = %{version}-%{release}
7acba7
7acba7
%description devel
7acba7
%{name} is a lightweight C library for Resource Description Syntax which 
7acba7
supports reading and writing Turtle and NTriples.
7acba7
7acba7
This package contains the headers and development libraries for %{name}.
7acba7
7acba7
%package -n python-%{name}
7acba7
Summary:    Python bindings for %{name}
7acba7
Group:      Development/Libraries
7acba7
Requires:   %{name}%{_isa} = %{version}-%{release}
7acba7
7acba7
%description -n python-%{name} 
7acba7
%{name} is a lightweight C library for Resource Description Syntax which 
7acba7
supports reading and writing Turtle and NTriples.
7acba7
7acba7
This package contains the python libraries for %{name}.
7acba7
7acba7
%prep
7acba7
%setup -q 
9278d7
%patch1 -p1 
7acba7
# we'll run ld config
7acba7
sed -i -e 's|bld.add_post_fun(autowaf.run_ldconfig)||' wscript
7acba7
# for packagers sake, build the tests with debug symbols
8a0308
sed -i -e "s|'-ftest-coverage'\]|\
7acba7
 '-ftest-coverage' \] + '%{optflags}'.split(' ')|" wscript
7acba7
7acba7
%build
7acba7
export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
8a0308
./waf configure -v --prefix=%{_prefix}\
8a0308
 --libdir=%{_libdir} --configdir=%{_sysconfdir} --mandir=%{_mandir}\
30ecaf
 --docdir=%{_pkgdocdir}\
8a0308
 --docs --test --dyn-manifest --bindings 
8a0308
./waf -v build %{?_smp_mflags}
7acba7
7acba7
%install
8a0308
./waf -v install --destdir=%{buildroot} 
7acba7
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
7acba7
7acba7
%post -p /sbin/ldconfig
7acba7
7acba7
%postun -p /sbin/ldconfig
7acba7
7acba7
%check
7acba7
./build/test/lilv_test
7acba7
7acba7
%files
89d64b
%doc AUTHORS NEWS README COPYING
30ecaf
%exclude %{_pkgdocdir}/%{name}-%{maj}/
7acba7
%{_libdir}/lib%{name}-%{maj}.so.*
7acba7
%{_bindir}/lilv-bench
7acba7
%{_bindir}/lv2info
7acba7
%{_bindir}/lv2ls
ac6280
%{_bindir}/lv2bench
7acba7
%dir %{_sysconfdir}/bash_completion.d/
7acba7
%{_sysconfdir}/bash_completion.d/lilv
7acba7
%{_mandir}/man1/*
7acba7
7acba7
%files devel
7acba7
%{_libdir}/lib%{name}-%{maj}.so
7acba7
%{_libdir}/pkgconfig/%{name}-%{maj}.pc
7acba7
%{_includedir}/%{name}-%{maj}/
30ecaf
%{_pkgdocdir}/%{name}-%{maj}/
7acba7
%{_mandir}/man3/*
7acba7
7acba7
%files -n python-%{name}
7acba7
%{python_sitelib}/%{name}.*
7acba7
%{python_sitearch}/_%{name}.so
7acba7
7acba7
%changelog
41b302
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.0-6
41b302
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
41b302
12c472
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-5
12c472
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
12c472
d0dd24
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.0-4
d0dd24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0dd24
16a960
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.20.0-3
16a960
- Rebuilt for GCC 5 C++11 ABI change
16a960
07f182
* Sat Aug 23 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.20.0-2
07f182
- Build against new version of sratom / sord
07f182
6db349
* Wed Aug 20 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.20.0-1
07f182
- Update to 0.20.0
6db349
d7d741
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-4
d7d741
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d7d741
67be50
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-3
67be50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
67be50
df8b2d
* Sat Jan 11 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.18.0-2
df8b2d
- Add numpy BR
df8b2d
366728
* Fri Jan 10 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.18.0-1
366728
- New upstream release
366728
30ecaf
* Thu Nov 28 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.16.0-3
30ecaf
- Install docs to (main, not devel) %%{_pkgdocdir} where available (#993969).
30ecaf
156b0a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0-2
156b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
156b0a
9278d7
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.16.0-1
9278d7
- New upstream release
9278d7
b9ae01
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.4-2
b9ae01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b9ae01
ac6280
* Sat Dec 15 2012 Brendan Jones <brendan.jones.it@gmail.com> 0.14.4-1
ac6280
- New upstream release
ac6280
ff9daa
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.2-4
ff9daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ff9daa
168ad0
* Thu Jul 05 2012 Karsten Hopp <karsten@redhat.com> 0.14.2-3
168ad0
- bump release and rebuild, lilv was missing some deps on PPC*
168ad0
8a0308
* Sat May 12 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.2-2
8a0308
- Corrected waf configure
8a0308
 
8a0308
* Sat May 12 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.2-1
8a0308
- New upstream 0.14.2
8a0308
 
2776be
* Sat May 12 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.0-2
2776be
- Add python binding BR
2776be
 
89d64b
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.0-1
89d64b
- New upstream release 0.14.0
2776be
 
7acba7
* Wed Feb 29 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-3
7acba7
- Remove redundant build requires, merge python bindings
7acba7
- Move man3 pages to devel package
7acba7
- Apply patch to correct scale points iteration in test suite
7acba7
7acba7
* Sun Feb 26 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-2
7acba7
- Add python bindings, and missing build requires
7acba7
- Move man pages to main package
7acba7
7acba7
* Fri Dec 23 2011 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-1
7acba7
- Initial build