File decibel.spec of Package decibel

#
# spec file for package decibel (Version 0.5.0)
#
# 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/
#



Name:           decibel
BuildRequires:  cmake kde4-filesystem libQtTapioca-devel
Url:            http://decibel.kde.org
Version:        0.5.0
Release:        147
License:        LGPL v2.1 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          System/Daemons
Summary:        Decibel Realtime Communication Framework
Source:         %{name}-%{version}.tar.bz2
Patch:          decibel-gcc44.diff

%description
Decibel is a realtime communications framework, meant to integrate
services like CTI (Computer Telephone Integration), VoIP (Voice over
IP) and text based chat. This integration makes it possible to
uniformly manage user settings across communication methods. Decibel
further enables developers to use these communications technologies
more easily, allowing for improved communications and - ultimately -
collaboration features in their applications.



Authors:
--------
    Tobias Hunger <tobias.hunger@basyskom.de>

%package -n libdecibel-devel
License:        LGPL v2.1 or later
Summary:        Decibel Realtime Communication Framework
Group:          Development/Libraries/KDE
Requires:       libQtTapioca-devel
Requires:       %name = %version

%description -n libdecibel-devel
Decibel is a realtime communications framework, meant to integrate
services like CTI (Computer Telephone Integration), VoIP (Voice over
IP) and text based chat. This integration makes it possible to
uniformly manage user settings across communication methods. Decibel
further enables developers to use these communications technologies
more easily, allowing for improved communications and - ultimately -
collaboration features in their applications.



Authors:
--------
    Tobias Hunger <tobias.hunger@basyskom.de>

%prep
%setup -q
%patch

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
%cmake_kde4 -d build
%make_jobs

%install
cd build
%makeinstall
rm -rf $RPM_BUILD_ROOT/usr/share/doc/Decibel/demos.html

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc ChangeLog COPYING README docs/demos.html
%{_libdir}/libdecibel*.so.*
%{_bindir}/decibel*
%{_datadir}/dbus-1/services/de.basyskom.simpleclient.service
%{_datadir}/dbus-1/services/de.basyskom.decibel.log.service
%{_prefix}/share/Decibel
%{_libdir}/Decibel

%files -n libdecibel-devel
%defattr(-,root,root)
%{_prefix}/include/Decibel
%{_libdir}/pkgconfig/Decibel.pc
%{_libdir}/libdecibel*.so

%changelog
* Fri Jun 19 2009 coolo@novell.com
- disable as-needed for this package as it fails to build with it
* Mon May 18 2009 beineri@opensuse.org
- fix build against gcc4.4
* Fri Mar 06 2009 coolo@suse.de
- less fragile way to fix the former
* Mon Jul 21 2008 stbinner@suse.de
- fix documentation location (bnc#377943)
* Sat Aug 04 2007 dmueller@suse.de
- Initial package (0.5.0)
openSUSE Build Service is sponsored by