%global maj 0 Name: suil Version: 0.4.4 Release: 8%{?dist} Summary: A lightweight C library for loading and wrapping LV2 plugin UIs Group: System Environment/Libraries License: MIT URL: http://drobilla.net/software/suil/ Source0: http://download.drobilla.net/%{name}-%{version}.tar.bz2 BuildRequires: doxygen BuildRequires: graphviz BuildRequires: python BuildRequires: lv2core-devel BuildRequires: lv2-ui-devel # we need to track changess to these toolkits manually due to the # requires filtering below BuildRequires: gtk2-devel BuildRequires: qt4-devel # lets not unecessarily pull in toolkits dependancies. They will be provided by # the host and or the plugin %filter_from_requires /.*libatk.*/d %filter_from_requires /.*libcairo.*/d %filter_from_requires /.*libfont.*/d %filter_from_requires /.*libfree.*/d %filter_from_requires /.*libg.*/d %filter_from_requires /.*libpango.*/d %filter_from_requires /.*libQt.*/d %filter_setup %description %{name} makes it possible to load a UI of any toolkit in a host using any other toolkit (assuming the toolkits are both supported by %{name}). Hosts do not need to build against or link to foreign toolkit libraries to use UIs written with that toolkit (%{name} performs its magic at runtime using dynamically loaded modules). %package devel Summary: Development libraries and headers for %{name} Group: Development/Libraries Requires: %{name}%{_isa} = %{version}-%{release} %description devel This package contains the headers and development libraries for %{name}. %prep %setup -q # we'll run ldconfig, and add our optflags sed -i -e "s|bld.add_post_fun(autowaf.run_ldconfig)||" wscript %build export CXXFLAGS="%{optflags}" ./waf configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --docdir=%{_docdir}/%{name}-devel-%{version} \ --docs ./waf build -v %{?_smp_mflags} %install DESTDIR=%{buildroot} ./waf install chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS ChangeLog README COPYING %dir %{_libdir}/suil-%{maj} %{_libdir}/lib%{name}-*.so.* %{_libdir}/suil-%{maj}/libsuil_gtk2_in_qt4.so %{_libdir}/suil-%{maj}/libsuil_qt4_in_gtk2.so %files devel %{_libdir}/lib%{name}-%{maj}.so %{_libdir}/pkgconfig/%{name}-%{maj}.pc %{_includedir}/%{name}-%{maj}/ %{_docdir}/%{name}-devel-%{version} %{_mandir}/man3/%{name}.3.gz %changelog * Tue May 01 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.4.4-8 - Add lv2-ui-devel * Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.4.4-7 - Add filter_from_requires macro to remove unwanted Gtk/Qt dependancies * Fri Mar 30 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.4.4-5 - License change to MIT, adjust descriptions * Wed Feb 22 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.4.4-4 - Split into Qt and GTK packages * Mon Feb 06 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.4.4-3 - Correct directory ownsership and runtime library placement * Wed Jan 25 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.4.4-2 - Correct build requires * Fri Dec 23 2011 Brendan Jones <brendan.jones.it@gmail.com> - 0.4.4-1 - Initial build