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