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