]> git.pld-linux.org Git - packages/libinstpatch.git/blob - libinstpatch.spec
b72719a18c43e3bddbc7461e169b0bd6fd1591a7
[packages/libinstpatch.git] / libinstpatch.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # API documentation
4
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
7 Name:           libinstpatch
8 Version:        1.1.5
9 Release:        1
10 License:        LGPL v2.1
11 Group:          Libraries
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)
25
26 %description
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.
33
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.
42
43 %package devel
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
50
51 %description devel
52 Header files for libinstpatch library.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki libinstpatch.
56
57 %package apidocs
58 Summary:        API documentation for libinstpatch library
59 Summary(pl.UTF-8):      Dokumentacja API biblioteki libinstpatch
60 Group:          Documentation
61 BuildArch:      noarch
62
63 %description apidocs
64 API documentation for libinstpatch library.
65
66 %description apidocs -l pl.UTF-8
67 Dokumentacja API biblioteki libinstpatch.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72
73 %build
74 install -d build
75 cd build
76 %cmake .. \
77         %{?with_apidocs:-DGTKDOC_ENABLED=ON}
78 #       -DINTROSPECTION_ENABLED=ON broken cmake support in 1.1.[35]
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} -C build install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %if %{with apidocs}
89 install -d $RPM_BUILD_ROOT%{_gtkdocdir}/libinstpatch
90 cp -p build/docs/reference/libinstpatch/html/* $RPM_BUILD_ROOT%{_gtkdocdir}/libinstpatch
91 %endif
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
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
104
105 %files devel
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
110
111 %if %{with apidocs}
112 %files apidocs
113 %defattr(644,root,root,755)
114 %{_gtkdocdir}/libinstpatch
115 %endif
This page took 0.070958 seconds and 2 git commands to generate.