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