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