]> git.pld-linux.org Git - packages/libsndfile.git/blame - libsndfile.spec
- converted to UTF-8
[packages/libsndfile.git] / libsndfile.spec
CommitLineData
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 7Summary: C library for reading and writing files containing sampled sound
66b8034c 8Summary(pl.UTF-8): Biblioteka obsługi plików dźwiękowych
1dcb9798 9Name: libsndfile
2f051b7f 10Version: 1.0.17
92edf427 11Release: 2
a438ce96 12License: LGPL v2.1+
2a9e2d9d 13Vendor: Erik de Castro Lopo <erikd@zip.com.au>
1dcb9798 14Group: Development/Libraries
900cee8f 15Source0: http://www.mega-nerd.com/libsndfile/%{name}-%{version}.tar.gz
2f051b7f 16# Source0-md5: 2d126c35448503f6dbe33934d9581f6b
92edf427 17Patch0: %{name}-flac.patch
f967ffbb 18URL: http://www.mega-nerd.com/libsndfile/
19550c7f 19BuildRequires: alsa-lib-devel
238da168 20BuildRequires: autoconf >= 2.54
16af1fdc 21BuildRequires: automake
92edf427 22BuildRequires: flac-devel >= 1.1.3
55badcef 23%{?with_tests:BuildRequires: libstdc++-devel}
487276e9 24BuildRequires: libtool
19550c7f 25BuildRequires: pkgconfig
55badcef 26BuildRequires: sed >= 4.0
19550c7f 27%{?with_sqlite:BuildRequires: sqlite3-devel}
3d5577b2 28Obsoletes: libsndfile1
ae214341 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1dcb9798
AM
30
31%description
a6cdcff3 32Libsndfile is a C library for reading and writing files containing
33sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format)
34through one standard library interface.
1dcb9798 35
66b8034c
JR
36%description -l pl.UTF-8
37Libsndfile to biblioteką napisaną w C, służąca do czytania i
38zapisywania plików zawierających zsamplowany dźwięk (np. w formacie MS
a6cdcff3 39Windows WAV czy Apple/SGI AIFF) poprzez jednolity, standardowy
40interfejs.
0ee4787d 41
1dcb9798
AM
42%package devel
43Summary: libsndfile header files and development documentation
66b8034c 44Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja do libsndfile
1dcb9798 45Group: Development/Libraries
f967ffbb 46Requires: %{name} = %{version}-%{release}
900cee8f 47Requires: flac-devel >= 1.1.1
3d5577b2 48Obsoletes: libsndfile1-devel
1dcb9798
AM
49
50%description devel
51Header files and development documentation for libsndfile.
52
66b8034c
JR
53%description devel -l pl.UTF-8
54Pliki nagłówkowe oraz dokumentacja do biblioteki libsndfile.
1dcb9798
AM
55
56%package static
57Summary: libsndfile static libraries
66b8034c 58Summary(pl.UTF-8): Biblioteki statyczne libsndfile
1dcb9798 59Group: Development/Libraries
f967ffbb 60Requires: %{name}-devel = %{version}-%{release}
1dcb9798
AM
61
62%description static
63libsndfile static libraries.
64
66b8034c 65%description static -l pl.UTF-8
1dcb9798
AM
66Biblioteki statyczne libsndfile.
67
bcbe612a
SZ
68%package octave
69Summary: libsndfile modules for octave
66b8034c 70Summary(pl.UTF-8): Moduły libsndfile dla octave
bcbe612a 71Group: Applications/Math
b171006e 72Requires: %{name} = %{version}-%{release}
bcbe612a
SZ
73Requires: octave
74
75%description octave
912639bd 76A couple of script files for loading, saving, and playing sound files
77from within Octave.
bcbe612a 78
66b8034c
JR
79%description octave -l pl.UTF-8
80Kilka skryptów Octave do ładowania, zapisywania i odtwarzania plików
81dź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
103rm -rf $RPM_BUILD_ROOT
0ee4787d 104
9c3ecd17
PG
105%{__make} install \
106 DESTDIR=$RPM_BUILD_ROOT
0ee4787d 107
8c0d9fea
JB
108rm -rf $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev
109
1dcb9798
AM
110%clean
111rm -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/*
This page took 0.077935 seconds and 4 git commands to generate.