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:        14
License:        GPLv2+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison flex gcc-c++
BuildRequires:  dbus-1-devel gnome-common gnome-sharp2 gnome-vfs2-devel
BuildRequires:  gconf-sharp2 gnome-vfs-sharp2 intltool mono-devel
BuildRequires:  ndesk-dbus
BuildRequires:  ndesk-dbus-glib-devel
BuildRequires:  coreutils
BuildRequires:  notify-sharp
BuildRequires:  libgnome-keyring-devel
BuildRequires:  nautilus-devel
BuildRequires:  openssl-devel
BuildRequires:  evolution-sharp
BuildRequires:  libglade2-devel
BuildRequires:  update-desktop-files
Source:         %{name}-%{version}.tar.bz2
Source1:        Db4objects.Db4o.dll
Group:          Productivity/Office/Other
Summary:        Desktop integration with Novell's Teaming and Microsoft's Sharepoint servers
Requires:       dbus-1-glib >= %{dbus_min_version}
Requires:       dbus-1-x11 >= %{dbus_min_version}
Requires:       ndesk-dbus
Requires:       ndesk-dbus-glib
Requires:       openssl
Requires:       evolution-sharp
%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+
Group:          Development/Libraries/Other
Summary:        Desktop integration with Novell's Teaming and Microsoft's Sharepoint servers
Requires:       %{name} = %{version}-%{release}

%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

%build
export CFLAGS="%optflags -fno-strict-aliasing"
%configure --disable-static --with-pic
%{__make}

%install
make DESTDIR="$RPM_BUILD_ROOT" install
cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/dice
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%clean
rm -rf "$RPM_BUILD_ROOT"

%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-2.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
openSUSE Build Service is sponsored by