]> git.pld-linux.org Git - packages/asterisk.git/blobdiff - asterisk.spec
- now we build from our sources, STBR AC-TEST,
[packages/asterisk.git] / asterisk.spec
index c0b149d424d7610d3296b54d1346fb1251688c2a..d8107971acda26c87b5dad894879e0c7745e053e 100644 (file)
 Summary:       Asterisk PBX
 Summary(pl):   Centralka (PBX) Asterisk
 Name:          asterisk
-Version:       1.0.0
-Release:       1
+Version:       1.0.6
+Release:       2
 License:       GPL v2
 Group:         Applications/System
 Source0:       ftp://ftp.digium.com/pub/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 7d14fb592d3922b5c16bb0423467a165
+# Source0-md5: c16efa9a64564763a0d9e3e1e9350c8d
 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
 # It's included, but these sources are broken by me :)
 # will fit on clean cvs source
 #Patch1:               %{name}-DESTDIR.patch
@@ -34,19 +37,21 @@ BuildRequires:      libpri-devel
 BuildRequires: mysql-devel
 BuildRequires: ncurses-devel
 BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: sed >= 4.0
 BuildRequires: speex-devel
 BuildRequires: zaptel-devel
 BuildRequires: zlib-devel
+#BuildRequires:        mpg123
 # These libraries are crazy...
 # 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
-%{?with_h323:BuildRequires:    openh323-devel}
-%{?with_h323:BuildRequires:    pwlib-devel}
+%{!?without_h323:BuildRequires:        openh323-devel}
+%{!?without_h323:BuildRequires:        pwlib-devel}
 PreReq:                rc-scripts
 Requires(post,preun):  /sbin/chkconfig
-%{?with_h323:%requires_eq      openh323}
-%{?with_h323:%requires_eq      pwlib}
+%{?without_h323:%requires_eq   openh323}
+%{?without_h323:%requires_eq   pwlib}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -100,20 +105,29 @@ Pliki przyk
 
 %prep
 %setup -q
+%patch1 -p0
+%patch2
+%patch3 -p1
 #%patch0 -p1
 #%patch1 -p1
 #%patch2 -p1
 
+sed -i -e "s#/usr/lib/#/usr/%{_lib}/#g#" Makefile
+
 %build
 rm -f pbx/.depend
-%{__make}
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
 
-%if %{with h323}
+%if %{!without h323}
 # H323 plugin:
 cd channels/h323/
 %{__make} \
-       PWLIBDIR="/usr" \
-       OPENH323DIR="/usr"
+       PWLIBDIR="%{_prefix}" \
+       OPENH323DIR="%{_prefix}" \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -I/usr/include/openh323 -fPIC -fpic -I../../include"
 cd ../../
 %endif
 
@@ -188,7 +202,7 @@ fi
 %dir /var/spool/asterisk/voicemail/default
 %dir /var/log/asterisk
 %dir /var/log/asterisk/cdr-csv
-%{_mandir}/man8/asterisk.8.gz
+%{_mandir}/man8/asterisk.8*
 %dir /var/lib/asterisk/firmware
 %dir /var/lib/asterisk/firmware/iax
 /var/lib/asterisk/firmware/iax/iaxy.bin
This page took 0.044586 seconds and 4 git commands to generate.