File gnome-color-manager.spec of Package gnome-color-manager

#
# spec file for package gnome-color-manager
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Luis Medinas, Portugal
#
# 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


Name:           gnome-color-manager
Version:        2.32.0
Release:        3
Summary:        Color management tools for GNOME
License:        GPLv2+
Group:          System/GUI/GNOME
Url:            http://projects.gnome.org/gnome-color-manager
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  cups-devel
BuildRequires:  docbook-utils
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  libtiff-devel
%if 0%{?suse_version} > 1130
BuildRequires:  sane-backends-devel
%else
BuildRequires:  sane-backends
%endif
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
# For directory ownership
BuildRequires:  polkit
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(lcms)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  pkgconfig(vte)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xxf86vm)
Requires:       PackageKit
Requires:       shared-color-profiles
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
GNOME Color Manager is a session framework that makes it easy to manage,
install and generate color profiles in the GNOME desktop.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure  \
    --enable-hardware-detection \
    --disable-schemas-install \
    --disable-scrollkeeper
%{__make} %{?jobs:-j %jobs}

%install
%makeinstall
# X-GNOME-SystemSettings is okay upstream, but it makes the item appear misplaced with our menu structure
grep -q X-GNOME-SystemSettings %{buildroot}%{_datadir}/applications/gcm-prefs.desktop
%suse_update_desktop_file -r gcm-prefs GNOME Settings HardwareSettings
%suse_update_desktop_file gcm-apply
%suse_update_desktop_file gcm-import
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%dir /lib/udev
%dir /lib/udev/rules.d
/lib/udev/rules.d/*.rules
%{_bindir}/gcm-*
%{_sbindir}/gcm-install-system-wide
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.ColorManager.service
%{_datadir}/gnome-color-manager/
%{_datadir}/icons/hicolor/*/apps/gnome-color-manager.*
%{_datadir}/icons/hicolor/*/mimetypes/application-vnd.iccprofile.*
%{_datadir}/polkit-1/actions/org.gnome.color.policy
%{_mandir}/man?/*.*
%{_sysconfdir}/xdg/autostart/*.desktop

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by