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