/
ekiga.spec
131 lines (113 loc) · 3.47 KB
/
ekiga.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
%define opal_version 3.10.10
%define kde_support 0
%{?_kde_support: %{expand: %%global kde_support 1}}
#define _disable_rebuild_configure 1
Summary: Voice and Video over IP software (H323 / SIP)
Name: ekiga
Version: 4.0.1
Release: 16
License: GPLv2+
Group: Video
Url: http://www.ekiga.org
Source0: http://ftp.gnome.org/pub/GNOME/sources/ekiga/4.0/%{name}-%{version}.tar.xz
Patch1: ekiga-4.0.1-libresolv.patch
BuildRequires: desktop-file-utils
BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: scrollkeeper
BuildRequires: xsltproc
BuildRequires: boost-devel
BuildRequires: gettext-devel
BuildRequires: openldap-devel
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(avahi-glib)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gnome-doc-utils)
BuildRequires: pkgconfig(gnome-icon-theme)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libebook-1.2)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(opal) >= %{opal_version}
Buildrequires: pkgconfig(ptlib) >= 2.10.9
BuildRequires: pkgconfig(sigc++-2.0)
BuildRequires: pkgconfig(xv)
%if %kde_support
BuildRequires: kdelibs4-devel
%endif
%rename gnomemeeting
Requires(post,postun): scrollkeeper >= 0.3
Requires: gnome-icon-theme
Requires: opal3 >= %{opal_version}
Suggests: yelp
%description
Ekiga is a tool to communicate with video and audio over the internet.
It uses both SIP and H323 protocol and is compatible with Microsoft Netmeeting.
It used to be called GnomeMeeting
%prep
%setup -q
%apply_patches
%build
%if %kde_support
QTDIR="/usr/lib/qt4" ; export QTDIR ;
PATH="/usr/lib/qt4/bin:$PATH" ; export PATH ;
%endif
export CXX="%__cxx -std=gnu++11"
%configure \
%if %kde_support
--enable-kde \
%endif
--disable-schemas-install \
--enable-dbus \
--disable-gdu \
--disable-gconf
make
%install
%makeinstall_std
%find_lang %{name} --with-gnome
desktop-file-install --vendor="" \
--remove-category="Application" \
--add-category="X-MandrivaLinux-CrossDesktop" \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*
%define launchers %{_sysconfdir}/dynamic/launchers/webcam
# dynamic support
mkdir -p %{buildroot}%{launchers}
cat > %{buildroot}%{launchers}/%{name}.desktop << EOF
[Desktop Entry]
Name=Ekiga \$devicename
Comment=Ekiga
TryExec=%{_bindir}/ekiga
Exec=%{_bindir}/ekiga
Terminal=false
Icon=ekiga
Type=Application
StartupNotify=true
EOF
rm -rf %{buildroot}/var/lib/scrollkeeper
%preun
if [ -r %{_sysconfdir}/gconf/schemas/gnomemeeting.schemas -a -x %{_bindir}/gconftool-2 ]; then
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnomemeeting.schemas > /dev/null
update-alternatives --remove webcam.kde.dynamic %{launchers}/gnomemeeting.desktop
update-alternatives --remove webcam.gnome.dynamic %{launchers}/gnomemeeting.desktop
fi
%preun_uninstall_gconf_schemas %{schemas}
%postun
if [ "$1" = "0" ]; then
update-alternatives --remove webcam.kde.dynamic %{launchers}/%{name}.desktop
update-alternatives --remove webcam.gnome.dynamic %{launchers}/%{name}.desktop
fi
%files -f %{name}.lang
%doc README NEWS FAQ AUTHORS TODO
%config(noreplace) %{launchers}/*.desktop
%{_bindir}/*
%{_libdir}/%{name}
%{_sysconfdir}/ekiga/*
%{_datadir}/dbus-1/services/org.ekiga*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/sounds/*
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/*/*