]> git.pld-linux.org Git - packages/audiofile.git/blob - audiofile.spec
debian patch for fixing build with gcc >= 6
[packages/audiofile.git] / audiofile.spec
1 #
2 # Conditional build:
3 %bcond_without  flac    # FLAC files support
4 #
5 Summary:        Audio File Library - SGI Audio File Library
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):      Бібліотека роботи з різними форматами аудіо-файлів
11 Name:           audiofile
12 Version:        0.3.6
13 Release:        3
14 Epoch:          1
15 License:        LGPL v2.1+
16 Group:          Libraries
17 Source0:        http://ftp.gnome.org/pub/GNOME/sources/audiofile/0.3/%{name}-%{version}.tar.xz
18 # Source0-md5:  235dde14742317328f0109e9866a8008
19 Patch0:         libm.patch
20 Patch1:         gcc6.patch
21 URL:            http://www.68k.org/~michael/audiofile/
22 BuildRequires:  asciidoc
23 BuildRequires:  autoconf >= 2.50
24 BuildRequires:  automake
25 %{?with_flac:BuildRequires:     flac-devel >= 1.2.1}
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libtool >= 2:1.5
28 BuildRequires:  tar >= 1:1.22
29 BuildRequires:  xz
30 %{?with_flac:Requires:  flac >= 1.2.1}
31 Obsoletes:      libaudiofile
32 Obsoletes:      libaudiofile0
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         specflags -Wno-unused-but-set-variable
36
37 %description
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).
47
48 %description -l es.UTF-8
49 La Biblioteca de Archivos de Audio es una implementación parcial de la
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
52 formatos más comunes (actualmente AIFF, AIFC, WAVE, y NeXT/Sun).
53
54 Este software no está completo y está todavía desarrollándose. Muchos
55 formatos de archivo de sonido funcionan correctamente. Otros no tanto.
56
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,
60 AIFC, WAVE i NeXT/Sun).
61
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).
66
67 Este software não está completo e ainda está em desenvolvimento.
68 Muitos formatos funcionam bem, outros ainda não.
69
70 %description -l ru.UTF-8
71 Библиотека работы с разными форматами фудио-файлов. Используется
72 демоном esound.
73
74 %description -l uk.UTF-8
75 Бібліотека роботи з різними форматами аудіо-файлів. Використовується
76 демоном esound.
77
78 %package progs
79 Summary:        Audiofile programs
80 Summary(pl.UTF-8):      Programy audiofile
81 Summary(pt_BR.UTF-8):   Programas que acompanham a biblioteca audiofile
82 License:        GPL v2+
83 Group:          Applications/Sound
84 Requires:       %{name} = %{epoch}:%{version}-%{release}
85
86 %description progs
87 audiofile applications.
88
89 %description progs -l pl.UTF-8
90 Programy audiofile.
91
92 %description progs -l pt_BR.UTF-8
93 Programas que acompanham a audiofile.
94
95 %package devel
96 Summary:        Header and other files to develop Audio File applications
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
102 Group:          Development/Libraries
103 Requires:       %{name} = %{epoch}:%{version}-%{release}
104 %{?with_flac:Requires:  flac-devel >= 1.2.1}
105 Requires:       libstdc++-devel
106 Obsoletes:      libaudiofile-devel
107 Obsoletes:      libaudiofile0-devel
108
109 %description devel
110 Header and other files to develop Audio File applications.
111
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.
115
116 %description devel -l es.UTF-8
117 Archivos de inclusión y otros archivos para el desarrollo de
118 aplicaciones audiofile.
119
120 %description devel -l pt_BR.UTF-8
121 Arquivos de inclusão e outros arquivos para desenvolver aplicativos
122 audiofile.
123
124 %description devel -l ru.UTF-8
125 .h-файлы и пр. для разработки приложений с использованием audiofile.
126
127 %description devel -l uk.UTF-8
128 .h-файли та інше для розробки прикладних програм з використанням
129 audiofile.
130
131 %package static
132 Summary:        Static libaudiofile libraries
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
137 Group:          Development/Libraries
138 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
139 Obsoletes:      libaudiofile-static
140
141 %description static
142 Static libaudiofile libraries.
143
144 %description static -l pl.UTF-8
145 Biblioteki statyczne libaudiofile.
146
147 %description static -l pt_BR.UTF-8
148 Bibliotecas estáticas para desenvolvimento com audiofile
149
150 %description static -l ru.UTF-8
151 Статические библиотеки для разработки приложений с использованием
152 audiofile.
153
154 %description static -l uk.UTF-8
155 Статичні бібліотеки для розробки прикладних програм з використанням
156 audiofile.
157
158 %prep
159 %setup -q
160 %patch0 -p1
161 %patch1 -p1
162
163 %build
164 %{__libtoolize}
165 %{__aclocal}
166 %{__autoconf}
167 %{__autoheader}
168 %{__automake}
169 %configure \
170         %{!?with_flac:--disable-flac} \
171         --enable-largefile
172 %{__make}
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176
177 %{__make} install \
178         DESTDIR=$RPM_BUILD_ROOT
179
180 %clean
181 rm -rf $RPM_BUILD_ROOT
182
183 %post   -p /sbin/ldconfig
184 %postun -p /sbin/ldconfig
185
186 %files
187 %defattr(644,root,root,755)
188 %doc ACKNOWLEDGEMENTS AUTHORS ChangeLog NEWS NOTES README TODO
189 %attr(755,root,root) %{_libdir}/libaudiofile.so.*.*.*
190 %attr(755,root,root) %ghost %{_libdir}/libaudiofile.so.1
191
192 %files progs
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/sfconvert
195 %attr(755,root,root) %{_bindir}/sfinfo
196 %{_mandir}/man1/sfconvert.1*
197 %{_mandir}/man1/sfinfo.1*
198
199 %files devel
200 %defattr(644,root,root,755)
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
206 %{_pkgconfigdir}/audiofile.pc
207 %{_mandir}/man3/af*.3*
208
209 %files static
210 %defattr(644,root,root,755)
211 %{_libdir}/libaudiofile.a
This page took 0.126519 seconds and 4 git commands to generate.