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