File linphone.spec of Package linphone

#
# spec file for package linphone (Version 2.1.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           linphone
BuildRequires:  gnome-panel-devel gnutls-devel intltool libeXosip2-devel libgnomeprintui-devel libosip2-devel libwnck-devel perl-XML-Parser readline-devel speex-devel update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Networking/Other
Summary:        Web Phone
Version:        2.1.1
Release:        89
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.linphone.org
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}-manual.tar.bz2
Source2:        %{name}-po.tar.gz 
Patch1:         linphone-desktop.patch
Patch2:         linphone-2.1.1-no_online_help.patch
Patch3:         %name-1.3.0.patch
Patch4:         %name-2.0.1-speex.patch
#NoSource:       0

%description
Linphone is a Web phone with a GNOME interface. It lets you make
two-party calls over IP networks such as the Internet. It uses the IETF
protocols SIP (Session Initiation Protocol) and RTP (Realtime TransporT
Protocol) to make calls, so it should be able to communicate with other
SIP-based Web phones. With several codecs available, it can be used
with high speed connections as well as 28k modems.



Authors:
--------
    Simon Morlat <simon.morlat@linphone.org>

%package applet
License:        GPL v2 or later
Group:          Productivity/Networking/Other
Summary:        Web Phone
Requires:       %{name} = %{version}

%description applet
Linphone is a Web phone with a GNOME interface. It let you make
two-party calls over IP networks such as the Internet. It uses the IETF
protocols SIP (Session Initiation Protocol) and RTP (Realtime TransporT
Protocol) to make calls, so it should be able to communicate with other
SIP-based Web phones. With several codecs available, it can be used
with high speed connections as well as 28k modems.



Authors:
--------
    Simon Morlat <simon.morlat@linphone.org>

%package devel
License:        GPL v2 or later
Group:          Productivity/Networking/Other
Summary:        Web Phone
Requires:       %{name} = %{version} glib2-devel alsa-devel speex-devel glibc-devel libosip2-devel libeXosip2-devel

%description devel
Linphone is a Web phone with a GNOME interface. It lets you make
two-party calls over IP networks such as the Internet. It uses the IETF
protocols SIP (Session Initiation Protocol) and RTP (Realtime TransporT
Protocol) to make calls, so it should be able to communicate with other
SIP-based Web phones. With several codecs available, it can be used
with high speed connections as well as 28k modems.



Authors:
--------
    Simon Morlat <simon.morlat@linphone.org>

%prep
%setup -q -a2
%patch1
%patch2
%patch3
%patch4
find -name "CVS" -type d | xargs rm -rfv

%build
# needed for linphone-1.3.0:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure\
	--libexecdir=%{_prefix}/lib/gnome-panel\
	--disable-static \
	--disable-video
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
# install manual
tar xj -C $RPM_BUILD_ROOT%{_datadir}/gnome/help/ -f %{S:1}
#cleanup
rm -fv $RPM_BUILD_ROOT%{_includedir}/speex*
rm -fv $RPM_BUILD_ROOT%{_datadir}/doc/speex-1.1.4/manual.pdf
# FIXME: Upstream bug: Use GNOME2-style desktop files instead of GNOME1-style.
# install desktop file
install -D $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet/linphone.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/linphone.desktop
rm $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet/linphone.desktop
ln -s linphone/linphone2.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
%suse_update_desktop_file -D "linphone/index.xml.html" -G "SIP Phone" %name Network Telephony 
%find_lang %{name}
cat %{name}.lang
# delete unused man pages 
rm -rf $RPM_BUILD_ROOT%{_datadir}/man/cs/
# no need to package la files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/sounds/linphone
%{_libdir}/*.so.*
%{_datadir}/pixmaps/linphone
%doc %{_mandir}/man1/*.*
%{_datadir}/pixmaps/linphone2.png
%{_datadir}/images/nowebcamCIF.jpg
%{_datadir}/applications/linphone.desktop
%dir %{_datadir}/images

%files applet
%defattr(-,root,root)
#%{_libdir}/bonobo/servers/*.server
/usr/lib/gnome-panel/*

%files devel
%defattr(-,root,root)
%{_includedir}/linphone
%{_includedir}/ortp
%{_includedir}/mediastreamer2
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
* Mon May 25 2009 hvogel@suse.de
- Translations update
* Mon Jan 12 2009 mauro@suse.de 
- Translations update.
* Sat Dec 06 2008 mauro@suse.de
- Translations update.
* Wed Oct 22 2008 hvogel@suse.de
- get rid of autoreconf call to make it build again
* Fri Apr 18 2008 hvogel@suse.de
- Hide online help button, we dont have an XML file to pass to
  gnome_help_display so its of no use.
* Thu Apr 03 2008 hvogel@suse.de
- update to version 2.1.1
  * Clean up commands 'nat', 'stun' and 'firewall' to be
  more intuitive
  * Upgrade to newest gettext
- fix some rpmlint warnings
- get rid of libtool archives
* Fri Jan 18 2008 mskibbe@suse.de
- portate to new libosip version
- fix typo in linphone-1.3.0.patch
* Wed Jan 16 2008 mskibbe@suse.de
- update to version 2.0.1 which
  o use new (eX)osip version
  o Clean ANSI/C vs. ANSI/C++ differences
  o fix a lot of small bugs
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Tue Sep 04 2007 mskibbe@suse.de
- update to versin 1.7.1:
  * arts sound input/output
  * improved sound latency with alsa
  * alsa support works with dmix/dsnoop
  * fix a lot of bugs
* Tue Jun 19 2007 mskibbe@suse.de
- disable Werror
* Wed May 16 2007 ro@suse.de
- use libosip2-devel in buildrequires
* Thu Mar 08 2007 mskibbe@suse.de
- add missing directories
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Thu Feb 08 2007 mskibbe@suse.de
- fix build problems
* Tue Jan 16 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Thu Aug 10 2006 mskibbe@suse.de
- update to version 1.3.0 which includes
  o a lots of improvements in linphonec (see strk 's Changelogs below)
  o telephone event problem with sipomatic.
  o updated cz translation.
  o fix bugs around addressbook.
  o video support with H263-1998/RFC2429 nearly clean.
  o added timeout for incoming calls
* Sat Feb 18 2006 gekker@suse.de
- Update .desktop file for UI team
* Wed Feb 15 2006 stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 hvogel@suse.de
- Update to version 1.2.0
* Fri Nov 11 2005 hvogel@suse.de
- care about return values. Added
  * linphone-returnchecks.patch
* Wed Oct 05 2005 hvogel@suse.de
- update to version 1.1.0 drop
  * linphone-manual.patch
  * linphone-cs_cz.patch
  * linphone-cs_cz-fixes.patch
  * linphone-configure.patch
* Fri Sep 09 2005 hvogel@suse.de
- update cz translation
* Fri Jul 08 2005 mmj@suse.de
- fix more prototypes
* Tue Jul 05 2005 mmj@suse.de
- fix unitialized vars
- fix prototypes
* Wed May 18 2005 ro@suse.de
- fix build with current pkgconfig
* Wed Apr 20 2005 hvogel@suse.de
- fix bonobo server file to include an icon
- fix desktop file to have both Name and GenericName
- fix return values
* Tue Mar 22 2005 max@suse.de
- Update to final 1.0.0 version, which is more stable (#74253).
* Tue Mar 22 2005 sbrabec@suse.cz
- Moved applet bonobo server description to linphone-applet.
* Tue Mar 22 2005 coolo@suse.de
- split the gnome applet into an own package (#74199)
* Thu Mar 17 2005 hvogel@suse.de
- fix desktop file
* Tue Feb 15 2005 ro@suse.de
- added czech translations by Klara Cihlarova
* Thu Feb 03 2005 hvogel@suse.de
- add the manual so the manual button works
* Mon Jan 24 2005 ro@suse.de
- mark as NoSource (ffmpeg is there but unused).
* Wed Jan 19 2005 ro@suse.de
- update to 1.0.0pre6
- fixed more compiler warnings
* Sun Nov 14 2004 ro@suse.de
- fix another compile warning
* Tue Nov 09 2004 ro@suse.de
- update to 1.0.0pre4
- split patch in pieces
* Tue Oct 12 2004 sbrabec@suse.cz
- Fixed applet broken by bad libdir usage.
- Fixed libexecdir for bi-arch (#47050).
* Wed Jul 28 2004 ro@suse.de
- update to 1.0.0pre1
* Wed May 19 2004 ro@suse.de
- update to 0.12.2
- fix some compiler warnings
* Tue Feb 03 2004 ro@suse.de
- use -fno-strict-aliasing
* Wed Jan 21 2004 ro@suse.de
- update to 0.12.1
- make it build
* Mon Oct 20 2003 ro@suse.de
- don't build as root
* Sat Aug 23 2003 ro@suse.de
- update to 0.12.0
* Tue Jul 29 2003 ro@suse.de
- install it all to /opt/gnome
* Thu Jul 17 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
- Added gnome-panel to neededforbuild.
* Thu Jun 12 2003 ro@suse.de
- fix desktop file path
* Wed Jun 11 2003 ro@suse.de
- libtoolize in osipua subdirectory for proper soname
* Wed Jun 11 2003 ro@suse.de
- created package (version 0.11.0)
- use system speex library
openSUSE Build Service is sponsored by