c51cdc8
Name:			slv2
5dce8be
Summary:		LV2 host library
f5b2053
Version:		0.6.6
26d766c
Release:		12%{?dist}
c51cdc8
License:		GPLv2+
c51cdc8
Group:			System Environment/Libraries
c51cdc8
Source0:		http://download.drobilla.net/%{name}-%{version}.tar.bz2
1364500
# Remove dates from html doc files RHBZ#566345
1364500
Patch0:			%{name}-no-date-on-docs.patch
c51cdc8
URL:			http://drobilla.net/software/slv2/
c51cdc8
c51cdc8
BuildRequires:		doxygen
5c89580
BuildRequires:		lv2-devel
c51cdc8
BuildRequires:		python
c51cdc8
BuildRequires:		redland-devel
c51cdc8
BuildRequires:		jack-audio-connection-kit-devel
f5b2053
# To provide a clean upgrade path from PlanetCCRMA:
f5b2053
Obsoletes:		%{name}-examples < 0.6
f5b2053
Provides:		%{name}-examples = %{version}-%{release}
c51cdc8
c51cdc8
%description
c51cdc8
SLV2 is a library to make the use of LV2 plugins as simple as possible for 
c51cdc8
applications. It is written in standard C using the Redland RDF toolkit. The 
c51cdc8
Data (RDF) and code (shared library) functionality in SLV2 is strictly
c51cdc8
separated so it is simple to control where each is used (e.g. it is possible
c51cdc8
to discover/investigate plugins and related data without loading any shared 
c51cdc8
libraries, avoiding the associated risks).
c51cdc8
c51cdc8
%package devel
c51cdc8
Summary:	Development libraries and headers for %{name}
c51cdc8
Group:		Development/Libraries
5c89580
Requires:	lv2-devel 
c51cdc8
Requires:	redland-devel
c51cdc8
Requires:	pkgconfig
88fe22b
Requires:	%{name}%{?_isa} = %{version}-%{release}
c51cdc8
c51cdc8
%description devel
c51cdc8
SLV2 is a library to make the use of LV2 plugins as simple as possible for
c51cdc8
applications. It is written in standard C using the Redland RDF toolkit. The
c51cdc8
Data (RDF) and code (shared library) functionality in SLV2 is strictly
c51cdc8
separated so it is simple to control where each is used (e.g. it is possible
c51cdc8
to discover/investigate plugins and related data without loading any shared
c51cdc8
libraries, avoiding the associated risks).
c51cdc8
c51cdc8
This package contains the headers and development libraries for SLV2.
c51cdc8
c51cdc8
%prep
c51cdc8
%setup -q 
1364500
%patch0 -p1 -b .nodates
c51cdc8
c51cdc8
# Fix possible multilib issues
c51cdc8
sed -i 's|/lib/|/%{_lib}/|g' src/world.c
c51cdc8
sed -i "s|/lib'|/%{_lib}'|" autowaf.py
c51cdc8
c51cdc8
# Remove unnecessary flags
c51cdc8
sed -i 's|@REDLAND.*@||' slv2.pc.in
83489e0
# Fix CFLAGS issue in slv2->redland->rasqal dependency chain
83489e0
echo "Requires.private: redland" >> slv2.pc.in
c51cdc8
c51cdc8
%build
5dce8be
export CFLAGS="%{optflags}"
c51cdc8
export CXXFLAGS="%{optflags}"
c51cdc8
./waf configure --prefix=%{_prefix} \
c51cdc8
	--libdir=%{_libdir} \
c51cdc8
	--htmldir=%{_docdir}/%{name}-devel-%{version} \
c51cdc8
	--build-docs
c51cdc8
./waf build -v %{?_smp_mflags}
c51cdc8
88fe22b
# Workaround the doxygen bug
88fe22b
rm -f build/default/doc/man/man3/_*
88fe22b
c51cdc8
%install
c51cdc8
DESTDIR=%{buildroot} ./waf install
c51cdc8
chmod +x %{buildroot}%{_libdir}/lib%{name}.so*
c51cdc8
c51cdc8
%post -p /sbin/ldconfig
c51cdc8
c51cdc8
%postun -p /sbin/ldconfig
c51cdc8
c51cdc8
%files
c51cdc8
%doc AUTHORS ChangeLog COPYING README
c51cdc8
%{_bindir}/lv2*
c51cdc8
%{_libdir}/lib%{name}.so.*
6beae02
%{_mandir}/man1/*
c51cdc8
c51cdc8
%files devel
c51cdc8
%{_docdir}/%{name}-devel-%{version}
c51cdc8
%{_includedir}/%{name}/
c51cdc8
%{_libdir}/pkgconfig/%{name}.pc
c51cdc8
%{_libdir}/lib%{name}.so
c51cdc8
%{_mandir}/man3/%{name}*
c51cdc8
c51cdc8
%changelog
26d766c
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-12
26d766c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
26d766c
88fe22b
* Wed Jul 25 2012 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.6.6-11
88fe22b
- Workaround the doxygen bug by removing the spurious manpage file
88fe22b
5f9d6df
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-10
5f9d6df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5f9d6df
5c89580
* Tue May 22 2012 Brendan Jones <brendan.jones.it@gmail.com> 0.6.6-9
5c89580
- Rebuilt against new LV2 package
5c89580
722a0fb
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-8
722a0fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
722a0fb
b2f3336
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-7
b2f3336
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b2f3336
83489e0
* Wed Dec 01 2010 Dan HorĂ¡k <dan[at]danny.cz> - 0.6.6-6
83489e0
- Fix CFLAGS issue in slv2->redland->rasqal dependency chain
83489e0
1364500
* Fri Feb 19 2010 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.6.6-5
1364500
- Remove dates from html doc files RHBZ#566345
1364500
9757b00
* Sun Jan 03 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.6.6-4
9757b00
- rebuild (redland)
9757b00
0bef2f7
* Sun Jan 03 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.6.6-3
0bef2f7
- rebuild (rasqal/redland)
0bef2f7
0b2f653
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
0b2f653
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0b2f653
f5b2053
* Tue May 26 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.6.6-1
f5b2053
- Version update: 0.6.6
f5b2053
- Add Obsoletes/Provides to slv2-examples
f5b2053
6beae02
* Tue May 05 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.6.4-1
6beae02
- Version update: 0.6.4
6beae02
- Drop plugininstance patch (upstreamed)
6beae02
5dce8be
* Wed Apr 08 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.6.2-3
5dce8be
- Change CCFLAGS to CFLAGS
5dce8be
c51cdc8
* Sat Mar 28 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.6.2-2
c51cdc8
- Remove redland flags from the .pc file
c51cdc8
- Change CPPFLAGS to CXXFLAGS
c51cdc8
- Move API documentation to the -devel package
c51cdc8
c51cdc8
* Thu Mar 26 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.6.2-1
c51cdc8
- Initial build