]> git.pld-linux.org Git - packages/libsndfile.git/blame - libsndfile.spec
- updated to 1.2.0 (security fixes in 1.0.29, MPEG support introduced)
[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
8abbe919
JB
13Version: 1.2.0
14Release: 1
a438ce96 15License: LGPL v2.1+
8b67e6cc 16Group: Libraries
8abbe919
JB
17#Source0Download: https://github.com/libsndfile/libsndfile/releases
18Source0: https://github.com/libsndfile/libsndfile/archive/%{version}/%{name}-%{version}.tar.gz
19# Source0-md5: 015d2e3617241f293237bf1675f92486
02b014db 20Patch0: octave32.patch
f967ffbb 21URL: http://www.mega-nerd.com/libsndfile/
19550c7f 22BuildRequires: alsa-lib-devel
8abbe919
JB
23BuildRequires: autoconf >= 2.69
24BuildRequires: automake >= 1:1.14
1a20fc4f 25BuildRequires: flac-devel >= 1.3.1
9bec58c8 26BuildRequires: gcc-fortran
8abbe919
JB
27BuildRequires: lame-libs-devel
28BuildRequires: libmpg123-devel >= 1.25.10
29BuildRequires: libogg-devel >= 2:1.3.0
55badcef 30%{?with_tests:BuildRequires: libstdc++-devel}
8a1a5ba7 31BuildRequires: libtool >= 2:2
4f0a289c 32BuildRequires: libvorbis-devel >= 1:1.2.3
1a20fc4f 33%{?with_octave:BuildRequires: octave-devel >= 2:3}
8abbe919 34BuildRequires: opus-devel >= 1.1
19550c7f 35BuildRequires: pkgconfig
55badcef 36BuildRequires: sed >= 4.0
4f0a289c 37%{?with_regtest:BuildRequires: sqlite3-devel >= 3.2}
1a20fc4f 38Requires: flac >= 1.3.1
8abbe919
JB
39Requires: libmpg123 >= 1.25.10
40Requires: libogg >= 2:1.3.0
7005f73b 41Requires: libvorbis >= 1:1.2.3
8abbe919 42Requires: opus >= 1.1
3d5577b2 43Obsoletes: libsndfile1
ae214341 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1dcb9798
AM
45
46%description
a6cdcff3 47Libsndfile is a C library for reading and writing files containing
48sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format)
49through one standard library interface.
1dcb9798 50
66b8034c
JR
51%description -l pl.UTF-8
52Libsndfile to biblioteką napisaną w C, służąca do czytania i
53zapisywania plików zawierających zsamplowany dźwięk (np. w formacie MS
a6cdcff3 54Windows WAV czy Apple/SGI AIFF) poprzez jednolity, standardowy
55interfejs.
0ee4787d 56
1dcb9798
AM
57%package devel
58Summary: libsndfile header files and development documentation
99339b5d 59Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja do libsndfile
1dcb9798 60Group: Development/Libraries
f967ffbb 61Requires: %{name} = %{version}-%{release}
1a20fc4f 62Requires: flac-devel >= 1.3.1
8abbe919
JB
63Requires: lame-libs-devel
64Requires: libmpg123-devel >= 1.25.10
65Requires: libogg-devel >= 2:1.3.0
7005f73b 66Requires: libvorbis-devel >= 1:1.2.3
8abbe919 67Requires: opus-devel >= 1.1
3d5577b2 68Obsoletes: libsndfile1-devel
1dcb9798
AM
69
70%description devel
71Header files and development documentation for libsndfile.
72
66b8034c
JR
73%description devel -l pl.UTF-8
74Pliki nagłówkowe oraz dokumentacja do biblioteki libsndfile.
1dcb9798
AM
75
76%package static
77Summary: libsndfile static libraries
99339b5d 78Summary(pl.UTF-8): Biblioteki statyczne libsndfile
1dcb9798 79Group: Development/Libraries
f967ffbb 80Requires: %{name}-devel = %{version}-%{release}
1dcb9798
AM
81
82%description static
83libsndfile static libraries.
84
66b8034c 85%description static -l pl.UTF-8
1dcb9798
AM
86Biblioteki statyczne libsndfile.
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:
4f0a289c
JB
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
e991aa6f
SS
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
7005f73b
JB
106%package -n octave-sndfile
107Summary: sndfile module for Octave
108Summary(pl.UTF-8): Moduł sndfile dla Octave
109Group: Applications/Math
110Requires: %{name} = %{version}-%{release}
1a20fc4f 111Requires: octave >= 2:3
7005f73b
JB
112Obsoletes: libsndfile-octave
113
114%description -n octave-sndfile
115A couple of script files for loading, saving, and playing sound files
116from within Octave.
117
118%description -n octave-sndfile -l pl.UTF-8
119Kilka skryptów Octave do ładowania, zapisywania i odtwarzania plików
120dźwiękowych.
121
1dcb9798
AM
122%prep
123%setup -q
02b014db 124%patch0 -p1
1dcb9798 125
55badcef
KK
126%if %{without tests}
127%{__sed} -i 's, tests$,,' Makefile.am
128%endif
129
1dcb9798 130%build
92de6080 131%{__libtoolize}
8abbe919 132%{__aclocal} -I m4
4a72fafe 133%{__autoconf}
8abbe919 134%{__autoheader}
4a72fafe 135%{__automake}
19550c7f 136%configure \
8a1a5ba7 137 %{!?with_octave:--disable-octave} \
c0533da4
JB
138 --disable-silent-rules \
139 %{!?with_regtest:--disable-sqlite} \
8abbe919 140 %{?with_static_libs:--enable-static}
c0533da4
JB
141
142%{__make}
19550c7f 143
c0533da4 144%{?with_tests:%{__make} test}
1dcb9798
AM
145
146%install
147rm -rf $RPM_BUILD_ROOT
0ee4787d 148
9c3ecd17
PG
149%{__make} install \
150 DESTDIR=$RPM_BUILD_ROOT
0ee4787d 151
1a20fc4f
JB
152# packaged as %doc
153%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libsndfile
8c0d9fea 154
1dcb9798
AM
155%clean
156rm -rf $RPM_BUILD_ROOT
157
158%post -p /sbin/ldconfig
159%postun -p /sbin/ldconfig
160
161%files
162%defattr(644,root,root,755)
8abbe919 163%doc AUTHORS CHANGELOG.md ChangeLog NEWS.OLD README SECURITY.md
69842c69
JB
164%attr(755,root,root) %{_libdir}/libsndfile.so.*.*.*
165%attr(755,root,root) %ghost %{_libdir}/libsndfile.so.1
1dcb9798
AM
166
167%files devel
168%defattr(644,root,root,755)
8abbe919 169%doc docs/*
92edf427
JB
170%attr(755,root,root) %{_libdir}/libsndfile.so
171%{_libdir}/libsndfile.la
172%{_includedir}/sndfile.h*
173%{_pkgconfigdir}/sndfile.pc
1dcb9798 174
19550c7f 175%if %{with static_libs}
1dcb9798 176%files static
a6cdcff3 177%defattr(644,root,root,755)
92edf427 178%{_libdir}/libsndfile.a
19550c7f 179%endif
bcbe612a 180
7005f73b
JB
181%files progs
182%defattr(644,root,root,755)
183%attr(755,root,root) %{_bindir}/sndfile-*
184%{_mandir}/man1/sndfile-*.1*
185
4f0a289c 186%if %{with octave}
7005f73b 187%files -n octave-sndfile
bcbe612a 188%defattr(644,root,root,755)
69842c69
JB
189%{_datadir}/octave/site/m/sndfile_*.m
190%dir %{_libdir}/octave/*/site/oct/*/sndfile
191%{_libdir}/octave/*/site/oct/*/sndfile/PKG_ADD
192%attr(755,root,root) %{_libdir}/octave/*/site/oct/*/sndfile/sndfile.oct
4f0a289c 193%endif
This page took 0.073713 seconds and 4 git commands to generate.