30ecaf
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
7acba7
%global maj 0
7acba7
7acba7
Name:       lilv
9c625a
Version:    0.24.4
6cf413
Release:    2%{?dist}
7acba7
Summary:    An LV2 Resource Description Framework Library
7acba7
7acba7
License:    MIT
7acba7
URL:        http://drobilla.net/software/lilv/
7acba7
Source0:    http://download.drobilla.net/%{name}-%{version}.tar.bz2
7acba7
BuildRequires:  doxygen
7acba7
BuildRequires:  graphviz
9c625a
BuildRequires:  sord-devel >= 0.14.0
366728
BuildRequires:  sratom-devel >= 0.4.4
c87548
BuildRequires:  lv2-devel >= 1.14.0
8a0308
BuildRequires:  python2-devel
7acba7
BuildRequires:  swig
df8b2d
BuildRequires:  numpy
9c625a
BuildRequires:  serd-devel >= 0.18.0
aaa84e
BuildRequires:  gcc
aaa84e
BuildRequires:  gcc-c++
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
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
2eec8d
%package -n python2-%{name}
2eec8d
%{?python_provide:%python_provide python2-%{name}}
7acba7
Summary:    Python bindings for %{name}
7acba7
Requires:   %{name}%{_isa} = %{version}-%{release}
7acba7
2eec8d
%description -n python2-%{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 
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
9c625a
%set_build_flags
c87548
export LINKFLAGS="%{__global_ldflags}"
aaa84e
%{__python2} waf configure -v --prefix=%{_prefix}\
8a0308
 --libdir=%{_libdir} --configdir=%{_sysconfdir} --mandir=%{_mandir}\
30ecaf
 --docdir=%{_pkgdocdir}\
aaa84e
 --docs --test --dyn-manifest --bindings
aaa84e
%{__python2} waf -v build %{?_smp_mflags}
7acba7
7acba7
%install
aaa84e
%{__python2} waf -v install --destdir=%{buildroot}
7acba7
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
7acba7
7acba7
%check
7acba7
./build/test/lilv_test
7acba7
7acba7
%files
c87548
%doc AUTHORS NEWS README
c87548
%license 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
%{_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
2eec8d
%files -n python2-%{name}
d1da81
%{python2_sitelib}/%{name}.*
7acba7
7acba7
%changelog
6cf413
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.24.4-2
6cf413
- Rebuild with fixed binutils
6cf413
9c625a
* Mon Jul 30 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.4-1
9c625a
- Update to 0.24.4
9c625a
- Remove ldconfig scriptlets
9c625a
- Minor spec cleanup
9c625a
aaa84e
* Sun Jul 15 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.2-9
aaa84e
- Fix FTBFS due to the move of /usr/bin/python into a separate package
aaa84e
- Add BR for gcc and gcc-c++
aaa84e
e000c1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-8
e000c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e000c1
0e48bd
* Thu May 03 2018 Germano Massullo <germano.massullo@gmail.com> - 0.24.2-7
0e48bd
- removed %%dir %%{_sysconfdir}/bash_completion.d/ to fix bugreport #1303438
0e48bd
16049c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-6
16049c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
16049c
d1da81
* Thu Jan 18 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.2-5
d1da81
- Use versioned python macro python2_sitelib
d1da81
2eec8d
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.24.2-4
2eec8d
- Python 2 binary package renamed to python2-lilv
2eec8d
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
2eec8d
7becf4
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-3
7becf4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7becf4
4cce14
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-2
4cce14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4cce14
c87548
* Wed Mar 15 2017 Guido Aulisi <guido.aulisi@gmail.com> - 0.24.2-1
c87548
- Update to 0.24.2
c87548
- Use hardened LDFLAGS
c87548
- Remove deprecated Group tags
c87548
- Use license macro
c87548
- Drop gcc patch
c87548
bcabd1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-7
bcabd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bcabd1
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