]> git.pld-linux.org Git - packages/suil.git/blame - suil.spec
- updated to 0.10.20
[packages/suil.git] / suil.spec
CommitLineData
a9e89817
JK
1#
2# Conditional build:
818e03bd 3%bcond_with apidocs # API documentation
1e3d6834 4%bcond_without gtk # GTK+ (2,3) support
1e3d6834 5%bcond_without qt5 # Qt5 support
a9e89817 6
ff9ca567
JB
7Summary: Lightweight C library for loading and wrapping LV2 plugin UIs
8Summary(pl.UTF-8): Lekka biblioteka C do ładowania i obudowywania UI wtyczek LV2
9Name: suil
77a6b3af 10Version: 0.10.20
533b3768 11Release: 1
ff9ca567
JB
12License: ISC
13Group: Libraries
818e03bd 14Source0: http://download.drobilla.net/%{name}-%{version}.tar.xz
77a6b3af 15# Source0-md5: 2c4a47fcb71648430e0762d29d8db032
ff9ca567 16URL: http://drobilla.net/software/suil/
1e3d6834 17%{?with_qt5:BuildRequires: Qt5Widgets-devel >= 5.1.0}
818e03bd 18%{?with_qt5:BuildRequires: Qt5X11Extras-devel >= 5.1.0}
1e3d6834
JB
19%{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.18.0}
20%{?with_gtk:BuildRequires: gtk+3-devel >= 3.14.0}
818e03bd
JB
21BuildRequires: libstdc++-devel >= 6:5
22BuildRequires: lv2-devel >= 1.18.3
23BuildRequires: meson >= 0.56.0
24BuildRequires: ninja >= 1.5
25BuildRequires: pkgconfig
26BuildRequires: rpmbuild(macros) >= 1.736
27BuildRequires: tar >= 1:1.22
28BuildRequires: xorg-lib-libX11-devel
29BuildRequires: xz
30%if %{with apidocs}
31BuildRequires: doxygen
32BuildRequires: sphinx-pdg
33%endif
34Requires: lv2 >= 1.18.3
ff9ca567
JB
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38Suil is a lightweight C library for loading and wrapping LV2 plugin
39UIs.
40
41Suil makes it possible to load a UI of any toolkit in a host using any
42other toolkit (assuming the toolkits are both supported by Suil).
43Hosts do not need to build against or link to foreign toolkit
44libraries to use UIs written with that toolkit (Suil performs its
45magic at runtime using dynamically loaded modules). The API is
46designed such that hosts do not need to explicitly support particular
47toolkits whatsoever - if Suil supports a particular toolkit, then all
48hosts that use Suil will support that toolkit "for free".
49
50%description -l pl.UTF-8
51Suil to lekka biblioteka C do ładowania i obudowywania interfejsów
52użytkownika (UI) wtyczek LV2.
53
54Suil umożliwia wczytanie UI dowolnego toolkitu do hosta
55wykorzystującego dowolny inny toolkit (zakładając, że oba toolkity są
56obsługiwane prez Suil). Hosty nie muszą być budowane z obsługą obcych
57bibliotek toolkitów, aby można było używać UI napisanego z użyciem
58danego toolkitu (Suil wykonuje całą potrzebną magię w czasie działania
59przy użyciu modułów ładowanych dynamicznie). API jest zaprojektowane
60tak, że hosty nie muszą jawnie obsługiwać konkretnego toolkitu - jeśli
61Suil obsługuje ten toolkit, to wszystkie hosty wykorzystujące Suil
62będą obsługiwały ten toolkit za darmo.
63
64%package modules
65Summary: UI wrapper modules for suil library
66Summary(pl.UTF-8): Moduły obudowujące UI dla biblioteki suil
67Group: Libraries
68Requires: %{name} = %{version}-%{release}
1e3d6834 69%{?with_qt5:Requires: Qt5Widgets >= 5.1.0}
818e03bd 70%{?with_qt5:Requires: Qt5X11Extras >= 5.1.0}
1e3d6834
JB
71%{?with_gtk:Requires: gtk+2 >= 2:2.18.0}
72%{?with_gtk:Requires: gtk+3 >= 3.14.0}
ff9ca567
JB
73
74%description modules
75Dynamically loaded modules for suil library, allowing to use X11
76UIs in GTK+ or Qt host, GTK+ UI in Qt host, Qt UI in GTK+ host.
77
78%description modules -l pl.UTF-8
79Dynamicznie wczytywane moduły dla biblioteki suil, pozwalające na
80używanie interfejsów użytkownika X11 w hostach GTK+ lub Qt,
81interfejsów GTK+ w hostach Qt oraz interfejsów Qt w hostach GTK+.
82
83%package devel
84Summary: Header files for suil library
85Summary(pl.UTF-8): Pliki nagłówkowe biblioteki suil
86Group: Development/Libraries
87Requires: %{name} = %{version}-%{release}
818e03bd 88Requires: lv2-devel >= 1.18.3
ff9ca567
JB
89
90%description devel
91Header files for suil library.
92
93%description devel -l pl.UTF-8
94Pliki nagłówkowe biblioteki suil.
95
96%prep
97%setup -q
98
99%build
818e03bd
JB
100%meson build \
101 --default-library=shared \
102 %{!?with_apidocs:-Ddocs=disabled} \
103 %{!?with_gtk:-Dgtk2=disabled} \
104 %{!?with_gtk:-Dgtk3=disabled} \
105 %{!?with_qt5:-Dqt5=disabled}
106
107%ninja_build -C build
ff9ca567
JB
108
109%install
110rm -rf $RPM_BUILD_ROOT
111
818e03bd 112%ninja_install -C build
ff9ca567
JB
113
114%clean
115rm -rf $RPM_BUILD_ROOT
116
117%post -p /sbin/ldconfig
118%postun -p /sbin/ldconfig
119
120%files
121%defattr(644,root,root,755)
ae4c37ba 122%doc AUTHORS COPYING NEWS README.md
ff9ca567
JB
123%attr(755,root,root) %{_libdir}/libsuil-0.so.*.*.*
124%attr(755,root,root) %ghost %{_libdir}/libsuil-0.so.0
125%dir %{_libdir}/suil-0
126
127%files modules
128%defattr(644,root,root,755)
1e3d6834
JB
129%attr(755,root,root) %{_libdir}/suil-0/libsuil_x11.so
130%if %{with gtk}
ff9ca567 131%attr(755,root,root) %{_libdir}/suil-0/libsuil_x11_in_gtk2.so
ae4c37ba 132%attr(755,root,root) %{_libdir}/suil-0/libsuil_x11_in_gtk3.so
1e3d6834 133%endif
1e3d6834
JB
134%if %{with qt5}
135%attr(755,root,root) %{_libdir}/suil-0/libsuil_x11_in_qt5.so
136%endif
ff9ca567
JB
137
138%files devel
139%defattr(644,root,root,755)
140%attr(755,root,root) %{_libdir}/libsuil-0.so
141%{_includedir}/suil-0
142%{_pkgconfigdir}/suil-0.pc
This page took 0.156036 seconds and 5 git commands to generate.