1
0
gnome-color-manager/gnome-color-manager.spec

122 lines
3.8 KiB
RPMSpec
Raw Normal View History

#
# 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: 3.1.2
Release: 1
# FIXME: possibly add mash BuildRequires for 3D support. Check first if mash is still alive upstream.
# (https://github.com/clutter-project/mash / packaged as libmash in Fedora)
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
# PATCH-FIX-UPSTREAM gnome-color-manager-as_needed.patch bgo#652722 dimstar@opensuse.org -- Fix build with -Wl,--as-needed
Patch0: gnome-color-manager-as_needed.patch
BuildRequires: docbook-utils
BuildRequires: gcc-c++
# Needed for patch0
BuildRequires: gnome-common
BuildRequires: gnome-doc-utils-devel
BuildRequires: intltool
BuildRequires: libtiff-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(colord)
BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libcanberra-gtk3)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(vte-2.90)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xrandr)
Requires: PackageKit
Requires: colord
Requires: shared-color-profiles
Recommends: %{name}-lang
Obsoletes: libcolor-glib1 < %{version}
Obsoletes: gnome-color-manaer-devel < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%patch0 -p1
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure --disable-static \
--disable-scrollkeeper
%{__make} %{?jobs:-j %jobs} V=1
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file gcm-calibrate
%suse_update_desktop_file gcm-import
%suse_update_desktop_file gcm-picker
%suse_update_desktop_file gcm-session
%suse_update_desktop_file gcm-viewer
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%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
%{_bindir}/gcm-*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/interfaces/org.gnome.ColorManager.xml
%{_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.*
%{_mandir}/man?/*.*
%{_sysconfdir}/xdg/autostart/*.desktop
%{_libexecdir}/gcm-helper-exiv
%files lang -f %{name}.lang
%changelog