Package bs2b: Specfile

Name:		bs2b
Summary:	The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins
Version:	3.1.0
Release:	alt1
Group:		System/Libraries
License:	Distributable (see COPYING file)
Packager:	Motsyo Gennadi <drool@altlinux.ru>
Url:		http://bs2b.sourceforge.net/
Source0:	http://kent.dl.sourceforge.net/sourceforge/%name/lib%name-%version.tar.bz2
Source1:	%{name}_mp3.sh
Patch0:		lib%name-3.1.0-soname.diff

# Automatically added by buildreq on Sat Feb 28 2009 (-bi)
BuildRequires: gcc-c++ libsndfile-devel

%description
The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
designed to improve headphone listening of stereo audio records.
Recommended for headphone prolonged listening to disable superstereo
fatigue without essential distortions.

Author: Boris Mikhaylov

%package -n lib%name
Summary: Shared libraries for bs2b
Group: System/Libraries

%description -n lib%name
Shared libraries for package bs2b.

%package -n lib%name-devel
Summary: Development files for the libbs2b library
Group: Development/C++
Requires: lib%name = %version-%release

%description -n lib%name-devel
Development files for the libbs2b library.

Author: Boris Mikhaylov

%package -n lib%name-devel-static
Summary: Development static libraries for the libbs2b
Group: Development/C++
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
Development static libraries for the libbs2b

Author: Boris Mikhaylov

%prep
%setup -q -n lib%name-%version
%patch0 -p1
%__install -dm 755 examples
%__install -m 755 %SOURCE1 \
	examples

%build
%configure
%make_build

%install
%makeinstall

# clean up
%__rm %buildroot%_libdir/*.la
find doc -name 'Makefile*' | xargs %__rm

%files
%doc AUTHORS README ChangeLog COPYING
%doc doc/*.txt
%_bindir/bs2bconvert
%_bindir/bs2bstream

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%dir %_includedir/bs2b
%_includedir/bs2b/*.h
%_libdir/*.so
%_pkgconfigdir/*.pc

%files -n lib%name-devel-static
%_libdir/*.a

%changelog
* Sun Jun 07 2009 Motsyo Gennadi <drool@altlinux.ru> 3.1.0-alt1
- 3.1.1

* Thu Apr 09 2009 Motsyo Gennadi <drool@altlinux.ru> 3.0.0-alt1
- 3.0.0
- change URL
- add URl for source tarball
- add patch for change soname (thanks to damir@ for hint)

* Sat Feb 28 2009 Motsyo Gennadi <drool@altlinux.ru> 2.2.1-alt1
- initial build for ALT Linux from OpenSUSE package