3 %bcond_without apidocs # API documentation
5 Summary: Library for processing digital sample based MIDI instrument "patch" files
6 Summary(pl.UTF-8): Biblioteka do przetwarzania plików "wstawek" instrumentów MIDI opartych na próbkach cyfrowych
12 #Source0Download: https://github.com/swami/libinstpatch/releases
13 Source0: https://github.com/swami/libinstpatch/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: e2b4a0867a72e464aab0fd7dae9c1abe
15 Patch0: %{name}-gtkdoc.patch
16 URL: http://www.swamiproject.org/
17 BuildRequires: cmake >= 2.6.3
18 BuildRequires: glib2-devel >= 1:2.14
19 #BuildRequires: gobject-introspection-devel
20 %{?with_apidocs:BuildRequires: gtk-doc}
21 BuildRequires: libsndfile-devel >= 1.0.0
22 BuildRequires: pkgconfig
23 BuildRequires: rpmbuild(macros) >= 1.752
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 libInstPatch stands for lib-Instrument-Patch and is a library for
28 processing digital sample based MIDI instrument "patch" files. The
29 types of files libInstPatch supports are used for creating instrument
30 sounds for wavetable synthesis. libInstPatch provides an object
31 framework (based on GObject) to load patch files into, which can then
32 be edited, converted, compressed and saved.
34 %description -l pl.UTF-8
35 libInstPatch to skrót od lib-Instrument-Patch i jest to biblioteka do
36 przetwarzania opartych na próbkach cyfrowych plików wstawek ("patchy")
37 instrumentów MIDI. Typy plików, jakie obsługuje libInstPatch, służą do
38 tworzenia dźwięków instrumentów do syntezy wavetable. libInstPatch
39 zapewnia szkielet obiektowy (oparty na GObject) do ładowania plików
40 próbek, które następnie mogą być modyfikowane, konwertowane,
41 kompresowane i zapisywane.
44 Summary: Header files for libinstpatch library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libinstpatch
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: glib2-devel >= 1:2.14
49 Requires: libsndfile-devel >= 1.0.0
52 Header files for libinstpatch library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki libinstpatch.
58 Summary: API documentation for libinstpatch library
59 Summary(pl.UTF-8): Dokumentacja API biblioteki libinstpatch
64 API documentation for libinstpatch library.
66 %description apidocs -l pl.UTF-8
67 Dokumentacja API biblioteki libinstpatch.
77 %{?with_apidocs:-DGTKDOC_ENABLED=ON}
78 # -DINTROSPECTION_ENABLED=ON broken cmake support in 1.1.[35]
83 rm -rf $RPM_BUILD_ROOT
85 %{__make} -C build install \
86 DESTDIR=$RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_gtkdocdir}/libinstpatch
90 cp -p build/docs/reference/libinstpatch/html/* $RPM_BUILD_ROOT%{_gtkdocdir}/libinstpatch
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc AUTHORS README.md TODO.tasks
102 %attr(755,root,root) %{_libdir}/libinstpatch-1.0.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libinstpatch-1.0.so.2
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libinstpatch-1.0.so
108 %{_includedir}/libinstpatch-2
109 %{_pkgconfigdir}/libinstpatch-1.0.pc
113 %defattr(644,root,root,755)
114 %{_gtkdocdir}/libinstpatch