Browse Source

Add rpm support

pull/1/head
Margaux Clerc 12 years ago
parent
commit
2e36a5d4bc
5 changed files with 92 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +8
    -1
      Makefile.am
  3. +54
    -0
      bcg729.spec.in
  4. +1
    -0
      configure.ac
  5. +28
    -1
      include/Makefile.am

+ 1
- 0
.gitignore View File

@ -16,4 +16,5 @@ libbcg729.pc
test/src/decoderTest
test/src/encoderTest
.libs
bcg729.spec

+ 8
- 1
Makefile.am View File

@ -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

+ 54
- 0
bcg729.spec.in View File

@ -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 <margaux.clerc@belledonne-communications.com>
- Creation of rpm for linphone

+ 1
- 0
configure.ac View File

@ -76,6 +76,7 @@ AC_CONFIG_FILES([
test/Makefile
test/bin/Makefile
libbcg729.pc
bcg729.spec
])


+ 28
- 1
include/Makefile.am View File

@ -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)

Loading…
Cancel
Save