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