File mozilla-kde4-integration.spec of Package mozilla-kde4-integration
#
# spec file for package mozilla-kde4-integration
#
# Copyright (c) 2011 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: mozilla-kde4-integration
BuildRequires: libkde4-devel
License: MIT
Group: System/GUI/KDE
Summary: Mozilla KDE Integration
Version: 0.6.3
Release: 1
Source: kmozillahelper-%{version}.tar.bz2
Supplements: packageand(MozillaFirefox:kdebase4-workspace)
# this is needed to match this package with the main package without the main package
# having a hard requirement on this package
%define helper_version 6
Requires: mozilla-kde4-version = %{helper_version}
# make sure the package is not installed when there is still
# a user of the old api version
Conflicts: mozilla-kde4-version < %{helper_version}
# package rename
Provides: mozilla-xulrunner191-kde4 = %{version}-%{release}
Obsoletes: mozilla-xulrunner191-kde4 < %{version}-%{release}
# functionality integrated here
Obsoletes: MozillaFirefox-kde4-addon <= 0.3.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1120
%kde4_runtime_requires
%endif
%description
Package providing integration of Mozilla applications with KDE.
%prep
%setup -n kmozillahelper -q
%build
version=$(cat main.cpp | grep '#define HELPER_VERSION' | cut -d ' ' -f 3)
if test "$version" != %{helper_version}; then
echo fix the version in the .spec file
exit 1
fi
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%kde_post_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{_prefix}/lib/mozilla
%{_prefix}/lib/mozilla/kmozillahelper
%{_datadir}/kde4/apps/kmozillahelper
%{_datadir}/kde4/apps/kmozillahelper/kmozillahelper.notifyrc
%changelog