summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Krenski2007-01-27 01:06:17 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit55badcef09a885b288a9bc566e4233ef12f01098 (patch)
treea1c501a5a4c8bb3c09d11b11e9b0a37cf33e538d
parent92edf427531e265dd3ad2b1ca6aef47cb226c64c (diff)
downloadlibsndfile-55badcef09a885b288a9bc566e4233ef12f01098.zip
libsndfile-55badcef09a885b288a9bc566e4233ef12f01098.tar.gz
- added tests bcond (default on)auto/ac/libsndfile-1_0_17-2AC-STABLEAC-branch
- BR: libstdc++-devel (for tests) Changed files: libsndfile.spec -> 1.55
-rw-r--r--libsndfile.spec7
1 files changed, 7 insertions, 0 deletions
diff --git a/libsndfile.spec b/libsndfile.spec
index e2d8bd0..a0ff2f4 100644
--- a/libsndfile.spec
+++ b/libsndfile.spec
@@ -2,6 +2,7 @@
# Conditional build:
%bcond_without sqlite # disable use of sqlite
%bcond_without static_libs # don't build static library
+%bcond_without tests # don't build tests
#
Summary: C library for reading and writing files containing sampled sound
Summary(pl): Biblioteka obsługi plików dĽwiękowych
@@ -19,8 +20,10 @@ BuildRequires: alsa-lib-devel
BuildRequires: autoconf >= 2.54
BuildRequires: automake
BuildRequires: flac-devel >= 1.1.3
+%{?with_tests:BuildRequires: libstdc++-devel}
BuildRequires: libtool
BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
%{?with_sqlite:BuildRequires: sqlite3-devel}
Obsoletes: libsndfile1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -81,6 +84,10 @@ dĽwiękowych.
%setup -q
%patch0 -p1
+%if %{without tests}
+%{__sed} -i 's, tests$,,' Makefile.am
+%endif
+
%build
%{__libtoolize}
%{__aclocal}