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