]> git.pld-linux.org Git - packages/asterisk.git/blobdiff - asterisk.spec
- BR freetds >= 0.63
[packages/asterisk.git] / asterisk.spec
index db7482df4f9579564ea66c17f37b7efe040d5fa5..aded160209fd27c07e7dde1906ec17e95bb65b00 100644 (file)
 Summary:       Asterisk PBX
 Summary(pl):   Centralka (PBX) Asterisk
 Name:          asterisk
-Version:       1.0.6
-Release:       2
+Version:       1.0.7
+Release:       3
 License:       GPL v2
 Group:         Applications/System
 Source0:       ftp://ftp.digium.com/pub/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: c16efa9a64564763a0d9e3e1e9350c8d
+# Source0-md5: 4cc3c1e4a1b12e0e4c748326ad153291
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Patch0:                %{name}-openh323-makefile.patch
 Patch1:                %{name}-Makefile_fix_gcc33.patch
 Patch2:                %{name}-no_k6_on_sparc.patch
 Patch3:                %{name}-lib.patch
+Patch4:                %{name}-openh323-formats.patch
+Patch5:                %{name}-openh323-rtti.patch
+Patch6:                %{name}-freetds.patch
 # It's included, but these sources are broken by me :)
 # will fit on clean cvs source
 #Patch1:               %{name}-DESTDIR.patch
 #Patch2:               %{name}-Makefile2.patch
 URL:           http://www.asterisk.org/
 BuildRequires: bison
+BuildRequires: freetds >= 0.63
 BuildRequires: gawk
 #BuildRequires:        glib-devel
 #BuildRequires:        gtk+-devel
@@ -46,12 +50,12 @@ BuildRequires:      zlib-devel
 # With openh323 1.11.7 and pwlib 1.4.11 i had sig11
 #BuildRequires:        openh323-devel = 1.10.4
 #BuildRequires:        pwlib-devel = 1.4.4
-%{!?without_h323:BuildRequires:        openh323-devel}
-%{!?without_h323:BuildRequires:        pwlib-devel}
+%{?with_openh323:BuildRequires:        openh323-devel}
+%{?with_openh323:BuildRequires:        pwlib-devel}
 PreReq:                rc-scripts
 Requires(post,preun):  /sbin/chkconfig
-%{?without_h323:%requires_eq   openh323}
-%{?without_h323:%requires_eq   pwlib}
+%{?with_openh323:%requires_eq  openh323}
+%{?with_openh323:%requires_eq  pwlib}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -108,25 +112,26 @@ Pliki przyk
 %patch1 -p0
 %patch2
 %patch3 -p1
-#%patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
 
 sed -i -e "s#/usr/lib/#/usr/%{_lib}/#g#" Makefile
 
 %build
 rm -f pbx/.depend
-%{__make} \
+%{__make} -j1 \
        CC="%{__cc}" \
        OPTIMIZE="%{rpmcflags}"
 
-%if %{with h323}
+%if %{with openh323}
 # H323 plugin:
-%{__make} -C channels/h323 \
+%{__make} -j1 -C channels/h323 \
        PWLIBDIR="%{_prefix}" \
        OPENH323DIR="%{_prefix}" \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags} -I/usr/include/openh323 -fPIC -I../../include"
+
 %endif
 
 # it requires doxygen - I don't know if we should do this...
@@ -136,14 +141,18 @@ rm -f pbx/.depend
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/var/{log/asterisk/cdr-csv,spool/asterisk/monitor},/etc/{rc.d/init.d,sysconfig}}
 
-%{__make} install \
+%{__make} -j1 install \
        DESTDIR=$RPM_BUILD_ROOT 
-%{__make} samples \
+%{__make} -j1 samples \
        DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
+%if %{with openh323}
+install channels/h323/h323.conf.sample $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/h323.conf
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.080867 seconds and 4 git commands to generate.