]>
Commit | Line | Data |
---|---|---|
22857a58 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
51492891 | 4 | %bcond_without gui # mixer utility |
34b74357 | 5 | %bcond_with jack1 # use JACK 1 instead of JACK 2-pre |
22857a58 | 6 | # |
51492891 JB |
7 | Summary: Free FireWire audio driver library |
8 | Summary(pl.UTF-8): Wolnodostępna biblioteka sterownika dźwięku FireWire | |
22857a58 | 9 | Name: libffado |
affc0847 | 10 | Version: 2.2.1 |
59116fcb | 11 | Release: 4 |
51492891 | 12 | License: GPL v2 or GPL v3 |
22857a58 | 13 | Group: Libraries |
51492891 | 14 | #Source0Download: http://www.ffado.org/?q=node/5 |
9b8367ac | 15 | Source0: http://www.ffado.org/files/%{name}-%{version}.tgz |
affc0847 | 16 | # Source0-md5: e113d828835051f835fb4a329cb0cbd4 |
9b8367ac | 17 | Patch0: %{name}-api-doc-only.patch |
affc0847 | 18 | Patch1: detect-x32.patch |
53bb318a | 19 | Patch2: %{name}-c++.patch |
22857a58 | 20 | URL: http://www.ffado.org/ |
34b74357 | 21 | BuildRequires: alsa-lib-devel >= 0.9 |
9b8367ac | 22 | BuildRequires: dbus-c++-devel |
51492891 | 23 | BuildRequires: dbus-devel >= 1.0 |
22857a58 | 24 | BuildRequires: doxygen |
34b74357 JB |
25 | %if %{with jack1} |
26 | BuildRequires: jack-audio-connection-kit-devel >= 0.122.0 | |
27 | BuildRequires: jack-audio-connection-kit-devel < 1.9.0 | |
28 | %else | |
29 | BuildRequires: jack-audio-connection-kit-devel >= 1.9.9 | |
30 | %endif | |
31 | BuildRequires: libavc1394-devel >= 0.5.3 | |
9b8367ac | 32 | BuildRequires: libconfig-c++-devel |
22857a58 | 33 | BuildRequires: libiec61883-devel >= 1.1.0 |
34b74357 | 34 | BuildRequires: libraw1394-devel >= 2.0.5 |
e7370d4f | 35 | BuildRequires: libstdc++-devel >= 6:4.3 |
dd07d446 | 36 | BuildRequires: libxml++2-devel >= 2.13.0 |
34b74357 | 37 | BuildRequires: pkgconfig |
22857a58 | 38 | BuildRequires: scons |
51492891 JB |
39 | %if %{with apidocs} |
40 | BuildRequires: texlive-fonts-rsfs | |
22857a58 | 41 | BuildRequires: texlive-format-pdflatex |
51492891 JB |
42 | # for colortbl.sty |
43 | BuildRequires: texlive-latex-extend | |
44 | BuildRequires: texlive-makeindex | |
45 | # for ifxetex.sty needed by some package (texlive packaging error?) | |
46 | BuildRequires: texlive-xetex | |
47 | %endif | |
48 | %if %{with gui} | |
49 | BuildRequires: desktop-file-utils | |
50 | BuildRequires: python-PyQt4-devel-tools >= 4 | |
affc0847 | 51 | BuildRequires: python-PyQt4-uic >= 4 |
51492891 JB |
52 | BuildRequires: python-dbus-devel >= 0.82.0 |
53 | %endif | |
34b74357 JB |
54 | Requires: libavc1394 >= 0.5.3 |
55 | Requires: libiec61883 >= 1.1.0 | |
56 | Requires: libraw1394 >= 2.0.5 | |
dd07d446 | 57 | Requires: libxml++2 >= 2.13.0 |
51492891 | 58 | Suggests: qjackctl >= 0.2.20.10 |
22857a58 JR |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
61 | %description | |
62 | The FFADO project aims to provide a generic, open-source solution for | |
63 | the support of FireWire based audio devices for the Linux platform. | |
64 | It is the successor of the FreeBoB project. | |
65 | ||
51492891 JB |
66 | %description -l pl.UTF-8 |
67 | Celem projektu FFADO jest dostarczenie ogólnego, mającego otwarte | |
68 | źródła rozwiązania do obsługi urządzeń dźwiękowych FireWire pod | |
69 | Linuksem. Projekt jest następcą projektu FireBoB. | |
22857a58 JR |
70 | |
71 | %package devel | |
72 | Summary: Header files for FFADO library | |
73 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FFADO | |
74 | Group: Development/Libraries | |
75 | Requires: %{name} = %{version}-%{release} | |
51492891 | 76 | Obsoletes: libffado-static |
22857a58 JR |
77 | |
78 | %description devel | |
79 | Header files for FFADO library. | |
80 | ||
81 | %description devel -l pl.UTF-8 | |
82 | Pliki nagłówkowe biblioteki FFADO. | |
83 | ||
22857a58 JR |
84 | %package apidocs |
85 | Summary: FFADO API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API biblioteki FFADO | |
87 | Group: Documentation | |
88 | ||
89 | %description apidocs | |
90 | API and internal documentation for FFADO library. | |
91 | ||
92 | %description apidocs -l pl.UTF-8 | |
93 | Dokumentacja API biblioteki FFADO. | |
94 | ||
51492891 JB |
95 | %package diag |
96 | Summary: FFADO diagnostic utility | |
97 | Summary(pl.UTF-8): Narzędzie diagnostyczne FFADO | |
98 | Group: Applications/Sound | |
99 | Requires: %{name} = %{version}-%{release} | |
100 | ||
101 | %description diag | |
102 | FFADO diagnostic utility written in Python. | |
103 | ||
104 | %description diag -l pl.UTF-8 | |
105 | Narzędzie diagnostyczne FFADO napisane w Pythonie. | |
106 | ||
107 | %package gui | |
108 | Summary: Graphical mixer utility | |
109 | Summary(pl.UTF-8): Graficzny mikser | |
110 | Group: X11/Applications/Sound | |
9b8367ac | 111 | Requires(post,postun): desktop-file-utils |
51492891 | 112 | Requires: %{name} = %{version}-%{release} |
9b8367ac JR |
113 | Requires: gtk-update-icon-cache |
114 | Requires: hicolor-icon-theme | |
51492891 JB |
115 | Requires: python-PyQt4 >= 4 |
116 | Requires: python-dbus >= 0.82.0 | |
117 | ||
118 | %description gui | |
119 | Graphical mixer utility for FFADO. | |
120 | ||
121 | %description gui -l pl.UTF-8 | |
122 | Graficzny mikser dla FFADO. | |
123 | ||
22857a58 JR |
124 | %prep |
125 | %setup -q | |
9b8367ac | 126 | %patch0 -p1 |
affc0847 | 127 | %patch1 -p1 |
53bb318a | 128 | %patch2 -p1 |
22857a58 JR |
129 | |
130 | %build | |
53bb318a | 131 | # libxml++ 2.40+ requires C++ 11 |
22857a58 | 132 | %{__scons} \ |
53bb318a | 133 | COMPILE_FLAGS="%{rpmcxxflags} -std=gnu++0x" \ |
34b74357 | 134 | ENABLE_ALL=True \ |
22857a58 | 135 | PREFIX=%{_prefix} \ |
9b8367ac | 136 | MANDIR=%{_mandir} \ |
bc056d17 JB |
137 | LIBDIR=%{_libdir} \ |
138 | PYPKGDIR=%{py_sitescriptdir} | |
22857a58 JR |
139 | |
140 | %if %{with apidocs} | |
141 | %{__scons} doc | |
22857a58 JR |
142 | %endif |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_iconsdir}/hicolor/64x64/apps} | |
147 | ||
22857a58 JR |
148 | %{__scons} install \ |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
34b74357 JB |
151 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/test-* |
152 | ||
51492891 | 153 | %if %{with gui} |
9b8367ac | 154 | # scons sucks |
22857a58 JR |
155 | desktop-file-install --dir $RPM_BUILD_ROOT%{_desktopdir} support/xdg/ffado.org-ffadomixer.desktop |
156 | ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ | |
157 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/ffado.png | |
9b8367ac JR |
158 | |
159 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
160 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
161 | %py_postclean | |
51492891 | 162 | %endif |
22857a58 JR |
163 | |
164 | %clean | |
165 | rm -rf $RPM_BUILD_ROOT | |
166 | ||
51492891 JB |
167 | %post -p /sbin/ldconfig |
168 | %postun -p /sbin/ldconfig | |
169 | ||
170 | %post gui | |
22857a58 JR |
171 | %update_desktop_database_post |
172 | %update_icon_cache hicolor | |
173 | ||
51492891 | 174 | %postun gui |
22857a58 JR |
175 | %update_desktop_database_postun |
176 | %update_icon_cache hicolor | |
177 | ||
178 | %files | |
179 | %defattr(644,root,root,755) | |
51492891 | 180 | %doc AUTHORS ChangeLog README |
9b8367ac | 181 | %attr(755,root,root) %{_bindir}/dumpiso_mod |
51492891 JB |
182 | %attr(755,root,root) %{_bindir}/ffado-bridgeco-downloader |
183 | %attr(755,root,root) %{_bindir}/ffado-dbus-server | |
9b8367ac | 184 | %attr(755,root,root) %{_bindir}/ffado-dice-firmware |
51492891 | 185 | %attr(755,root,root) %{_bindir}/ffado-fireworks-downloader |
9b8367ac | 186 | %attr(755,root,root) %{_bindir}/ffado-set-nickname |
51492891 JB |
187 | %attr(755,root,root) %{_bindir}/ffado-test |
188 | %attr(755,root,root) %{_bindir}/ffado-test-isorecv | |
189 | %attr(755,root,root) %{_bindir}/ffado-test-isoxmit | |
190 | %attr(755,root,root) %{_bindir}/ffado-test-streaming | |
9b8367ac JR |
191 | %attr(755,root,root) %{_bindir}/ffado-test-streaming-ipc |
192 | %attr(755,root,root) %{_bindir}/ffado-test-streaming-ipcclient | |
193 | %attr(755,root,root) %{_bindir}/gen-loadpulses | |
194 | %attr(755,root,root) %{_bindir}/scan-devreg | |
195 | %attr(755,root,root) %{_bindir}/set-default-router-config-dice-eap | |
196 | %attr(755,root,root) %{_bindir}/unmute-ozonic | |
22857a58 | 197 | %attr(755,root,root) %{_libdir}/libffado.so.*.*.* |
51492891 JB |
198 | %attr(755,root,root) %ghost %{_libdir}/libffado.so.2 |
199 | %dir %{_datadir}/%{name} | |
9b8367ac JR |
200 | %{_datadir}/libffado/fw410.xml |
201 | %{_datadir}/libffado/fwap.xml | |
202 | %{_datadir}/libffado/refdesign.xml | |
51492891 JB |
203 | %{_datadir}/%{name}/configuration |
204 | %dir %{_datadir}/%{name}/python | |
9b8367ac JR |
205 | %{_mandir}/man1/ffado-bridgeco-downloader.1* |
206 | %{_mandir}/man1/ffado-dbus-server.1* | |
207 | %{_mandir}/man1/ffado-diag.1* | |
208 | %{_mandir}/man1/ffado-dice-firmware.1* | |
209 | %{_mandir}/man1/ffado-fireworks-downloader.1* | |
210 | %{_datadir}/dbus-1/services/org.ffado.Control.service | |
211 | /lib/udev/rules.d/60-ffado.rules | |
22857a58 JR |
212 | |
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
51492891 | 215 | %attr(755,root,root) %{_libdir}/libffado.so |
22857a58 JR |
216 | %{_includedir}/libffado |
217 | %{_pkgconfigdir}/libffado.pc | |
218 | ||
22857a58 JR |
219 | %if %{with apidocs} |
220 | %files apidocs | |
221 | %defattr(644,root,root,755) | |
9b8367ac | 222 | %doc doc/reference/html doc/reference/html/* |
22857a58 | 223 | %endif |
51492891 JB |
224 | |
225 | %files diag | |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_bindir}/ffado-diag | |
228 | %{_datadir}/%{name}/python/ffado_diag_helpers.py | |
229 | %{_datadir}/%{name}/python/helpstrings.py | |
230 | %{_datadir}/%{name}/python/listirqinfo.py | |
231 | %{_datadir}/%{name}/python/static_info.txt | |
232 | ||
233 | %if %{with gui} | |
234 | %files gui | |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_bindir}/ffado-mixer | |
237 | %{_datadir}/%{name}/icons | |
9b8367ac | 238 | %{py_sitescriptdir}/ffado |
51492891 JB |
239 | %{_desktopdir}/ffado.org-ffadomixer.desktop |
240 | %{_iconsdir}/hicolor/*/apps/ffado.png | |
9b8367ac | 241 | %{_mandir}/man1/ffado-mixer.1* |
51492891 | 242 | %endif |