LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mozilla-kde4-integration.spec of Package mozilla-kde4-integration (Project mozilla)

# spec file for package mozilla-kde4-integration
# Copyright (c) 2012 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
Summary:        Mozilla KDE Integration
License:        MIT
Group:          System/GUI/KDE
Version:        0.6.4
Release:        0
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

Package providing integration of Mozilla applications with KDE.

%setup -n kmozillahelper -q

  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
  %cmake_kde4 -d build

  cd build


%dir %{_prefix}/lib/mozilla