From 2e36a5d4bc6e992c654eee6b0a8db729da7b1d31 Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Sat, 12 Apr 2014 17:28:37 +0200 Subject: [PATCH] Add rpm support --- .gitignore | 1 + Makefile.am | 9 +++++++- bcg729.spec.in | 54 +++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 1 + include/Makefile.am | 29 +++++++++++++++++++++++- 5 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 bcg729.spec.in diff --git a/.gitignore b/.gitignore index 2f1c751..070ed80 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ libbcg729.pc test/src/decoderTest test/src/encoderTest .libs +bcg729.spec diff --git a/Makefile.am b/Makefile.am index ad56773..288139e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,8 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src include + +EXTRA_DIST = bcg729.spec +SUBDIRS = include src + if BUILD_MSBCG729 SUBDIRS += msbcg729 endif @@ -9,3 +12,7 @@ SUBDIRS += test endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libbcg729.pc + +rpm: + $(MAKE) dist + TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz diff --git a/bcg729.spec.in b/bcg729.spec.in new file mode 100644 index 0000000..2de9e3f --- /dev/null +++ b/bcg729.spec.in @@ -0,0 +1,54 @@ +# -*- rpm-spec -*- + +## rpmbuild options + +Summary: Bcg729 codec plugin for mediastreamer2 +Name: bcg729 +Version: 0.1 +Release: 1 +License: GPL +Group: Applications/Communications +URL: http://www.belledonne-communications.com +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source0: %{name}-%{version}.tar.gz +Requires: bash >= 2.0 + +%description +BCG729 codec plugin for mediastreamer2. + +%package devel +Summary: Development libraries for bcg729 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +BCG729 codec plugin for mediastreamer2. + +%prep +%setup -q + +%build +%configure --enable-static +%__make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING ChangeLog INSTALL NEWS README +%{_libdir}/* + +%files devel +%defattr(-,root,root) +%{_includedir}/bcg729 +%{_includedir}/* +%{_libdir}/* + +%changelog +* Mon Jan 12 2014 Margaux Clerc +- Creation of rpm for linphone diff --git a/configure.ac b/configure.ac index 5c1d93c..7a4e756 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,7 @@ AC_CONFIG_FILES([ test/Makefile test/bin/Makefile libbcg729.pc + bcg729.spec ]) diff --git a/include/Makefile.am b/include/Makefile.am index 9f9d70b..8ace3bd 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,4 +1,31 @@ SUBDIRS = bcg729 +include_HEADERS= adaptativeCodebookSearch.h \ + basicOperationsMacros.h \ + codebooks.h \ + codecParameters.h \ + computeAdaptativeCodebookGain.h \ + computeLP.h \ + computeWeightedSpeech.h \ + decodeAdaptativeCodeVector.h \ + decodeFixedCodeVector.h \ + decodeGains.h \ + decodeLSP.h \ + findOpenLoopPitchDelay.h \ + fixedCodebookSearch.h \ + fixedPointMacros.h \ + floatingPointMacros.h \ + g729FixedPointMath.h \ + gainQuantization.h \ + interpolateqLSP.h \ + LP2LSPConversion.h \ + LPSynthesisFilter.h \ + LSPQuantization.h \ + postFilter.h \ + postProcessing.h \ + preProcessing.h \ + qLSP2LP.h \ + typedef.h \ + utils.h - +EXTRA_DIST=$(include_HEADERS)