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