File MozillaFirefox-kde4-addon.spec of Package MozillaFirefox-kde4-addon

#
# spec file for package MozillaFirefox-kde4-addon (Version 0.3.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Johannes Engel <jcnengel@googlemail.com>
#
# 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

BuildRequires:  licenses unzip

Name:           MozillaFirefox-kde4-addon
Version:        0.3.0
Release:        1
Summary:        Plasma Notifications for Firefox
Group:          Productivity/Networking/Web/Browsers
License:        GPL v3 only
Url:            http://www.andreas-demmer.de/projekte/software/plasmanotify
Requires:       kde4-kdialog licenses
Recommends:     MozillaFirefox
Supplements:    packageand(MozillaFirefox:kdebase4-workspace)
Source:         plasmanotify-%{version}-fx-linux.xpi
Patch1:         kde-only.patch
Patch2:         fix-encoding.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This addon makes Firefox notifications appear as Plasma notifications

Authors:
--------
	Andreas Demmer <mail@andreas-demmer.de>

%prep
unzip -d plasmanotify\@andreas-demmer.de %SOURCE0
%patch1
%patch2

%build

%install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
cp -r plasmanotify\@andreas-demmer.de $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}/
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}/
ln -s /usr/share/doc/licenses/gpl-3.0.txt LICENSE

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc LICENSE
%dir %{_datadir}/mozilla
%dir %{_datadir}/mozilla/extensions
%dir %{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/plasmanotify@andreas-demmer.de

%changelog
openSUSE Build Service is sponsored by