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