Commit dc5ab9fe authored by Julien Bonjean's avatar Julien Bonjean

[#2181] Added spec files for OSC

parent 4a40e386
......@@ -9,7 +9,6 @@
*.m4
*.Tpo
Makefile.in
*.spec
/config.*
*.swp
*.so
......
#####################################################
# File Name: sflphone-client-gnome.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-10-07
#####################################################
Name: sflphone-client-gnome
License: GNU General Public License (GPL)
Group: Productivity/Networking/System
Summary: GNOME client for SFLphone
Version: 0.9.6
Release: opensuse
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}
Source0: sflphone-client-gnome-%{version}.tar.gz
%if %{defined suse_version}
BuildRequires: update-desktop-files
BuildRequires: liblog4c-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: libgnomeui-devel
%endif
%if %{defined fedora_version}
BuildRequires: log4c-devel
BuildRequires: dbus-glib-devel
BuildRequires: gnome-doc-utils
BuildRequires: libgnomeui-devel
# fix libproxy-pac expansion error
BuildRequires: libproxy-webkit
# fix PolicyKit-authentication-agent expansion error
BuildRequires: PolicyKit-gnome
%endif
%if %{defined mandriva_version}
BuildRequires: log4c-devel
BuildRequires: libgnomeui2-devel
BuildRequires: libdbus-glib-1_2-devel
BuildRequires: gnome-doc-utils
# fix libesound0 expansion error
BuildRequires: pulseaudio-esound-compat
# fix libproxy-pac expansion error
BuildRequires: libproxy-webkit
%endif
BuildRequires: gtk2-devel
BuildRequires: libnotify-devel
BuildRequires: libsexy-devel
BuildRequires: evolution-data-server-devel
BuildRequires: check-devel
Requires: sflphone-common = %{version}
Requires: dbus-1-glib
Requires: gtk2
Requires: glib2
Requires: libnotify
Requires: librsvg
Requires: liblog4c3
Requires: libsexy
# gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
Conflicts: sflphone
Prefix: %{_prefix}
%description
Provide a GNOME client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
SFLphone is released under the GNU General Public License.
SFLphone is being developed by the global community, and maintained by
Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%lang_package
%prep
%setup -q
%build
./autogen.sh
./configure --prefix=%{_prefix}
make
%install
make DESTDIR=%{buildroot} install
%if %{defined suse_version}
%suse_update_desktop_file -n %{buildroot}/%{_prefix}/share/applications/sflphone.desktop
%endif
rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper
%clean
make clean
%files
%defattr(-, root, root)
%dir %{_prefix}/share/sflphone
%dir %{_prefix}/share/omf/sflphone
%lang(fr) %{_prefix}/share/locale/fr/LC_MESSAGES/*.mo
%lang(es) %{_prefix}/share/locale/es/LC_MESSAGES/*.mo
%lang(de) %{_prefix}/share/locale/de/LC_MESSAGES/*.mo
%lang(ru) %{_prefix}/share/locale/ru/LC_MESSAGES/*.mo
%lang(zh_CN) %{_prefix}/share/locale/zh_CN/LC_MESSAGES/*.mo
%lang(zh_HK) %{_prefix}/share/locale/zh_HK/LC_MESSAGES/*.mo
%doc AUTHORS COPYING README
%doc %{_prefix}/share/man/man1/sflphone-client-gnome.1.gz
%doc %{_prefix}/share/man/man1/sflphone.1.gz
%doc %{_prefix}/share/gnome/help/sflphone
%{_prefix}/bin/sflphone
%{_prefix}/bin/sflphone-client-gnome
%{_prefix}/share/pixmaps/sflphone.svg
%{_prefix}/share/applications/sflphone.desktop
%{_prefix}/share/sflphone/*.svg
%{_prefix}/share/sflphone/*.gif
%{_prefix}/share/sflphone/log4crc
%{_prefix}/share/omf/sflphone/*
%changelog
#####################################################
# File Name: sflphone-client-kde.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-10-07
#####################################################
Name: sflphone-client-kde
License: GNU General Public License (GPL)
Group: Productivity/Networking/System
Summary: KDE client for SFLphone
Version: 0.9.6
Release: opensuse
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}
Source0: sflphone-client-kde-%{version}.tar.gz
Requires: sflphone-common = %{version}
Requires: commoncpp2
Requires: libkdepimlibs4
Requires: libqt4-dbus-1
Requires: libqt4-svg
Requires: libqt4-x11
%if %{defined suse_version}
BuildRequires: update-desktop-files
BuildRequires: libkdepimlibs4-devel
BuildRequires: libqt4-devel >= 4.3
BuildRequires: gettext-tools
%endif
%if %{defined fedora_version}
BuildRequires: gcc-c++
BuildRequires: kdepimlibs-devel
BuildRequires: qt4
BuildRequires: gettext
%endif
BuildRequires: cmake
BuildRequires: commoncpp2-devel
Conflicts: sflphone
Prefix: %{_prefix}
%description
Provide a KDE client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
SFLphone is released under the GNU General Public License.
SFLphone is being developed by the global community, and maintained by
Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%lang_package
%prep
%setup -q
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}/%{_prefix}/share/pixmaps
cp src/icons/sflphone.svg %{buildroot}/%{_prefix}/share/pixmaps/sflphone.svg
%suse_update_desktop_file -n %{buildroot}/%{_prefix}/share/applications/kde4/sflphone-client-kde.desktop
%clean
make clean
%files
%defattr(-, root, root)
%dir %{_prefix}/share/doc/kde/HTML/en/sflphone-client-kde
%dir %{_prefix}/share/kde4/apps/sflphone-client-kde
%lang(fr) %{_prefix}/share/locale/fr/LC_MESSAGES/*.mo
%lang(es) %{_prefix}/share/locale/es/LC_MESSAGES/*.mo
%lang(de) %{_prefix}/share/locale/de/LC_MESSAGES/*.mo
%lang(ru) %{_prefix}/share/locale/ru/LC_MESSAGES/*.mo
%lang(zh_CN) %{_prefix}/share/locale/zh_CN/LC_MESSAGES/*.mo
%lang(zh_HK) %{_prefix}/share/locale/zh_HK/LC_MESSAGES/*.mo
%doc AUTHORS COPYING README
%doc %{_prefix}/share/man/man1/sflphone-client-kde.1.gz
%doc %{_prefix}/share/doc/kde/HTML/en/sflphone-client-kde/*
%{_prefix}/share/kde4/apps/sflphone-client-kde/*
%{_prefix}/share/kde4/config.kcfg/sflphone-client-kde.kcfg
%{_prefix}/bin/sflphone-client-kde
%{_prefix}/share/applications/kde4/sflphone-client-kde.desktop
%{_prefix}/share/pixmaps/sflphone.svg
%{_prefix}/share/icons/hicolor/128x128/apps/sflphone-client-kde.png
%{_prefix}/share/icons/hicolor/16x16/apps/sflphone-client-kde.png
%{_prefix}/share/icons/hicolor/22x22/apps/sflphone-client-kde.png
%{_prefix}/share/icons/hicolor/32x32/apps/sflphone-client-kde.png
%{_prefix}/share/icons/hicolor/48x48/apps/sflphone-client-kde.png
%{_prefix}/share/icons/hicolor/64x64/apps/sflphone-client-kde.png
%{_prefix}/share/icons/hicolor/scalable/apps/sflphone-client-kde.svgz
%changelog
#####################################################
# File Name: sflphone-common.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-10-07
#####################################################
Name: sflphone-common
License: GNU General Public License (GPL)
Group: System Environment/Daemons
Summary: SIP and IAX2 compatible softphone - Core
Version: 0.9.6
Release: opensuse
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}
Source0: sflphone-common-%{version}.tar.gz
BuildRequires: speex-devel
BuildRequires: gcc-c++
BuildRequires: expat
BuildRequires: alsa-devel
BuildRequires: dbus-1-devel
BuildRequires: libzrtpcpp-devel
BuildRequires: commoncpp2-devel
BuildRequires: libsamplerate-devel
%if %{defined suse_version}
BuildRequires: libpulse-devel
BuildRequires: libccrtp-devel
BuildRequires: libexpat-devel
BuildRequires: libgsm-devel
BuildRequires: libcppunit-devel
BuildRequires: libuuid-devel
BuildRequires: libopenssl-devel
BuildRequires: libexpat0
%endif
%if %{defined fedora_version}
BuildRequires: pulseaudio-libs-devel
BuildRequires: openssl-devel
BuildRequires: openssl
BuildRequires: expat-devel
BuildRequires: ccrtp-devel
BuildRequires: cppunit-devel
BuildRequires: uuid-devel
BuildRequires: gsm-devel
%endif
Requires: libsamplerate
Requires: libexpat1
Requires: commoncpp2
Requires: libgsm1
Requires: libspeex
Requires: dbus-1
Requires: dbus-1-x11
Requires: xorg-x11
Requires: libasound2
Requires: libpulse0
Requires: libccrtp1
Conflicts: sflphone
Prefix: %{_prefix}
%description
SFLphone is meant to be a robust enterprise-class desktop phone.
SFLphone is released under the GNU General Public License.
SFLphone is being developed by the global community, and maintained by
Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%prep
%setup -q
%build
cd libs/pjproject
./autogen.sh
./configure --prefix=%{_prefix}
make dep
make clean
make
cd -
./autogen.sh
./configure --prefix=%{_prefix}
make -j
%install
make DESTDIR=%{buildroot} install
rm -rf %{buildroot}/%{_prefix}/include
%clean
cd libs/pjproject
make clean
cd -
make clean
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README TODO
%dir %{_prefix}/lib/sflphone
%dir %{_prefix}/lib/sflphone/codecs
%dir %{_prefix}/lib/sflphone/plugins
%dir %{_prefix}/share/sflphone
%dir %{_prefix}/share/sflphone/ringtones
%{_prefix}/lib/libdbus-*
%{_prefix}/lib/sflphone/codecs/*
%{_prefix}/lib/sflphone/plugins/*
%{_prefix}/share/dbus-1/services/org.sflphone.*
%{_prefix}/share/sflphone/ringtones/*
%{_prefix}/lib/sflphone/sflphoned
%doc %{_prefix}/share/man/man1/sflphoned.1.gz
%changelog
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment