sflphone/sflphone.spec

180 lines
4.8 KiB
RPMSpec
Raw Normal View History

2012-05-27 16:30:42 +04:00
%define major 4
%define libqtsflphone %mklibname qtsflphone %{major}
%define libqtsflphonedevel %mklibname qtsflphone -d
2012-02-01 20:39:06 +04:00
Summary: A robust standards-compliant enterprise softphone
Name: sflphone
2012-05-27 16:30:42 +04:00
Version: 1.1.0
Release: %mkrel 1
2012-02-01 20:39:06 +04:00
Url: http://www.sflphone.org/
2012-05-27 16:30:42 +04:00
Source0: https://projects.savoirfairelinux.com/attachments/download/2865/%{name}-%{version}.tar.gz
# pjsip is GPLv2+; sflphone-common is GPLv3+
License: GPLv2+ and GPLv3+
2012-02-01 20:39:06 +04:00
Group: Communications
BuildRequires: openssl-devel libcommoncpp-devel yaml-devel celt-devel
BuildRequires: libccrtp-devel libzrtpcpp-devel astyle libgsm-devel
BuildRequires: libsamplerate-devel libalsa-devel libpulseaudio-devel libspeex-devel
2012-05-27 16:30:42 +04:00
BuildRequires: libuuid-devel dbus-devel libexpat-devel
BuildRequires: dbus-glib-devel libnotify-devel gtk+3-devel glib2-devel
BuildRequires: webkitgtk3-devel libgnomeui2-devel gnome-doc-utils
2012-02-01 20:39:06 +04:00
BuildRequires: evolution-data-server-devel libcheck-devel >= 0.9.4
2012-05-27 16:30:42 +04:00
BuildRequires: pcre-devel
BuildRequires: cmake
BuildRequires: kdepim4-devel
BuildRequires: dbus-c++-devel
Suggests: %{name}-client
2012-02-01 20:39:06 +04:00
%description
SFLphone is a robust standards-compliant enterprise softphone, for desktop and
embedded systems. It is designed to handle several hundreds of calls a day.
Features highlight:
o UI-independant telephony core
o Enterprise scalability functions
o GNOME, KDE and CLI clients
o SIP and IAX2 protocols support
o Multi-line, call transfer, call hold, call recording
o Multi-way conferencing
o High definition audio codecs
o Signalling and voice encryption (TLS, SRTP)
o Pulseaudio support
2012-05-27 16:30:42 +04:00
%package plugins
Summary: A robust standards-compliant enterprise softphone
License: GPLv3+
Requires: %{name}
%description plugins
Plugins for SFLphone software phone.
2012-02-01 20:39:06 +04:00
%package client-gnome
Summary: A robust standards-compliant enterprise softphone
2012-05-27 16:30:42 +04:00
License: GPLv3+
2012-02-01 20:39:06 +04:00
Requires: %{name}
2012-05-27 16:30:42 +04:00
Provides: %{name}-client = %{EVRD}
2012-02-01 20:39:06 +04:00
%description client-gnome
This package contains the GNOME client for SFLphone.
2012-05-27 16:30:42 +04:00
%package client-kde
Summary: A robust standards-compliant enterprise softphone
License: GPLv3+
Requires: %{name}
Provides: %{name}-client = %{EVRD}
%description client-kde
This package contains the KDE client for SFLphone.
%package -n %{libqtsflphone}
Summary: Qt library for SFLphone client
License: GPLv3+
%description -n %{libqtsflphone}
This package contains the Qt library for SFLphone.
%package -n %{libqtsflphonedevel}
Summary: Qt library for SFLphone client
License: GPLv3+
Requires: %{libqtsflphone} = %{version}
Provides: qtsflphone-devel = %{EVRD}
%description -n %{libqtsflphonedevel}
This package contains Qt development files for SFLphone.
2012-02-01 20:39:06 +04:00
%prep
2012-05-27 16:30:42 +04:00
%setup -q -n %{name}
find kde/ -type f -not -name '*.sh' -exec chmod a-x {} \;
2012-02-01 20:39:06 +04:00
%build
2012-05-27 16:30:42 +04:00
pushd daemon/libs/pjproject
2012-02-01 20:39:06 +04:00
%configure2_5x --enable-libsamplerate
make dep
make
popd
2012-05-27 16:30:42 +04:00
pushd daemon
./autogen.sh
%configure2_5x
%make
popd
pushd plugins
./autogen.sh
2012-02-01 20:39:06 +04:00
%configure2_5x
%make
popd
2012-05-27 16:30:42 +04:00
pushd gnome
./autogen.sh
2012-02-01 20:39:06 +04:00
%configure2_5x --disable-schemas-install --disable-silent-rules
%make
popd
2012-05-27 16:30:42 +04:00
pushd kde
%cmake
%make
popd
2012-02-01 20:39:06 +04:00
%install
2012-05-27 16:30:42 +04:00
%makeinstall_std -C daemon
%makeinstall_std -C plugins
%makeinstall_std -C gnome
%makeinstall_std -C kde/build
2012-02-01 20:39:06 +04:00
2012-05-27 16:30:42 +04:00
install -d %{buildroot}%{_docdir}/slphone-plugins
install -d %{buildroot}%{_docdir}/slphone-client-gnome
install -d %{buildroot}%{_docdir}/slphone-client-kde
2012-02-01 20:39:06 +04:00
2012-05-27 16:30:42 +04:00
%find_lang %{name}-client-gnome --with-gnome
%find_lang %{name}-client-kde --with-kde
2012-02-01 20:39:06 +04:00
2012-05-27 16:30:42 +04:00
%files
%doc daemon/AUTHORS daemon/NEWS daemon/README daemon/TODO
2012-02-01 20:39:06 +04:00
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/codecs/
%{_libdir}/%{name}/sflphoned
%{_datadir}/dbus-1/services/org.sflphone.SFLphone.service
%{_mandir}/man1/sflphoned*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/ringtones/
2012-05-27 16:30:42 +04:00
%files plugins
%doc plugins/AUTHORS plugins/NEWS plugins/README
%{_libdir}/%{name}/plugins/
2012-02-01 20:39:06 +04:00
%files client-gnome -f %{name}-client-gnome.lang
2012-05-27 16:30:42 +04:00
%doc gnome/AUTHORS gnome/README gnome/NEWS
2012-02-01 20:39:06 +04:00
%{_sysconfdir}/gconf/schemas/sflphone-client-gnome.schemas
%{_bindir}/%{name}
%{_bindir}/%{name}-client-gnome
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome/help/%{name}/
%{_mandir}/man1/sflphone.1*
%{_mandir}/man1/sflphone-client-gnome.1*
%{_datadir}/omf/%{name}/
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/%{name}/*.svg
%{_datadir}/%{name}/*.gif
%{_datadir}/%{name}/ui/
%{_datadir}/%{name}/webkit/
2012-05-27 16:30:42 +04:00
%files client-kde -f %{name}-client-kde.lang
%doc kde/AUTHORS kde/NEWS kde/README
%{_bindir}/%{name}-client-kde
%{_kde_appsdir}/*
%{_kde_libdir}/kde4/*
%{_kde_applicationsdir}/*
%{_mandir}/man1/sflphone-client-kde.1*
%{_kde_services}/*
%{_iconsdir}/hicolor/*/apps/sflphone-client-kde.*
%{_kde_docdir}/HTML/en/*
%{_datadir}/config.kcfg/sflphone-client-kde.kcfg
%files -n %{libqtsflphone}
%{qt4lib}/libqtsflphone.so.%{major}
%{qt4lib}/libqtsflphone.so.%{version}
%files -n %{libqtsflphonedevel}
%{qt4lib}/libqtsflphone.so
%{_includedir}/qtsflphone/