cleanup spec file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6384 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
58b682780b
commit
8b5287787f
|
@ -2,17 +2,13 @@ Name: freeswitch-snapshot
|
||||||
Summary: FreeSWITCH open source telephony platform
|
Summary: FreeSWITCH open source telephony platform
|
||||||
License: MPL
|
License: MPL
|
||||||
Group: Productivity/Telephony/Servers
|
Group: Productivity/Telephony/Servers
|
||||||
Version: 6365
|
Version: 6382
|
||||||
Release: 0
|
Release: 0
|
||||||
URL: http://www.freeswitch.org/
|
URL: http://www.freeswitch.org/
|
||||||
Packager: Peter Nixon
|
Packager: Peter Nixon
|
||||||
Vendor: http://peternixon.net/
|
Vendor: http://peternixon.net/
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: freeswitch.ld.so.conf
|
Source1: modules.conf
|
||||||
Source2: freeswitch.init
|
|
||||||
Source3: freeswitch.sysconfig
|
|
||||||
Source4: modules.conf
|
|
||||||
Patch0: curses.patch
|
|
||||||
|
|
||||||
#AutoReqProv: no
|
#AutoReqProv: no
|
||||||
|
|
||||||
|
@ -22,7 +18,6 @@ BuildRequires: automake
|
||||||
BuildRequires: curl-devel
|
BuildRequires: curl-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gnutls-devel
|
BuildRequires: gnutls-devel
|
||||||
#BuildRequires: libogg-devel
|
|
||||||
BuildRequires: libtool >= 1.5.14
|
BuildRequires: libtool >= 1.5.14
|
||||||
BuildRequires: lzo-devel
|
BuildRequires: lzo-devel
|
||||||
BuildRequires: freeradius-client-snapshot-devel
|
BuildRequires: freeradius-client-snapshot-devel
|
||||||
|
@ -35,7 +30,6 @@ BuildRequires: pkgconfig
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: termcap
|
BuildRequires: termcap
|
||||||
#BuildRequires: unixODBC-devel
|
#BuildRequires: unixODBC-devel
|
||||||
#BuildRequires: sqlite-devel
|
|
||||||
|
|
||||||
%if %{?suse_version:1}0
|
%if %{?suse_version:1}0
|
||||||
%if 0%{?suse_version} > 910
|
%if 0%{?suse_version} > 910
|
||||||
|
@ -104,8 +98,6 @@ Pass-through g729 Codec support for FreeSWITCH open source telephony platform
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -DPIC"
|
#export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -DPIC"
|
||||||
|
@ -114,15 +106,11 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
|
||||||
export CFLAGS="$CFLAGS -fstack-protector"
|
export CFLAGS="$CFLAGS -fstack-protector"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
export VERBOSE=yes
|
export VERBOSE=yes
|
||||||
export CFLAGS="$CFLAGS -g -ggdb"
|
|
||||||
export MOD_CFLAGS="-g -ggdb"
|
|
||||||
export DESTDIR=$RPM_BUILD_ROOT/
|
export DESTDIR=$RPM_BUILD_ROOT/
|
||||||
export PKG_CONFIG_PATH=/usr/bin/pkg-config:$PKG_CONFIG_PATH
|
export PKG_CONFIG_PATH=/usr/bin/pkg-config:$PKG_CONFIG_PATH
|
||||||
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
|
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
#./configure -C \
|
|
||||||
%configure -C \
|
%configure -C \
|
||||||
--prefix=/opt/freeswitch \
|
--prefix=/opt/freeswitch \
|
||||||
--sysconfdir=%{_sysconfdir} \
|
--sysconfdir=%{_sysconfdir} \
|
||||||
|
@ -135,29 +123,24 @@ export ACLOCAL_FLAGS="-I /usr/share/aclocal"
|
||||||
cat src/include/switch_version.h.in | sed "s/@SVN_VERSION@/%{version}/g" > src/include/switch_version.h
|
cat src/include/switch_version.h.in | sed "s/@SVN_VERSION@/%{version}/g" > src/include/switch_version.h
|
||||||
touch .noversion
|
touch .noversion
|
||||||
|
|
||||||
cp %{SOURCE4} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
#make DESTDIR=$RPM_BUILD_ROOT -C src/mod/event_handlers/mod_cdr install
|
|
||||||
#make DESTDIR=$RPM_BUILD_ROOT -C src/mod/codecs/mod_speex install
|
|
||||||
#make DESTDIR=$RPM_BUILD_ROOT -C src/mod/codecs/mod_g729 install
|
|
||||||
#make DESTDIR=$RPM_BUILD_ROOT -C src/mod/xml_int/mod_xml_rpc install
|
|
||||||
|
|
||||||
# Create a log dir
|
# Create a log dir
|
||||||
mkdir -p $RPM_BUILD_ROOT/opt/freeswitch/log
|
mkdir -p $RPM_BUILD_ROOT/opt/freeswitch/log
|
||||||
|
|
||||||
#Install the library path config so the system can find the modules
|
#Install the library path config so the system can find the modules
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
||||||
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/ld.so.conf.d/
|
cp build/freeswitch.ld.so.conf $RPM_BUILD_ROOT/etc/ld.so.conf.d/
|
||||||
|
|
||||||
#install -m 744 suse/freeswitch.init $RPM_BUILD_ROOT/etc/init.d/freeswitch
|
install -D -m 744 build/freeswitch.init $RPM_BUILD_ROOT/etc/init.d/freeswitch
|
||||||
install -D -m 744 %{SOURCE2} $RPM_BUILD_ROOT/etc/init.d/freeswitch
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
||||||
ln -sf /etc/init.d/freeswitch $RPM_BUILD_ROOT/usr/sbin/rcfreeswitch
|
ln -sf /etc/init.d/freeswitch $RPM_BUILD_ROOT/usr/sbin/rcfreeswitch
|
||||||
install -D -m 744 %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/freeswitch
|
install -D -m 744 build/freeswitch.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/freeswitch
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd -r freeswitch 2> /dev/null || :
|
/usr/sbin/groupadd -r freeswitch 2> /dev/null || :
|
||||||
|
|
Loading…
Reference in New Issue