3 %bcond_without gtk # GTK+ (2,3) support
4 %bcond_without qt4 # Qt4 support
5 %bcond_without qt5 # Qt5 support
7 Summary: Lightweight C library for loading and wrapping LV2 plugin UIs
8 Summary(pl.UTF-8): Lekka biblioteka C do ładowania i obudowywania UI wtyczek LV2
14 Source0: http://download.drobilla.net/%{name}-%{version}.tar.bz2
15 # Source0-md5: 12c87f830c06d280e2826fae7bc6dd86
16 URL: http://drobilla.net/software/suil/
17 %{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0}
18 %{?with_qt5:BuildRequires: Qt5Widgets-devel >= 5.1.0}
19 %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.18.0}
20 %{?with_gtk:BuildRequires: gtk+3-devel >= 3.14.0}
21 BuildRequires: libstdc++-devel
22 BuildRequires: lv2-devel >= 1.16.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Suil is a lightweight C library for loading and wrapping LV2 plugin
30 Suil makes it possible to load a UI of any toolkit in a host using any
31 other toolkit (assuming the toolkits are both supported by Suil).
32 Hosts do not need to build against or link to foreign toolkit
33 libraries to use UIs written with that toolkit (Suil performs its
34 magic at runtime using dynamically loaded modules). The API is
35 designed such that hosts do not need to explicitly support particular
36 toolkits whatsoever - if Suil supports a particular toolkit, then all
37 hosts that use Suil will support that toolkit "for free".
39 %description -l pl.UTF-8
40 Suil to lekka biblioteka C do ładowania i obudowywania interfejsów
41 użytkownika (UI) wtyczek LV2.
43 Suil umożliwia wczytanie UI dowolnego toolkitu do hosta
44 wykorzystującego dowolny inny toolkit (zakładając, że oba toolkity są
45 obsługiwane prez Suil). Hosty nie muszą być budowane z obsługą obcych
46 bibliotek toolkitów, aby można było używać UI napisanego z użyciem
47 danego toolkitu (Suil wykonuje całą potrzebną magię w czasie działania
48 przy użyciu modułów ładowanych dynamicznie). API jest zaprojektowane
49 tak, że hosty nie muszą jawnie obsługiwać konkretnego toolkitu - jeśli
50 Suil obsługuje ten toolkit, to wszystkie hosty wykorzystujące Suil
51 będą obsługiwały ten toolkit za darmo.
54 Summary: UI wrapper modules for suil library
55 Summary(pl.UTF-8): Moduły obudowujące UI dla biblioteki suil
57 Requires: %{name} = %{version}-%{release}
58 %{?with_qt4:Requires: QtGui >= 4.4.0}
59 %{?with_qt5:Requires: Qt5Widgets >= 5.1.0}
60 %{?with_gtk:Requires: gtk+2 >= 2:2.18.0}
61 %{?with_gtk:Requires: gtk+3 >= 3.14.0}
64 Dynamically loaded modules for suil library, allowing to use X11
65 UIs in GTK+ or Qt host, GTK+ UI in Qt host, Qt UI in GTK+ host.
67 %description modules -l pl.UTF-8
68 Dynamicznie wczytywane moduły dla biblioteki suil, pozwalające na
69 używanie interfejsów użytkownika X11 w hostach GTK+ lub Qt,
70 interfejsów GTK+ w hostach Qt oraz interfejsów Qt w hostach GTK+.
73 Summary: Header files for suil library
74 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki suil
75 Group: Development/Libraries
76 Requires: %{name} = %{version}-%{release}
77 Requires: lv2-devel >= 1.16.0
80 Header files for suil library.
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki suil.
90 CFLAGS="%{rpmcflags}" \
94 --gtk2-lib-name=libgtk-x11-2.0.so.0 \
95 --gtk3-lib-name=libgtk-3.so.0 \
96 %{!?with_gtk:--no-gtk} \
97 %{!?with_qt4:--no-qt4} \
98 %{!?with_qt4:--no-qt4} \
99 %{!?with_qt5:--no-qt5}
104 rm -rf $RPM_BUILD_ROOT
107 --destdir=$RPM_BUILD_ROOT
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
117 %doc AUTHORS COPYING NEWS README.md
118 %attr(755,root,root) %{_libdir}/libsuil-0.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libsuil-0.so.0
120 %dir %{_libdir}/suil-0
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/suil-0/libsuil_x11.so
126 %attr(755,root,root) %{_libdir}/suil-0/libsuil_x11_in_gtk2.so
127 %attr(755,root,root) %{_libdir}/suil-0/libsuil_x11_in_gtk3.so
130 %attr(755,root,root) %{_libdir}/suil-0/libsuil_x11_in_qt4.so
133 %attr(755,root,root) %{_libdir}/suil-0/libsuil_x11_in_qt5.so
135 %if %{with gtk} && %{with qt4}
136 %attr(755,root,root) %{_libdir}/suil-0/libsuil_gtk2_in_qt4.so
137 %attr(755,root,root) %{_libdir}/suil-0/libsuil_qt4_in_gtk2.so
139 %if %{with gtk} && %{with qt5}
140 %attr(755,root,root) %{_libdir}/suil-0/libsuil_gtk2_in_qt5.so
141 %attr(755,root,root) %{_libdir}/suil-0/libsuil_qt5_in_gtk2.so
142 %attr(755,root,root) %{_libdir}/suil-0/libsuil_qt5_in_gtk3.so
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/libsuil-0.so
148 %{_includedir}/suil-0
149 %{_pkgconfigdir}/suil-0.pc