File bcg729.spec of Package bcg729

%if 0%{?rhel} && 0%{?rhel} <= 7
%global cmake_name cmake3
%define ctest_name ctest3
%else
%global cmake_name cmake
%define ctest_name ctest
%endif

Name:		bcg729
Version:	1.1.1
Release:	<RELEASE>%{?dist}
Summary:	G.729 opensource implementation
Packager: 	Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
Group:		Development/Libraries
License:	LGPLv3
URL:		http://www.linphone.org/technical-corner/bcg729/overview
Source0:	https://www.linphone.org/releases/sources/bcg729/bcg729_%{version}.orig.tar.gz
BuildRequires:	ortp-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  cmake
%description
G.729 opensource implementation

%package devel
Summary:	G.729 opensource implementation - development package
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description devel
G.729 opensource implementation

This package contains header file and development libraries.

%prep
%setup -q -n bcg729-%{version}

%build
#././autogen.sh
#configure --disable-static

cd build
%{expand:%%%cmake_name} .. -DENABLE_STATIC=NO
make %{?_smp_mflags}

%install
cd build
make install DESTDIR=%{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%{_libdir}/libbcg729.so.0
%doc CHANGELOG.md AUTHORS.md README.md

%files devel
%{_includedir}/bcg729/*
%{_libdir}/libbcg729.so
%{_libdir}/pkgconfig/libbcg729.pc
%exclude %{_libdir}/libbcg729.la
%{_datadir}/Bcg729/cmake/*.cmake

%changelog

* Mon Dec 21 2014 Luis Daniel Lucio Quiroz <dlucio@okay.com.mx> - 1.0.0-1
- Initial build

openSUSE Build Service is sponsored by