952399b
%global debug_package %{nil}
4b1f61f
1581b34
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
1581b34
4b1f61f
Name:           lv2
65876ad
Version:        1.10.0
9588ace
Release:        4%{?dist}
4b1f61f
Summary:        Audio Plugin Standard
4b1f61f
Group:          System Environment/Libraries
4b1f61f
4b1f61f
# lv2specgen template.html is CC-AT-SA
4b1f61f
License:        ISC
4b1f61f
URL:            http://lv2plug.in
4b1f61f
Source:         http://lv2plug.in/spec/lv2-%{version}.tar.bz2
4b1f61f
a8d7f21
BuildRequires:  doxygen graphviz python-rdflib
8e87d9e
BuildRequires:  libsndfile-devel
1581b34
# TODO: it complains about missing this, 
1581b34
# (Error importing pygments, syntax highlighting disabled)
1581b34
# but the syntax-highlighting in the generated docs looks strange
1581b34
#BuildRequires: python-pygments
1581b34
4b1f61f
# this package replaces lv2core 
4b1f61f
Provides:       lv2core = 6.0-4
4b1f61f
Obsoletes:      lv2core < 6.0-4
4b1f61f
Provides:       lv2-ui = 2.4-5
4b1f61f
Obsoletes:      lv2-ui < 2.4-5
4b1f61f
4b1f61f
%description
4b1f61f
LV2 is a standard for plugins and matching host applications, mainly
4b1f61f
targeted at audio processing and generation.  
4b1f61f
4b1f61f
There are a large number of open source and free software synthesis
4b1f61f
packages in use or development at this time. This API ('LV2') attempts
4b1f61f
to give programmers the ability to write simple 'plugin' audio
4b1f61f
processors in C/C++ and link them dynamically ('plug') into a range of
4b1f61f
these packages ('hosts').  It should be possible for any host and any
4b1f61f
plugin to communicate completely through this interface.
4b1f61f
4b1f61f
LV2 is a successor to LADSPA, created to address the limitations of
4b1f61f
LADSPA which many hosts have outgrown.
4b1f61f
4b1f61f
%package        devel
4b1f61f
Summary:        API for the LV2 Audio Plugin Standard
4b1f61f
Group:          Development/Libraries
4b1f61f
4b1f61f
Requires:       %{name}%{?_isa} = %{version}-%{release}
4b1f61f
Provides:       lv2core-devel = 6.0-4
4b1f61f
Obsoletes:      lv2core-devel < 6.0-4
4b1f61f
Provides:       lv2-ui-devel = 2.4-5
4b1f61f
Obsoletes:      lv2-ui-devel < 2.4-5
4b1f61f
4b1f61f
%description    devel
4b1f61f
lv2-devel contains the lv2.h header file and headers for all of the
4b1f61f
LV@ specification extensions and bundles.
4b1f61f
4b1f61f
Definitive technical documentation on LV2 plug-ins for both the host
4b1f61f
and plug-in is contained within copious comments within the lv2.h
4b1f61f
header file.
4b1f61f
1581b34
%package        doc
5186754
Summary:        Documentation for the LV2 Audio Plugin Standard
1581b34
Group:          Documentation
5186754
BuildArch:      noarch
1581b34
Obsoletes:      %{name}-docs < 1.6.0-2
1581b34
Provides:       %{name}-docs = %{version}-%{release}
5186754
1581b34
%description    doc
5186754
Documentation for the LV2 plugin API.
5186754
5929969
%package        example-plugins
5929969
Summary:        Examples of the LV2 Audio Plugin Standard
5929969
Group:          Audio/Multimedia
5929969
5929969
%description    example-plugins
5929969
Example LV2 audio plugins
5929969
4b1f61f
%prep
4b1f61f
%setup -q
4b1f61f
4b1f61f
%build
5929969
export CFLAGS="%{optflags}"
5186754
./waf configure -vv --prefix=%{_prefix} --libdir=%{_libdir} --debug \
5929969
  --docs --docdir=%{_pkgdocdir}
4b1f61f
./waf -vv %{?_smp_mflags}
4b1f61f
4b1f61f
%install
4b1f61f
rm -rf %buildroot
4b1f61f
DESTDIR=%buildroot ./waf -vv install
1581b34
mv %{buildroot}%{_pkgdocdir}/%{name}/lv2plug.in/* %{buildroot}%{_pkgdocdir}
1581b34
find %{buildroot}%{_pkgdocdir} -type d -empty | xargs rmdir
1581b34
for f in COPYING NEWS README ; do
1581b34
    install -p -m0644 $f %{buildroot}%{_pkgdocdir}
1581b34
done
4b1f61f
4b1f61f
%clean
4b1f61f
rm -rf %buildroot
4b1f61f
4b1f61f
%files
1581b34
# don't include doc files via %%doc here (bz 913540)
1581b34
%dir %{_pkgdocdir}
1581b34
%{_pkgdocdir}/COPYING
1581b34
%{_pkgdocdir}/NEWS
1581b34
%{_pkgdocdir}/README
4b1f61f
%{_libdir}/%{name}/
5929969
4b1f61f
%exclude %{_libdir}/%{name}/*/*.[ch]
4b1f61f
4b1f61f
%files devel
5929969
%{_bindir}/lv2specgen.py
5929969
%{_datadir}/lv2specgen
4b1f61f
%{_includedir}/%{name}.h
4b1f61f
%{_includedir}/%{name}/
5929969
%{_libdir}/%{name}/eg-*
4b1f61f
%{_libdir}/%{name}/*/*.[hc]
4b1f61f
%{_libdir}/pkgconfig/lv2core.pc
4b1f61f
%{_libdir}/pkgconfig/%{name}.pc
4b1f61f
1581b34
%files doc
1581b34
%{_pkgdocdir}/
5186754
4b1f61f
%changelog
9588ace
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-4
9588ace
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9588ace
5f64968
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
5f64968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5f64968
8e87d9e
* Tue Aug 19 2014 Brendan Jones <brendan.jones.it@gmail.com> 1.10.0-2
8e87d9e
- Ad miising libsndfile
8e87d9e
65876ad
* Tue Aug 19 2014 Brendan Jones <brendan.jones.it@gmail.com> 1.10.0-1
65876ad
- Update to 1.10.0
65876ad
16ed020
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
16ed020
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
16ed020
44eaf65
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
44eaf65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
44eaf65
5929969
* Thu Jan 09 2014 Brendan Jones <brendan.jones.it@gmail.com> 1.8.0-1
5929969
- Upstream maintenance release
5929969
- Add example plugins
5929969
1581b34
* Sun Sep 22 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.6.0-2
1581b34
- Don't duplicate -doc package contents in base package (#913540).
1581b34
- Define and use %%_pkgdocdir as suggested by the Unversioned Docdirs
1581b34
  change for Fedora 20 (#993908).
1581b34
- Pass --docdir= to waf.
1581b34
- Use Group Documentation in -doc subpackage.
1581b34
- Rename -docs package to -doc as recommended in the guidelines.
1581b34
- The documentation subpackage does not need the base package.
1581b34
f94e609
* Fri Aug 23 2013 Brendan Jones <brendan.jones.it@gmail.com> 1.6.0-1
f94e609
- Update to 1.6.0
f94e609
af91b51
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
af91b51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
af91b51
afd9e3b
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 1.4.0-1
afd9e3b
- New upstream release 
afd9e3b
4399457
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
4399457
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4399457
5186754
* Sat Oct 20 2012 Brendan Jones <brendan.jones.it@gmail.com> 1.2.0-1
5186754
- New upstream release
5186754
67ea0e6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-8
67ea0e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
67ea0e6
22be706
* Wed Jun 13 2012 Brendan Jones <brendan.jones.it@gmail.com> 1.0.0-7
22be706
- Remove date from doxygen footers
22be706
bf6ee90
* Sat Apr 21 2012 Brendan Jones <brendan.jones.it@gmail.com> - 1.0.0-6
bf6ee90
- Re-suppress debuginfo
bf6ee90
bdff18c
* Sat Apr 21 2012 Brendan Jones <brendan.jones.it@gmail.com> - 1.0.0-5
bdff18c
- libsndfile no longer required
bdff18c
e588990
* Sat Apr 21 2012 Brendan Jones <brendan.jones.it@gmail.com> - 1.0.0-4
e588990
- remove examples 
e588990
2ec53e6
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 1.0.0-3
2ec53e6
- dd libsndfile BR
2ec53e6
4b1f61f
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 1.0.0-2
4b1f61f
- Remove debuginfo supression, correct changelog
4b1f61f
4b1f61f
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 1.0.0-1
4b1f61f
- Created
4b1f61f