30ecafe
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
7acba73
%global maj 0
7acba73
7acba73
Name:       lilv
9c625af
Version:    0.24.4
9c625af
Release:    1%{?dist}
7acba73
Summary:    An LV2 Resource Description Framework Library
7acba73
7acba73
License:    MIT
7acba73
URL:        http://drobilla.net/software/lilv/
7acba73
Source0:    http://download.drobilla.net/%{name}-%{version}.tar.bz2
7acba73
BuildRequires:  doxygen
7acba73
BuildRequires:  graphviz
9c625af
BuildRequires:  sord-devel >= 0.14.0
3667283
BuildRequires:  sratom-devel >= 0.4.4
c875489
BuildRequires:  lv2-devel >= 1.14.0
8a0308b
BuildRequires:  python2-devel
7acba73
BuildRequires:  swig
df8b2de
BuildRequires:  numpy
9c625af
BuildRequires:  serd-devel >= 0.18.0
aaa84e9
BuildRequires:  gcc
aaa84e9
BuildRequires:  gcc-c++
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
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
2eec8d6
%package -n python2-%{name}
2eec8d6
%{?python_provide:%python_provide python2-%{name}}
7acba73
Summary:    Python bindings for %{name}
7acba73
Requires:   %{name}%{_isa} = %{version}-%{release}
7acba73
2eec8d6
%description -n python2-%{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
# 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
8a0308b
sed -i -e "s|'-ftest-coverage'\]|\
7acba73
 '-ftest-coverage' \] + '%{optflags}'.split(' ')|" wscript
7acba73
7acba73
%build
9c625af
%set_build_flags
c875489
export LINKFLAGS="%{__global_ldflags}"
aaa84e9
%{__python2} waf configure -v --prefix=%{_prefix}\
8a0308b
 --libdir=%{_libdir} --configdir=%{_sysconfdir} --mandir=%{_mandir}\
30ecafe
 --docdir=%{_pkgdocdir}\
aaa84e9
 --docs --test --dyn-manifest --bindings
aaa84e9
%{__python2} waf -v build %{?_smp_mflags}
7acba73
7acba73
%install
aaa84e9
%{__python2} waf -v install --destdir=%{buildroot}
7acba73
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
7acba73
7acba73
%check
7acba73
./build/test/lilv_test
7acba73
7acba73
%files
c875489
%doc AUTHORS NEWS README
c875489
%license COPYING
30ecafe
%exclude %{_pkgdocdir}/%{name}-%{maj}/
7acba73
%{_libdir}/lib%{name}-%{maj}.so.*
7acba73
%{_bindir}/lilv-bench
7acba73
%{_bindir}/lv2info
7acba73
%{_bindir}/lv2ls
ac62802
%{_bindir}/lv2bench
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}/
30ecafe
%{_pkgdocdir}/%{name}-%{maj}/
7acba73
%{_mandir}/man3/*
7acba73
2eec8d6
%files -n python2-%{name}
d1da81b
%{python2_sitelib}/%{name}.*
7acba73
7acba73
%changelog
9c625af
* Mon Jul 30 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.4-1
9c625af
- Update to 0.24.4
9c625af
- Remove ldconfig scriptlets
9c625af
- Minor spec cleanup
9c625af
aaa84e9
* Sun Jul 15 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.2-9
aaa84e9
- Fix FTBFS due to the move of /usr/bin/python into a separate package
aaa84e9
- Add BR for gcc and gcc-c++
aaa84e9
e000c1c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-8
e000c1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e000c1c
0e48bd3
* Thu May 03 2018 Germano Massullo <germano.massullo@gmail.com> - 0.24.2-7
0e48bd3
- removed %%dir %%{_sysconfdir}/bash_completion.d/ to fix bugreport #1303438
0e48bd3
16049c2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-6
16049c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
16049c2
d1da81b
* Thu Jan 18 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.2-5
d1da81b
- Use versioned python macro python2_sitelib
d1da81b
2eec8d6
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.24.2-4
2eec8d6
- Python 2 binary package renamed to python2-lilv
2eec8d6
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
2eec8d6
7becf4b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-3
7becf4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7becf4b
4cce14a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-2
4cce14a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4cce14a
c875489
* Wed Mar 15 2017 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.2-1
c875489
- Update to 0.24.2
c875489
- Use hardened LDFLAGS
c875489
- Remove deprecated Group tags
c875489
- Use license macro
c875489
- Drop gcc patch
c875489
bcabd13
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-7
bcabd13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bcabd13
41b302b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.0-6
41b302b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
41b302b
12c4721
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-5
12c4721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
12c4721
d0dd240
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.0-4
d0dd240
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0dd240
16a9602
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.20.0-3
16a9602
- Rebuilt for GCC 5 C++11 ABI change
16a9602
07f182a
* Sat Aug 23 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.20.0-2
07f182a
- Build against new version of sratom / sord
07f182a
6db3490
* Wed Aug 20 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.20.0-1
07f182a
- Update to 0.20.0
6db3490
d7d7411
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-4
d7d7411
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d7d7411
67be507
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-3
67be507
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
67be507
df8b2de
* Sat Jan 11 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.18.0-2
df8b2de
- Add numpy BR
df8b2de
3667283
* Fri Jan 10 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.18.0-1
3667283
- New upstream release
3667283
30ecafe
* Thu Nov 28 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.16.0-3
30ecafe
- Install docs to (main, not devel) %%{_pkgdocdir} where available (#993969).
30ecafe
156b0ad
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0-2
156b0ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
156b0ad
9278d73
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.16.0-1
9278d73
- New upstream release
9278d73
b9ae015
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.4-2
b9ae015
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b9ae015
ac62802
* Sat Dec 15 2012 Brendan Jones <brendan.jones.it@gmail.com> 0.14.4-1
ac62802
- New upstream release
ac62802
ff9daaf
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.2-4
ff9daaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ff9daaf
168ad09
* Thu Jul 05 2012 Karsten Hopp <karsten@redhat.com> 0.14.2-3
168ad09
- bump release and rebuild, lilv was missing some deps on PPC*
168ad09
8a0308b
* Sat May 12 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.2-2
8a0308b
- Corrected waf configure
8a0308b
 
8a0308b
* Sat May 12 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.2-1
8a0308b
- New upstream 0.14.2
8a0308b
 
2776be5
* Sat May 12 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.0-2
2776be5
- Add python binding BR
2776be5
 
89d64b9
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.0-1
89d64b9
- New upstream release 0.14.0
2776be5
 
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