]>
Commit | Line | Data |
---|---|---|
19550c7f KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without sqlite # disable use of sqlite | |
4 | %bcond_without static_libs # don't build static library | |
55badcef | 5 | %bcond_without tests # don't build tests |
19550c7f | 6 | # |
1dcb9798 | 7 | Summary: C library for reading and writing files containing sampled sound |
66b8034c | 8 | Summary(pl.UTF-8): Biblioteka obsługi plików dźwiękowych |
1dcb9798 | 9 | Name: libsndfile |
2f051b7f | 10 | Version: 1.0.17 |
92edf427 | 11 | Release: 2 |
a438ce96 | 12 | License: LGPL v2.1+ |
2a9e2d9d | 13 | Vendor: Erik de Castro Lopo <erikd@zip.com.au> |
1dcb9798 | 14 | Group: Development/Libraries |
900cee8f | 15 | Source0: http://www.mega-nerd.com/libsndfile/%{name}-%{version}.tar.gz |
2f051b7f | 16 | # Source0-md5: 2d126c35448503f6dbe33934d9581f6b |
92edf427 | 17 | Patch0: %{name}-flac.patch |
f967ffbb | 18 | URL: http://www.mega-nerd.com/libsndfile/ |
19550c7f | 19 | BuildRequires: alsa-lib-devel |
238da168 | 20 | BuildRequires: autoconf >= 2.54 |
16af1fdc | 21 | BuildRequires: automake |
92edf427 | 22 | BuildRequires: flac-devel >= 1.1.3 |
55badcef | 23 | %{?with_tests:BuildRequires: libstdc++-devel} |
487276e9 | 24 | BuildRequires: libtool |
19550c7f | 25 | BuildRequires: pkgconfig |
55badcef | 26 | BuildRequires: sed >= 4.0 |
19550c7f | 27 | %{?with_sqlite:BuildRequires: sqlite3-devel} |
3d5577b2 | 28 | Obsoletes: libsndfile1 |
ae214341 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1dcb9798 AM |
30 | |
31 | %description | |
a6cdcff3 | 32 | Libsndfile is a C library for reading and writing files containing |
33 | sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) | |
34 | through one standard library interface. | |
1dcb9798 | 35 | |
66b8034c JR |
36 | %description -l pl.UTF-8 |
37 | Libsndfile to biblioteką napisaną w C, służąca do czytania i | |
38 | zapisywania plików zawierających zsamplowany dźwięk (np. w formacie MS | |
a6cdcff3 | 39 | Windows WAV czy Apple/SGI AIFF) poprzez jednolity, standardowy |
40 | interfejs. | |
0ee4787d | 41 | |
1dcb9798 AM |
42 | %package devel |
43 | Summary: libsndfile header files and development documentation | |
66b8034c | 44 | Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja do libsndfile |
1dcb9798 | 45 | Group: Development/Libraries |
f967ffbb | 46 | Requires: %{name} = %{version}-%{release} |
900cee8f | 47 | Requires: flac-devel >= 1.1.1 |
3d5577b2 | 48 | Obsoletes: libsndfile1-devel |
1dcb9798 AM |
49 | |
50 | %description devel | |
51 | Header files and development documentation for libsndfile. | |
52 | ||
66b8034c JR |
53 | %description devel -l pl.UTF-8 |
54 | Pliki nagłówkowe oraz dokumentacja do biblioteki libsndfile. | |
1dcb9798 AM |
55 | |
56 | %package static | |
57 | Summary: libsndfile static libraries | |
66b8034c | 58 | Summary(pl.UTF-8): Biblioteki statyczne libsndfile |
1dcb9798 | 59 | Group: Development/Libraries |
f967ffbb | 60 | Requires: %{name}-devel = %{version}-%{release} |
1dcb9798 AM |
61 | |
62 | %description static | |
63 | libsndfile static libraries. | |
64 | ||
66b8034c | 65 | %description static -l pl.UTF-8 |
1dcb9798 AM |
66 | Biblioteki statyczne libsndfile. |
67 | ||
bcbe612a SZ |
68 | %package octave |
69 | Summary: libsndfile modules for octave | |
66b8034c | 70 | Summary(pl.UTF-8): Moduły libsndfile dla octave |
bcbe612a | 71 | Group: Applications/Math |
b171006e | 72 | Requires: %{name} = %{version}-%{release} |
bcbe612a SZ |
73 | Requires: octave |
74 | ||
75 | %description octave | |
912639bd | 76 | A couple of script files for loading, saving, and playing sound files |
77 | from within Octave. | |
bcbe612a | 78 | |
66b8034c JR |
79 | %description octave -l pl.UTF-8 |
80 | Kilka skryptów Octave do ładowania, zapisywania i odtwarzania plików | |
81 | dźwiękowych. | |
bcbe612a | 82 | |
1dcb9798 AM |
83 | %prep |
84 | %setup -q | |
92edf427 | 85 | %patch0 -p1 |
1dcb9798 | 86 | |
55badcef KK |
87 | %if %{without tests} |
88 | %{__sed} -i 's, tests$,,' Makefile.am | |
89 | %endif | |
90 | ||
1dcb9798 | 91 | %build |
92de6080 | 92 | %{__libtoolize} |
40864d79 | 93 | %{__aclocal} |
4a72fafe | 94 | %{__autoconf} |
4a72fafe | 95 | %{__automake} |
19550c7f KK |
96 | %configure \ |
97 | %{!?with_static_libs:--disable-static} \ | |
98 | %{!?with_sqlite:--disable-sqlite} | |
99 | ||
8af0f3e0 | 100 | %{__make} |
1dcb9798 AM |
101 | |
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
0ee4787d | 104 | |
9c3ecd17 PG |
105 | %{__make} install \ |
106 | DESTDIR=$RPM_BUILD_ROOT | |
0ee4787d | 107 | |
8c0d9fea JB |
108 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev |
109 | ||
1dcb9798 AM |
110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post -p /sbin/ldconfig | |
114 | %postun -p /sbin/ldconfig | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
8c0d9fea | 118 | %doc AUTHORS ChangeLog NEWS README TODO |
92edf427 JB |
119 | %attr(755,root,root) %{_bindir}/sndfile-* |
120 | %attr(755,root,root) %{_libdir}/libsndfile.so.*.* | |
121 | %{_mandir}/man1/sndfile-*.1* | |
1dcb9798 AM |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
3b7944d6 | 125 | %doc doc/*.html doc/*.jpg doc/new_file_type.HOWTO |
92edf427 JB |
126 | %attr(755,root,root) %{_libdir}/libsndfile.so |
127 | %{_libdir}/libsndfile.la | |
128 | %{_includedir}/sndfile.h* | |
129 | %{_pkgconfigdir}/sndfile.pc | |
1dcb9798 | 130 | |
19550c7f | 131 | %if %{with static_libs} |
1dcb9798 | 132 | %files static |
a6cdcff3 | 133 | %defattr(644,root,root,755) |
92edf427 | 134 | %{_libdir}/libsndfile.a |
19550c7f | 135 | %endif |
bcbe612a SZ |
136 | |
137 | %files octave | |
138 | %defattr(644,root,root,755) | |
139 | %{_datadir}/octave/site/m/* |