%define realname soxr
Name: lib%realname
Version: 0.1.2
Release: alt0.M60T.1
Group: System/Libraries
Summary: The SoX Resampler library
License: LGPLv2+
Url: https://sourceforge.net/p/soxr/wiki/Home/
Source0: http://downloads.sourceforge.net/%name/%realname-%version-Source.tar.xz
# Automatically added by buildreq on Wed Apr 22 2015 (-bi)
# optimized out: cmake cmake-modules elfutils pkg-config python-base xz
BuildRequires: ccmake ctest
%description
The SoX Resampler library `libsoxr' performs one-dimensional sample-rate
conversion -- it may be used, for example, to resample PCM-encoded audio.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name%{?_isa} = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%prep
%setup -n %realname-%version-Source
%build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
-DLIB_INSTALL_DIR:PATH=%_libdir \
-DCMAKE_C_FLAGS:STRING="%optflags" ../.
%make_build
%install
cd build
make DESTDIR=%buildroot install
# Remove docs and use the rpmbuild macro instead
rm -rf %buildroot%_docdir/*
%files
%doc LICENCE NEWS README
%_libdir/*.so.*
%files devel
%doc examples
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/soxr-lsr.pc
%_pkgconfigdir/soxr.pc
%changelog
* Tue Feb 16 2016 Motsyo Gennadi <drool@altlinux.ru> 0.1.2-alt0.M60T.1
- build for t6
* Fri Sep 25 2015 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.1.2-alt1
- 0.1.2 released
* Wed Apr 22 2015 Motsyo Gennadi <drool@altlinux.ru> 0.1.1-alt1
- build for ALT Linux