ekiga.spec
author jl141263
Fri, 14 Apr 2006 12:50:58 +0000
changeset 7075 4fdcc4c3cbb0
child 7283 c6e3350d9c78
permissions -rw-r--r--
* ekiga.spec: Added. missed in the previous commit operation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7075
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     1
#
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     2
# spec file for package ekiga
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     3
#
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     6
# package are under the same license as the package itself.
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     7
#
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     8
Name:		ekiga
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
     9
License:	GPL
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    10
Group:		X11/GNOME/Applications
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    11
Version:	2.0
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    12
Release:	1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    13
Vendor:		Sun Microsystems, Inc.
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    14
Distribution:	Java Desktop System
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    15
Summary:	A GNOME based H.323/SIP video conferencing application
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    16
Source0:	http://snapshots.seconix.com/cvs/%{name}-cvs-060403.tar.gz
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    17
Source1:	http://snapshots.seconix.com/cvs/pwlib-cvs-060330.tar.gz
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    18
Source2:	http://snapshots.seconix.com/cvs/opal-cvs-060330.tar.gz
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    19
Source3:	http://www.libsdl.org/release/SDL-1.2.9.tar.gz
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    20
Patch1:         ekiga-01-pwlib-cxxflags.diff
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    21
Patch2:         ekiga-02-pwlib-name.diff
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    22
Patch3:         ekiga-03-pwlib-plugindir.diff
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    23
Patch4:         ekiga-04-opal-name.diff
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    24
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    25
URL:		http://www.gnomemeeting.org
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    26
BuildRoot:	%{_tmppath}/%{name}-root
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    27
Docdir:       	%{_docdir}/%{name}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    28
Autoreqprov:  	on
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    29
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    30
%define libsdl_version 1.2.9
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    31
%define pwlib_version 1.11.0
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    32
%define opal_version 2.3.0
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    33
%define GConf_version 2.4.0.1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    34
%define gtk2_version 2.3.1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    35
%define openldap2_devel_version 2.1.4
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    36
%define intltool_version 0.27
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    37
%define libgnomeui_version 2.4.0.1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    38
%define des_version 4.04
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    39
%define heimdal_version 0.4
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    40
%define cyrus_sasl_version 1.5.27
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    41
%define openssl_version 0.9.6
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    42
%define flex_version 2.5.4
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    43
%define slang_version 1.4.5
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    44
%define pam_version 0.76
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    45
%define db_version 4.0.14
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    46
%define gdbm_version 1.8.0
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    47
%define howl_version 1.0.0
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    48
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    49
Requires: libsdl >= %{libsdl_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    50
Requires: pwlib >= %{pwlib_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    51
Requires: opal >= %{opal_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    52
Requires: GConf >= %{GConf_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    53
Requires: libgnomeui >= %{libgnomeui_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    54
Requires: howl >= %{howl_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    55
Requires: evolution-data-server
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    56
BuildRequires: gtk2-devel >= %{gtk2_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    57
BuildRequires: GConf-devel >= %{GConf_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    58
BuildRequires: openh323-devel >= %{openh323_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    59
BuildRequires: pwlib-devel >= %{pwlib_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    60
BuildRequires: intltool >= %{intltool_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    61
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    62
BuildRequires: des >= %{des_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    63
BuildRequires: heimdal-devel >= %{heimdal_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    64
BuildRequires: cyrus-sasl-devel >= %{cyrus_sasl_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    65
BuildRequires: openssl-devel >= %{openssl_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    66
BuildRequires: openldap2-devel >= %{openldap2_devel_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    67
BuildRequires: flex >= %{flex_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    68
BuildRequires: slang-devel >= %{slang_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    69
BuildRequires: pam-devel >= %{pam_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    70
BuildRequires: db-devel >= %{db_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    71
BuildRequires: gdbm-devel >= %{gdbm_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    72
BuildRequires: howl-devel >= %{howl_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    73
BuildRequires: evolution-data-server-devel
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    74
Prereq:        GConf
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    75
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    76
%description
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    77
Ekiga is a free Voice over IP phone allowing you to do free calls over   
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    78
the Internet. Ekiga is the first Open Source application to support 
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    79
both H.323 and SIP, as well as audio and video. Ekiga was formerly known 
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    80
as GnomeMeeting. 
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    81
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    82
%prep
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    83
%setup -q -b 1 -b 2 -b 3 -n %{name}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    84
cd ../pwlib
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    85
%patch1 -p1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    86
%patch2 -p1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    87
%patch3 -p1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    88
cd ../opal
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    89
%patch4 -p1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    90
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    91
%build
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    92
%ifos linux
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    93
if [ -x /usr/bin/getconf ]; then
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    94
  CPUS=`getconf _NPROCESSORS_ONLN`
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    95
fi
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    96
%else
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    97
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    98
%endif
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
    99
if test "x$CPUS" = "x" -o $CPUS = 0; then
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   100
  CPUS=1
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   101
fi
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   102
export PKG_CONFIG=/usr/bin/pkg-config
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   103
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   104
# build libsdl
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   105
LDFLAGS="$LDFLAGS -L$RPM_BUILD_ROOT%{_libdir}/%{name}"
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   106
CFLAGS="$CFLAGS -I$RPM_BUILD_ROOT%{_includedir}"
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   107
CXXFLAGS="$CXXFLAGS -I$RPM_BUILD_ROOT%{_includedir}"
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   108
export LDFLAGS CFLAGS CXXFLAGS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   109
cd ../SDL-%{libsdl_version}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   110
./configure --prefix=%{_prefix} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   111
            --libdir=%{_libdir}/%{name} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   112
            --bindir=%{_bindir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   113
            --datadir=%{_datadir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   114
            --includedir=%{_includedir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   115
            --mandir=%{_mandir} 
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   116
make -j $CPUS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   117
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   118
rm -rf $RPM_BUILD_ROOT
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   119
make install DESTDIR=$RPM_BUILD_ROOT 
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   120
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   121
# build pwlib
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   122
cd ../pwlib
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   123
#FIXME
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   124
# set RPM_OPT_FLAGS to null since pwlib messly uses
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   125
# STDCCFLAGS for both CC and CXX, which picks up the
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   126
# value of RPM_OPT_FLAGS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   127
RPM_OPT_FLAGS_SAVE=$RPM_OPT_FLAGS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   128
RPM_OPT_FLAGS=""
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   129
PWLIBDIR=`pwd`
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   130
export RPM_OPT_FLAGS PWLIBDIR
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   131
autoconf
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   132
./configure --prefix=%{_prefix} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   133
            --libdir=%{_libdir}/%{name} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   134
            --bindir=%{_bindir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   135
            --datadir=%{_datadir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   136
            --includedir=%{_includedir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   137
            --mandir=%{_mandir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   138
            --enable-plugins \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   139
            --enable-resolver \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   140
            --enable-opal \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   141
            --enable-sunaudio
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   142
make -j $CPUS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   143
make install DESTDIR=$RPM_BUILD_ROOT
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   144
# set original RPM_OPT_FLAGS back
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   145
RPM_OPT_FLAGS=$RPM_OPT_FLAGS_SAVE
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   146
export RPM_OPT_FLAGS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   147
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   148
# build opal
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   149
cd ../opal
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   150
./configure --prefix=%{_prefix} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   151
            --libdir=%{_libdir}/%{name} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   152
            --bindir=%{_bindir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   153
            --datadir=%{_datadir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   154
            --includedir=%{_includedir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   155
            --mandir=%{_mandir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   156
	    --enable-localspeex
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   157
make -j $CPUS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   158
make install DESTDIR=$RPM_BUILD_ROOT
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   159
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   160
# build ekiga
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   161
cd ../%{name}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   162
ACLOCAL_FLAGS="$ACLOCAL_FLAG -I $RPM_BUILD_ROOT%{_datadir}/aclocal"
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   163
SDL_CONFIG=$RPM_BUILD_ROOT%{_bindir}/sdl-config
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   164
sed -e "s|^prefix=.*$|prefix=$RPM_BUILD_ROOT%{_prefix}|" \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   165
    -e "s|\(-[LI]\)/usr|\1${RPM_BUILD_ROOT}/usr|g" \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   166
    -e "s|-R[^ \"]*|-R%{_libdir}/%{name}|g" \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   167
      $SDL_CONFIG > $SDL_CONFIG.tmp
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   168
cat $SDL_CONFIG.tmp > $SDL_CONFIG
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   169
rm -f $SDL_CONFIG.tmp
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   170
export SDL_CONFIG ACLOCAL_FLAGS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   171
./autogen.sh --prefix=%{_prefix} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   172
             --libdir=%{_libdir}/%{name} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   173
             --bindir=%{_bindir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   174
             --datadir=%{_datadir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   175
             --includedir=%{_includedir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   176
             --mandir=%{_mandir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   177
	     --sysconfdir=%{_sysconfdir} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   178
	     --with-pwlib-dir=$RPM_BUILD_ROOT%{_prefix} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   179
	     --with-opal-dir=$RPM_BUILD_ROOT%{_prefix} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   180
	     --with-sdl-prefix=$RPM_BUILD_ROOT%{_prefix} \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   181
	     --disable-avahi \
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   182
	     --disable-scrollkeeper
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   183
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   184
make -j $CPUS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   185
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   186
%install
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   187
rm -rf $RPM_BUILD_ROOT%{_bindir}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   188
rm -rf $RPM_BUILD_ROOT%{_datadir}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   189
rm -rf $RPM_BUILD_ROOT%{_mandir}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   190
rm -rf $RPM_BUILD_ROOT%{_includedir}
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   191
make install DESTDIR=$RPM_BUILD_ROOT
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   192
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   193
%clean
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   194
rm -rf $RPM_BUILD_ROOT
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   195
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   196
%post 
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   197
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   198
SCHEMAS="ekiga.schemas"
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   199
for S in $SCHEMAS; do
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   200
        gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   201
done
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   202
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   203
%files
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   204
%defattr(-,root,root)
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   205
%doc FAQ AUTHORS NEWS
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   206
%dir %{_datadir}/ekiga/xdap
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   207
%dir %{_datadir}/sounds/ekiga
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   208
#%{_datadir}/man/man1/ekiga.1.gz
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   209
%{_bindir}/ekiga*
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   210
%{_datadir}/locale/*/LC_MESSAGES/ekiga.mo
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   211
%{_datadir}/applications/ekiga.desktop
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   212
%{_datadir}/sounds/ekiga/*
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   213
%{_datadir}/pixmaps/ekiga*
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   214
%{_libdir}/bonobo/servers/ekiga.server
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   215
%{_datadir}/ekiga/xdap/*
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   216
%{_sysconfdir}/gconf/schemas/ekiga.schemas
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   217
%{_datadir}/gnome/*
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   218
%{_datadir}/omf/*
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   219
%{_mandir}/man1/*
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   220
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   221
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   222
%changelog
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   223
* Fri Apr 14 2006 - <[email protected]>
4fdcc4c3cbb0 * ekiga.spec: Added. missed in the previous commit operation
jl141263
parents:
diff changeset
   224
- Initial release for ekiga