]>
Commit | Line | Data |
---|---|---|
e991aa6f SS |
1 | # TODO: |
2 | # - compare flac.patch with Fedora/Gentoo equivalent | |
3 | # - who needs sndfile-regtest? | |
19550c7f KK |
4 | # |
5 | # Conditional build: | |
e991aa6f | 6 | %bcond_with regtest # build sndfile-regtest program |
19550c7f | 7 | %bcond_without static_libs # don't build static library |
55badcef | 8 | %bcond_without tests # don't build tests |
19550c7f | 9 | # |
1dcb9798 | 10 | Summary: C library for reading and writing files containing sampled sound |
99339b5d | 11 | Summary(pl.UTF-8): Biblioteka obsługi plików dźwiękowych |
1dcb9798 | 12 | Name: libsndfile |
2f051b7f | 13 | Version: 1.0.17 |
e991aa6f | 14 | Release: 4 |
a438ce96 | 15 | License: LGPL v2.1+ |
2a9e2d9d | 16 | Vendor: Erik de Castro Lopo <erikd@zip.com.au> |
1dcb9798 | 17 | Group: Development/Libraries |
900cee8f | 18 | Source0: http://www.mega-nerd.com/libsndfile/%{name}-%{version}.tar.gz |
2f051b7f | 19 | # Source0-md5: 2d126c35448503f6dbe33934d9581f6b |
92edf427 | 20 | Patch0: %{name}-flac.patch |
e991aa6f | 21 | Patch1: %{name}-flac_buffer_overflow.patch |
f967ffbb | 22 | URL: http://www.mega-nerd.com/libsndfile/ |
19550c7f | 23 | BuildRequires: alsa-lib-devel |
238da168 | 24 | BuildRequires: autoconf >= 2.54 |
16af1fdc | 25 | BuildRequires: automake |
92edf427 | 26 | BuildRequires: flac-devel >= 1.1.3 |
55badcef | 27 | %{?with_tests:BuildRequires: libstdc++-devel} |
487276e9 | 28 | BuildRequires: libtool |
19550c7f | 29 | BuildRequires: pkgconfig |
55badcef | 30 | BuildRequires: sed >= 4.0 |
e991aa6f | 31 | %{?with_regtest:BuildRequires: sqlite3-devel} |
3d5577b2 | 32 | Obsoletes: libsndfile1 |
ae214341 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1dcb9798 AM |
34 | |
35 | %description | |
a6cdcff3 | 36 | Libsndfile is a C library for reading and writing files containing |
37 | sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) | |
38 | through one standard library interface. | |
1dcb9798 | 39 | |
66b8034c JR |
40 | %description -l pl.UTF-8 |
41 | Libsndfile to biblioteką napisaną w C, służąca do czytania i | |
42 | zapisywania plików zawierających zsamplowany dźwięk (np. w formacie MS | |
a6cdcff3 | 43 | Windows WAV czy Apple/SGI AIFF) poprzez jednolity, standardowy |
44 | interfejs. | |
0ee4787d | 45 | |
1dcb9798 AM |
46 | %package devel |
47 | Summary: libsndfile header files and development documentation | |
99339b5d | 48 | Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja do libsndfile |
1dcb9798 | 49 | Group: Development/Libraries |
f967ffbb | 50 | Requires: %{name} = %{version}-%{release} |
900cee8f | 51 | Requires: flac-devel >= 1.1.1 |
3d5577b2 | 52 | Obsoletes: libsndfile1-devel |
1dcb9798 AM |
53 | |
54 | %description devel | |
55 | Header files and development documentation for libsndfile. | |
56 | ||
66b8034c JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe oraz dokumentacja do biblioteki libsndfile. | |
1dcb9798 AM |
59 | |
60 | %package static | |
61 | Summary: libsndfile static libraries | |
99339b5d | 62 | Summary(pl.UTF-8): Biblioteki statyczne libsndfile |
1dcb9798 | 63 | Group: Development/Libraries |
f967ffbb | 64 | Requires: %{name}-devel = %{version}-%{release} |
1dcb9798 AM |
65 | |
66 | %description static | |
67 | libsndfile static libraries. | |
68 | ||
66b8034c | 69 | %description static -l pl.UTF-8 |
1dcb9798 AM |
70 | Biblioteki statyczne libsndfile. |
71 | ||
bcbe612a SZ |
72 | %package octave |
73 | Summary: libsndfile modules for octave | |
99339b5d | 74 | Summary(pl.UTF-8): Moduły libsndfile dla octave |
bcbe612a | 75 | Group: Applications/Math |
b171006e | 76 | Requires: %{name} = %{version}-%{release} |
bcbe612a SZ |
77 | Requires: octave |
78 | ||
79 | %description octave | |
912639bd | 80 | A couple of script files for loading, saving, and playing sound files |
81 | from within Octave. | |
bcbe612a | 82 | |
66b8034c JR |
83 | %description octave -l pl.UTF-8 |
84 | Kilka skryptów Octave do ładowania, zapisywania i odtwarzania plików | |
85 | dźwiękowych. | |
bcbe612a | 86 | |
e991aa6f SS |
87 | %package progs |
88 | Summary: libsndfile utility programs | |
89 | Summary(pl.UTF-8): Narzędzia korzystające z biblioteki libsndfile | |
90 | Group: Applications/Graphics | |
91 | ||
92 | %description progs | |
93 | libsndfile utility programs: | |
94 | - sndfile-convert − convert a sound files from one format to another | |
95 | - sndfile-info − display information about a sound file | |
96 | - sndfile-play − play a sound file | |
97 | ||
98 | %description progs -l pl.UTF-8 | |
99 | Narzędzia z biblioteki libsndfile: | |
100 | - sndfile-convert - kowertertuje pliki dźwiękowe | |
101 | - sndfile-info - wyświetla informacje o pliku dźwiękowym | |
102 | - sndfile-play - odtwarza pliki dźwiękowe | |
103 | ||
1dcb9798 AM |
104 | %prep |
105 | %setup -q | |
92edf427 | 106 | %patch0 -p1 |
e991aa6f | 107 | %patch1 -p1 |
1dcb9798 | 108 | |
55badcef KK |
109 | %if %{without tests} |
110 | %{__sed} -i 's, tests$,,' Makefile.am | |
111 | %endif | |
112 | ||
1dcb9798 | 113 | %build |
92de6080 | 114 | %{__libtoolize} |
40864d79 | 115 | %{__aclocal} |
4a72fafe | 116 | %{__autoconf} |
4a72fafe | 117 | %{__automake} |
19550c7f KK |
118 | %configure \ |
119 | %{!?with_static_libs:--disable-static} \ | |
e991aa6f | 120 | %{!?with_regtest:--disable-sqlite} |
19550c7f | 121 | |
8af0f3e0 | 122 | %{__make} |
e991aa6f | 123 | %{?with_tests: %{__make} test} |
1dcb9798 AM |
124 | |
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
0ee4787d | 127 | |
9c3ecd17 PG |
128 | %{__make} install \ |
129 | DESTDIR=$RPM_BUILD_ROOT | |
0ee4787d | 130 | |
8c0d9fea JB |
131 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev |
132 | ||
1dcb9798 AM |
133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %post -p /sbin/ldconfig | |
137 | %postun -p /sbin/ldconfig | |
138 | ||
139 | %files | |
140 | %defattr(644,root,root,755) | |
8c0d9fea | 141 | %doc AUTHORS ChangeLog NEWS README TODO |
92edf427 | 142 | %attr(755,root,root) %{_libdir}/libsndfile.so.*.* |
1dcb9798 AM |
143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
3b7944d6 | 146 | %doc doc/*.html doc/*.jpg doc/new_file_type.HOWTO |
92edf427 JB |
147 | %attr(755,root,root) %{_libdir}/libsndfile.so |
148 | %{_libdir}/libsndfile.la | |
149 | %{_includedir}/sndfile.h* | |
150 | %{_pkgconfigdir}/sndfile.pc | |
1dcb9798 | 151 | |
19550c7f | 152 | %if %{with static_libs} |
1dcb9798 | 153 | %files static |
a6cdcff3 | 154 | %defattr(644,root,root,755) |
92edf427 | 155 | %{_libdir}/libsndfile.a |
19550c7f | 156 | %endif |
bcbe612a SZ |
157 | |
158 | %files octave | |
159 | %defattr(644,root,root,755) | |
160 | %{_datadir}/octave/site/m/* | |
e991aa6f SS |
161 | |
162 | %files progs | |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_bindir}/sndfile-convert | |
165 | %attr(755,root,root) %{_bindir}/sndfile-info | |
166 | %attr(755,root,root) %{_bindir}/sndfile-play | |
167 | %{_mandir}/man1/sndfile-*.1* |