]>
Commit | Line | Data |
---|---|---|
f640f19e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without flac # FLAC files support | |
4 | # | |
083c7a74 | 5 | Summary: Audio File Library - SGI Audio File Library |
53a88384 ER |
6 | Summary(es.UTF-8): Biblioteca para manipulación de varios archivos de sonido |
7 | Summary(pl.UTF-8): Biblioteka Audio File - implementacja SGI Audio File Library | |
8 | Summary(pt_BR.UTF-8): Biblioteca para manipular vários formatos de arquivos de áudio | |
9 | Summary(ru.UTF-8): Библиотека работы с разными форматами аудио-файлов | |
10 | Summary(uk.UTF-8): Бібліотека роботи з різними форматами аудіо-файлів | |
083c7a74 | 11 | Name: audiofile |
f640f19e | 12 | Version: 0.3.6 |
52be93ba | 13 | Release: 3 |
23e518ad | 14 | Epoch: 1 |
f640f19e | 15 | License: LGPL v2.1+ |
c83f2820 | 16 | Group: Libraries |
e88ff38f | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/audiofile/0.3/%{name}-%{version}.tar.xz |
f640f19e | 18 | # Source0-md5: 235dde14742317328f0109e9866a8008 |
e88ff38f | 19 | Patch0: libm.patch |
8a53b99c | 20 | Patch1: gcc6.patch |
1c67c1bd | 21 | URL: http://www.68k.org/~michael/audiofile/ |
4cf0c961 | 22 | BuildRequires: asciidoc |
50dbcb8c | 23 | BuildRequires: autoconf >= 2.50 |
a82f49d6 | 24 | BuildRequires: automake |
f640f19e | 25 | %{?with_flac:BuildRequires: flac-devel >= 1.2.1} |
50dbcb8c JB |
26 | BuildRequires: libstdc++-devel |
27 | BuildRequires: libtool >= 2:1.5 | |
bf24bc2c JB |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
f640f19e | 30 | %{?with_flac:Requires: flac >= 1.2.1} |
083c7a74 | 31 | Obsoletes: libaudiofile |
ea2b99f3 | 32 | Obsoletes: libaudiofile0 |
9ea166bc | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
083c7a74 | 34 | |
e88ff38f | 35 | %define specflags -Wno-unused-but-set-variable |
5ef32379 | 36 | |
083c7a74 | 37 | %description |
675af6bd | 38 | This Audio File Library is an implementation of the SGI Audio File |
39 | library. Since the latter is specified ambiguously in places, I've | |
40 | taken some liberties in interpreting certain such ambiguities. At the | |
41 | present, not all features of the SGI Audio File library are | |
42 | implemented. I feel, though, that this implementation of the Audio | |
43 | File Library offers enough functionality to be useful for general | |
44 | tasks. This library allows the processing of audio data to and from | |
45 | audio files of many common formats (currently AIFF, AIFC, WAVE, and | |
46 | NeXT/Sun). | |
083c7a74 | 47 | |
2c74a423 JR |
48 | %description -l es.UTF-8 |
49 | La Biblioteca de Archivos de Audio es una implementación parcial de la | |
d4c72e6a | 50 | biblioteca de Archivos de Audio SGI. Dicha biblioteca permite el |
51 | procesado de datos de audio desde y para archivos de audio de los | |
2c74a423 | 52 | formatos más comunes (actualmente AIFF, AIFC, WAVE, y NeXT/Sun). |
d4c72e6a | 53 | |
2c74a423 | 54 | Este software no está completo y está todavía desarrollándose. Muchos |
d4c72e6a | 55 | formatos de archivo de sonido funcionan correctamente. Otros no tanto. |
56 | ||
2c74a423 JR |
57 | %description -l pl.UTF-8 |
58 | Biblioteka Audio File jest implementacją biblioteki SGI Audio File. | |
59 | Przy jej pomocy można przetwarzać dźwięki w różnych formatach (AIFF, | |
675af6bd | 60 | AIFC, WAVE i NeXT/Sun). |
083c7a74 | 61 | |
2c74a423 JR |
62 | %description -l pt_BR.UTF-8 |
63 | A biblioteca Audio File é uma implementação parcial da bibliotca Audio | |
64 | File da SGI. Ela provê processamento de dados de áudio de e para | |
65 | vários formatos comuns (atualmente AIFF, AIFC, WAVE e NeXT/Sun). | |
d4c72e6a | 66 | |
2c74a423 JR |
67 | Este software não está completo e ainda está em desenvolvimento. |
68 | Muitos formatos funcionam bem, outros ainda não. | |
d4c72e6a | 69 | |
2c74a423 JR |
70 | %description -l ru.UTF-8 |
71 | Библиотека работы с разными форматами фудио-файлов. Используется | |
72 | демоном esound. | |
b03cc14b | 73 | |
2c74a423 JR |
74 | %description -l uk.UTF-8 |
75 | Бібліотека роботи з різними форматами аудіо-файлів. Використовується | |
76 | демоном esound. | |
b03cc14b | 77 | |
d4c72e6a | 78 | %package progs |
91093377 | 79 | Summary: Audiofile programs |
53a88384 ER |
80 | Summary(pl.UTF-8): Programy audiofile |
81 | Summary(pt_BR.UTF-8): Programas que acompanham a biblioteca audiofile | |
9ea166bc | 82 | License: GPL v2+ |
d4c72e6a | 83 | Group: Applications/Sound |
9ea166bc | 84 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d4c72e6a | 85 | |
86 | %description progs | |
87 | audiofile applications. | |
88 | ||
2c74a423 | 89 | %description progs -l pl.UTF-8 |
91093377 TP |
90 | Programy audiofile. |
91 | ||
2c74a423 | 92 | %description progs -l pt_BR.UTF-8 |
d4c72e6a | 93 | Programas que acompanham a audiofile. |
94 | ||
05d511e9 | 95 | %package devel |
a82f49d6 | 96 | Summary: Header and other files to develop Audio File applications |
53a88384 ER |
97 | Summary(es.UTF-8): Archivos de inclusión y otros archivos para el desarrollo de aplicaciones audiofile |
98 | Summary(pl.UTF-8): Pliki nagłówkowe i inne potrzebe do Audio File | |
99 | Summary(pt_BR.UTF-8): Arquivos de inclusão e outros arquivos para desenvolver aplicativos audiofile | |
100 | Summary(ru.UTF-8): Файлы для разработки приложений с использованием audiofile | |
101 | Summary(uk.UTF-8): Файли для розробки прикладних програм з використанням audiofile | |
083c7a74 | 102 | Group: Development/Libraries |
f5b38397 | 103 | Requires: %{name} = %{epoch}:%{version}-%{release} |
f640f19e | 104 | %{?with_flac:Requires: flac-devel >= 1.2.1} |
50dbcb8c | 105 | Requires: libstdc++-devel |
083c7a74 | 106 | Obsoletes: libaudiofile-devel |
ea2b99f3 | 107 | Obsoletes: libaudiofile0-devel |
083c7a74 | 108 | |
109 | %description devel | |
a82f49d6 | 110 | Header and other files to develop Audio File applications. |
083c7a74 | 111 | |
2c74a423 JR |
112 | %description devel -l pl.UTF-8 |
113 | Pliki nagłówkowe biblioteki Audio File, czyli to, co jest potrzebne do | |
114 | tworzenia aplikacji korzystających z tej biblioteki. | |
083c7a74 | 115 | |
2c74a423 JR |
116 | %description devel -l es.UTF-8 |
117 | Archivos de inclusión y otros archivos para el desarrollo de | |
a82f49d6 | 118 | aplicaciones audiofile. |
d4c72e6a | 119 | |
2c74a423 JR |
120 | %description devel -l pt_BR.UTF-8 |
121 | Arquivos de inclusão e outros arquivos para desenvolver aplicativos | |
a82f49d6 | 122 | audiofile. |
d4c72e6a | 123 | |
2c74a423 JR |
124 | %description devel -l ru.UTF-8 |
125 | .h-файлы и пр. для разработки приложений с использованием audiofile. | |
b03cc14b | 126 | |
2c74a423 JR |
127 | %description devel -l uk.UTF-8 |
128 | .h-файли та інше для розробки прикладних програм з використанням | |
b03cc14b | 129 | audiofile. |
130 | ||
05d511e9 | 131 | %package static |
083c7a74 | 132 | Summary: Static libaudiofile libraries |
53a88384 ER |
133 | Summary(pl.UTF-8): Biblioteka statyczne libaudiofile |
134 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com audiofile | |
135 | Summary(ru.UTF-8): Статические библиотеки для разработки приложений с использованием audiofile | |
136 | Summary(uk.UTF-8): Статичні бібліотеки для розробки прикладних програм з використанням audiofile | |
083c7a74 | 137 | Group: Development/Libraries |
f5b38397 | 138 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
083c7a74 | 139 | Obsoletes: libaudiofile-static |
140 | ||
141 | %description static | |
9e27fe3b | 142 | Static libaudiofile libraries. |
083c7a74 | 143 | |
2c74a423 | 144 | %description static -l pl.UTF-8 |
919cf9ea | 145 | Biblioteki statyczne libaudiofile. |
083c7a74 | 146 | |
2c74a423 JR |
147 | %description static -l pt_BR.UTF-8 |
148 | Bibliotecas estáticas para desenvolvimento com audiofile | |
d4c72e6a | 149 | |
2c74a423 JR |
150 | %description static -l ru.UTF-8 |
151 | Статические библиотеки для разработки приложений с использованием | |
b03cc14b | 152 | audiofile. |
153 | ||
2c74a423 JR |
154 | %description static -l uk.UTF-8 |
155 | Статичні бібліотеки для розробки прикладних програм з використанням | |
b03cc14b | 156 | audiofile. |
157 | ||
083c7a74 | 158 | %prep |
159 | %setup -q | |
e88ff38f | 160 | %patch0 -p1 |
8a53b99c | 161 | %patch1 -p1 |
083c7a74 | 162 | |
163 | %build | |
e88ff38f AF |
164 | %{__libtoolize} |
165 | %{__aclocal} | |
166 | %{__autoconf} | |
167 | %{__autoheader} | |
168 | %{__automake} | |
1c67c1bd | 169 | %configure \ |
f640f19e | 170 | %{!?with_flac:--disable-flac} \ |
1c67c1bd | 171 | --enable-largefile |
c2d6327b | 172 | %{__make} |
083c7a74 | 173 | |
174 | %install | |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
10607d95 | 177 | %{__make} install \ |
1c67c1bd | 178 | DESTDIR=$RPM_BUILD_ROOT |
083c7a74 | 179 | |
083c7a74 | 180 | %clean |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
05478136 JB |
183 | %post -p /sbin/ldconfig |
184 | %postun -p /sbin/ldconfig | |
185 | ||
083c7a74 | 186 | %files |
187 | %defattr(644,root,root,755) | |
9ea166bc JB |
188 | %doc ACKNOWLEDGEMENTS AUTHORS ChangeLog NEWS NOTES README TODO |
189 | %attr(755,root,root) %{_libdir}/libaudiofile.so.*.*.* | |
242c372a | 190 | %attr(755,root,root) %ghost %{_libdir}/libaudiofile.so.1 |
083c7a74 | 191 | |
d4c72e6a | 192 | %files progs |
193 | %defattr(644,root,root,755) | |
89ed98b4 | 194 | %attr(755,root,root) %{_bindir}/sfconvert |
195 | %attr(755,root,root) %{_bindir}/sfinfo | |
50dbcb8c JB |
196 | %{_mandir}/man1/sfconvert.1* |
197 | %{_mandir}/man1/sfinfo.1* | |
083c7a74 | 198 | |
199 | %files devel | |
200 | %defattr(644,root,root,755) | |
9ea166bc JB |
201 | %attr(755,root,root) %{_libdir}/libaudiofile.so |
202 | %{_libdir}/libaudiofile.la | |
203 | %{_includedir}/af_vfs.h | |
204 | %{_includedir}/audiofile.h | |
205 | %{_includedir}/aupvlist.h | |
9ea166bc | 206 | %{_pkgconfigdir}/audiofile.pc |
50dbcb8c | 207 | %{_mandir}/man3/af*.3* |
083c7a74 | 208 | |
209 | %files static | |
4d69ad4f | 210 | %defattr(644,root,root,755) |
9ea166bc | 211 | %{_libdir}/libaudiofile.a |