File dice.spec of Package dice
#
# spec file for package dice
#
# 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/
#
%define dbus_min_version 0.60-26
Name: dice
Version: 0.1.9
Release: 19
License: GPLv2+
Summary: Desktop integration with Novell's Teaming and Microsoft's Sharepoint servers
Group: Productivity/Office/Other
Source: %{name}-%{version}.tar.bz2
Source1: Db4objects.Db4o.dll
# PATCH-FIX-UPSTREAM dice-newmono.patch dimstar@opensuse.org -- Newer mono do not like to autoincrement AssemblyVersions.
Patch0: dice-newmono.patch
BuildRequires: bison
BuildRequires: coreutils
BuildRequires: dbus-1-devel
BuildRequires: evolution-sharp
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: gconf-sharp2
BuildRequires: gnome-common
BuildRequires: gnome-sharp2
BuildRequires: gnome-vfs-sharp2
BuildRequires: gnome-vfs2-devel
BuildRequires: intltool
BuildRequires: libglade2-devel
BuildRequires: libgnome-keyring-devel
BuildRequires: mono-devel
BuildRequires: nautilus-devel
BuildRequires: ndesk-dbus
BuildRequires: ndesk-dbus-glib-devel
BuildRequires: notify-sharp
BuildRequires: openssl-devel
BuildRequires: pkg-config
BuildRequires: update-desktop-files
Requires: dbus-1-glib >= %{dbus_min_version}
Requires: dbus-1-x11 >= %{dbus_min_version}
Requires: evolution-sharp
Requires: ndesk-dbus
Requires: ndesk-dbus-glib
Requires: openssl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define prefix /usr
%description
Desktop integration with popular web based collaboration environments
including Novell's IceCore and Microsoft Sharepoint servers.
This package also include a Nautilus extension.
%package devel
License: GPLv2+
Summary: Desktop integration with Novell's Teaming and Microsoft's Sharepoint servers
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
Desktop integration with popular web based collaboration environments
including Novell's IceCore and Microsoft Sharepoint servers.
This package also include a Nautilus extension.
%package debug
License: GPLv2+
Summary: Desktop integration with Novell's Teaming and Microsoft's Sharepoint servers (debug)
Group: Productivity/Office/Other
%description debug
Desktop integration with popular web based collaboration environments
including Novell's IceCore and Microsoft Sharepoint servers. It also
includes a Nautilus extension.
This package contains the debug files for the CLI.
%prep
%setup -q
%patch0 -p1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --disable-static --with-pic
%{__make}
%install
%makeinstall
cp %{SOURCE1} %{buildroot}%{_libdir}/dice/
find %{buildroot} -name '*.la' -type f -delete -print
%clean
rm -rf %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%dir %{_libdir}/dice
%{_datadir}/applications/dice-manager.desktop
%{_datadir}/icons/hicolor/scalable/apps/dice.svg
%{_datadir}/icons/hicolor/16x16/apps/dice.png
%{_datadir}/icons/hicolor/24x24/apps/dice.png
%{_datadir}/icons/hicolor/32x32/apps/dice.png
%{_datadir}/icons/hicolor/48x48/apps/dice.png
%{_datadir}/pixmaps/dice-*.png
%{_datadir}/pixmaps/dice.svg
%{_libdir}/dice/diced
%{_libdir}/dice/diced.exe
%{_libdir}/dice/Novell.IceDesktop.dll
%{_libdir}/dice/auth-agent
%{_libdir}/dice/auth-agent.exe
%{_libdir}/dice/dice-manager.exe
%{_libdir}/dice/Solvent.dll
%{_libdir}/dice/Db4objects.Db4o.dll
%{_libdir}/dice/libicews.so
%{_libdir}/nautilus/extensions-[23].0/*.so
%{_datadir}/dice/
%{_datadir}/dbus-1/services/
%{_bindir}/dice-manager
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/diced.pc
%{_libdir}/pkgconfig/Novell.IceDesktop.pc
%{_libdir}/pkgconfig/solvent.pc
%files debug
%defattr(-,root,root)
%{_libdir}/dice/Novell.IceDesktop.dll.mdb
%{_libdir}/dice/Solvent.dll.mdb
%{_libdir}/dice/auth-agent.exe.mdb
%{_libdir}/dice/dice-manager.exe.mdb
%{_libdir}/dice/diced.exe.mdb
%changelog