File digitalme.spec of Package digitalme
#
# spec file for package digitalme (Version 0.5.2385)
#
# Copyright (c) 2008 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/
#
Url: http://www.digitalme.com
Summary: DigitalMe
Name: digitalme
Version: 0.5.2385
Release: 2
License: Eclipse Public License, see http://www.eclipse.org/legal/
Group: Productivity/Security
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-desktop.patch
Patch1: %{name}-install-perms.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake >= 2.4 gcc-c++ gnome-keyring-devel >= 0.4 libglade2-devel >= 2.5 make >= 3.8 openssl-devel >= 0.9.7 unzip zip
Recommends: %{name}-firefox = %{version}
%if 0%{?suse_version}
%define firefox MozillaFirefox
%else
%define firefox firefox
%endif
BuildRequires: %{firefox}
%description
A Microsoft CardSpace compatible identity selector.
Authors:
--------
Andrew Hodgkinson
Jim Norman
%package firefox
License: Eclipse Public License, see http://www.eclipse.org/legal/
Summary: DigitalMe Firefox Add-on
Group: Productivity/Security
Requires: digitalme = %{version}
Requires: %{firefox}
%description firefox
Firefox Add-on for DigitalMe, a Microsoft CardSpace compatible identity
selector.
Authors:
--------
Andrew Hodgkinson
Jim Norman
%prep
%setup -q
%patch0
%patch1
%build
./configure -DPROJECT_VERSION=%{version} -DPRODUCT_INSTALL_PREFIX=%{_prefix} -DDISABLE_SOURCE_INSTALL=YES
make
pushd launchers/firefox-addon
bash ./configure -DPROJECT_VERSION=%{version} -DPRODUCT_INSTALL_PREFIX=%{_prefix} -DDISABLE_SOURCE_INSTALL=YES
make xpi-jar
popd
%install
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_libdir}/firefox/extensions
cp -a launchers/firefox-addon/build/package-stage %{buildroot}%{_libdir}/firefox/extensions/{b65efa6d-ca84-4226-bde7-8feee2f62519}
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYRIGHT
%{_datadir}/digitalme
%{_bindir}/digitalme
%{_prefix}/lib/digitalme
%{_datadir}/applications/digitalme.desktop
%{_datadir}/icons/hicolor/48x48/apps/digitalme.png
%{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-applications-x-informationCard.png
%{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-applications-x-informationcard.png
%{_datadir}/mime/packages/digitalme.xml
%{_datadir}/pixmaps/digitalme.png
%files firefox
%defattr(-,root,root,-)
%{_libdir}/firefox/extensions/{b65efa6d-ca84-4226-bde7-8feee2f62519}
%changelog
* Sat Sep 06 2008 ajorgensen@novell.com
- Initial upload