]>
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 |
4f3fc1b8 | 13 | Version: 1.0.25 |
d00279e5 | 14 | Release: 6 |
a438ce96 | 15 | License: LGPL v2.1+ |
8b67e6cc | 16 | Group: Libraries |
4f0a289c | 17 | Source0: http://www.mega-nerd.com/libsndfile/files/%{name}-%{version}.tar.gz |
4f3fc1b8 | 18 | # Source0-md5: e2b7bb637e01022c7d20f95f9c3990a2 |
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} |
7005f73b JB |
34 | Requires: flac >= 1.2.1 |
35 | Requires: libogg >= 2:1.1.3 | |
36 | Requires: libvorbis >= 1:1.2.3 | |
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} |
4f0a289c | 56 | Requires: flac-devel >= 1.2.1 |
7005f73b JB |
57 | Requires: libogg-devel >= 2:1.1.3 |
58 | Requires: libvorbis-devel >= 1:1.2.3 | |
3d5577b2 | 59 | Obsoletes: libsndfile1-devel |
1dcb9798 AM |
60 | |
61 | %description devel | |
62 | Header files and development documentation for libsndfile. | |
63 | ||
66b8034c JR |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe oraz dokumentacja do biblioteki libsndfile. | |
1dcb9798 AM |
66 | |
67 | %package static | |
68 | Summary: libsndfile static libraries | |
99339b5d | 69 | Summary(pl.UTF-8): Biblioteki statyczne libsndfile |
1dcb9798 | 70 | Group: Development/Libraries |
f967ffbb | 71 | Requires: %{name}-devel = %{version}-%{release} |
1dcb9798 AM |
72 | |
73 | %description static | |
74 | libsndfile static libraries. | |
75 | ||
66b8034c | 76 | %description static -l pl.UTF-8 |
1dcb9798 AM |
77 | Biblioteki statyczne libsndfile. |
78 | ||
e991aa6f SS |
79 | %package progs |
80 | Summary: libsndfile utility programs | |
81 | Summary(pl.UTF-8): Narzędzia korzystające z biblioteki libsndfile | |
9549b058 | 82 | Group: Applications/Sound |
373e2ff9 | 83 | Requires: %{name} = %{version}-%{release} |
e991aa6f SS |
84 | |
85 | %description progs | |
86 | libsndfile utility programs: | |
4f0a289c JB |
87 | - sndfile-convert - convert a sound files from one format to another |
88 | - sndfile-info - display information about a sound file | |
89 | - sndfile-play - play a sound file | |
e991aa6f SS |
90 | |
91 | %description progs -l pl.UTF-8 | |
92 | Narzędzia z biblioteki libsndfile: | |
93 | - sndfile-convert - kowertertuje pliki dźwiękowe | |
94 | - sndfile-info - wyświetla informacje o pliku dźwiękowym | |
95 | - sndfile-play - odtwarza pliki dźwiękowe | |
96 | ||
7005f73b JB |
97 | %package -n octave-sndfile |
98 | Summary: sndfile module for Octave | |
99 | Summary(pl.UTF-8): Moduł sndfile dla Octave | |
100 | Group: Applications/Math | |
101 | Requires: %{name} = %{version}-%{release} | |
102 | Requires: octave | |
103 | Obsoletes: libsndfile-octave | |
104 | ||
105 | %description -n octave-sndfile | |
106 | A couple of script files for loading, saving, and playing sound files | |
107 | from within Octave. | |
108 | ||
109 | %description -n octave-sndfile -l pl.UTF-8 | |
110 | Kilka skryptów Octave do ładowania, zapisywania i odtwarzania plików | |
111 | dźwiękowych. | |
112 | ||
1dcb9798 AM |
113 | %prep |
114 | %setup -q | |
02b014db | 115 | %patch0 -p1 |
1dcb9798 | 116 | |
55badcef KK |
117 | %if %{without tests} |
118 | %{__sed} -i 's, tests$,,' Makefile.am | |
119 | %endif | |
120 | ||
1dcb9798 | 121 | %build |
92de6080 | 122 | %{__libtoolize} |
03d66581 | 123 | %{__aclocal} -I M4 |
4a72fafe | 124 | %{__autoconf} |
4a72fafe | 125 | %{__automake} |
19550c7f KK |
126 | %configure \ |
127 | %{!?with_static_libs:--disable-static} \ | |
e991aa6f | 128 | %{!?with_regtest:--disable-sqlite} |
19550c7f | 129 | |
7005f73b JB |
130 | %{__make} \ |
131 | V=1 | |
e991aa6f | 132 | %{?with_tests: %{__make} test} |
1dcb9798 AM |
133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
0ee4787d | 136 | |
9c3ecd17 PG |
137 | %{__make} install \ |
138 | DESTDIR=$RPM_BUILD_ROOT | |
0ee4787d | 139 | |
7005f73b | 140 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev |
8c0d9fea | 141 | |
1dcb9798 AM |
142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post -p /sbin/ldconfig | |
146 | %postun -p /sbin/ldconfig | |
147 | ||
148 | %files | |
149 | %defattr(644,root,root,755) | |
5f0a3024 | 150 | %doc AUTHORS ChangeLog NEWS README |
69842c69 JB |
151 | %attr(755,root,root) %{_libdir}/libsndfile.so.*.*.* |
152 | %attr(755,root,root) %ghost %{_libdir}/libsndfile.so.1 | |
1dcb9798 AM |
153 | |
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
3b7944d6 | 156 | %doc doc/*.html doc/*.jpg doc/new_file_type.HOWTO |
92edf427 JB |
157 | %attr(755,root,root) %{_libdir}/libsndfile.so |
158 | %{_libdir}/libsndfile.la | |
159 | %{_includedir}/sndfile.h* | |
160 | %{_pkgconfigdir}/sndfile.pc | |
1dcb9798 | 161 | |
19550c7f | 162 | %if %{with static_libs} |
1dcb9798 | 163 | %files static |
a6cdcff3 | 164 | %defattr(644,root,root,755) |
92edf427 | 165 | %{_libdir}/libsndfile.a |
19550c7f | 166 | %endif |
bcbe612a | 167 | |
7005f73b JB |
168 | %files progs |
169 | %defattr(644,root,root,755) | |
170 | %attr(755,root,root) %{_bindir}/sndfile-* | |
171 | %{_mandir}/man1/sndfile-*.1* | |
172 | ||
4f0a289c | 173 | %if %{with octave} |
7005f73b | 174 | %files -n octave-sndfile |
bcbe612a | 175 | %defattr(644,root,root,755) |
69842c69 JB |
176 | %{_datadir}/octave/site/m/sndfile_*.m |
177 | %dir %{_libdir}/octave/*/site/oct/*/sndfile | |
178 | %{_libdir}/octave/*/site/oct/*/sndfile/PKG_ADD | |
179 | %attr(755,root,root) %{_libdir}/octave/*/site/oct/*/sndfile/sndfile.oct | |
4f0a289c | 180 | %endif |