From 4cc394e3b34a2b9ab55ceceb5d9fcae35b4df1c2 Mon Sep 17 00:00:00 2001 From: Jeffrey C. Ollie Date: Dec 16 2007 04:10:52 +0000 Subject: Really, really fix the build problems. --- diff --git a/asterisk.spec b/asterisk.spec index 00fbc45..f1f5d1e 100644 --- a/asterisk.spec +++ b/asterisk.spec @@ -1,11 +1,16 @@ +%define with_apidoc %{?_with_apidoc: 1} %{!?_with_apidoc: 0} + Summary: The Open Source PBX Name: asterisk Version: 1.4.15 -Release: 3%{?dist} +Release: 7%{?dist} License: GPLv2 Group: Applications/Internet URL: http://www.asterisk.org/ +# will file a bug once the asterisk bugzilla component shows up +ExcludeArch: ppc64 + # The asterisk tarball contains some items that we don't want in there, # so start with the original tarball from here: # http://downloads.digium.com/pub/telephony/asterisk/releases/asterisk-%{version}.tar.gz @@ -45,15 +50,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) # core build requirements BuildRequires: openssl-devel BuildRequires: newt-devel +%if 0%{?fedora} <= 8 BuildRequires: libtermcap-devel +%endif BuildRequires: ncurses-devel BuildRequires: libcap-devel BuildRequires: gtk2-devel +%if %{with_apidoc} # for building docs BuildRequires: doxygen BuildRequires: graphviz BuildRequires: graphviz-gd +%endif # for codec_speex and app_conference BuildRequires: speex-devel >= 1.2 @@ -87,6 +96,7 @@ BuildRequires: alsa-lib-devel %description alsa Modules for Asterisk that use Alsa sound drivers. +%if %{with_apidoc} %package apidoc Summary: API documentation for Asterisk Group: Applications/Internet @@ -94,6 +104,7 @@ Requires: asterisk = %{version}-%{release} %description apidoc API documentation for Asterisk. +%endif %package conference Summary: Audio/video conferencing application for Asterisk @@ -363,10 +374,12 @@ mv apps/app_directory.so apps/app_directory_odbc.so touch apps/app_voicemail.o apps/app_directory.o touch apps/app_voicemail.so apps/app_directory.so +%if %{with_apidoc} ASTCFLAGS="%{optflags}" make progdocs DEBUG= OPTIMIZE= ASTVARRUNDIR=%{_localstatedir}/run/asterisk ASTDATADIR=%{_datadir}/asterisk NOISY_BUILD=1 # fix dates so that we don't get multilib conflicts find doc/api/html -type f -print0 | xargs --null touch -r ChangeLog +%endif %install rm -rf %{buildroot} @@ -402,7 +415,9 @@ rm -f %{buildroot}%{_datadir}/asterisk/agi-bin/* # Don't package the sample voicemail user rm -rf %{buildroot}%{_localstatedir}/spool/asterisk/voicemail/default +%if %{with_apidoc} find doc/api/html -name \*.map -size 0 -delete +%endif %clean rm -rf %{buildroot} @@ -709,9 +724,11 @@ fi %config(noreplace) %{_sysconfdir}/asterisk/alsa.conf %{_libdir}/asterisk/modules/chan_alsa.so +%if %{with_apidoc} %files apidoc %defattr(-,root,root,-) %doc doc/api/html/* +%endif %files conference %defattr(-,root,root,-) @@ -859,6 +876,18 @@ fi %{_libdir}/asterisk/modules/codec_zap.so %changelog +* Sat Dec 15 2007 Jeffrey C. Ollie - 1.4.15-7 +- Really, really fix the build problems on devel. + +* Sat Dec 15 2007 Jeffrey C. Ollie - 1.4.15-6 +- Tweaks to get to build on x86_64 + +* Wed Dec 12 2007 Jeffrey C. Ollie - 1.4.15-5 +- Exclude PPC64 + +* Wed Dec 12 2007 Jeffrey C. Ollie - 1.4.15-4 +- Don't build apidocs by default since there's a problem building on x86_64. + * Tue Dec 11 2007 Jeffrey C. Ollie - 1.4.15-3 - Really get rid of zero length map files.