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