colord/colord.spec

126 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package
#
# Copyright (c) 2010 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/
#
Name: colord
Version: 0.1.8
Release: 1
License: GPLv2+
Summary: Easily manage, install and generate color profiles
Url: http://colord.hughsie.com/
Group: System/GUI/GNOME
Source: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.bz2
# bnc#698250 - Security Review for dbus service and polkit privileges
Source99: colord-rpmlintrc
BuildRequires: intltool
BuildRequires: pkg-config
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: sane-backends-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang
%description
colord is a system service that makes it easy to manage, install and generate color
profiles to accurately color manage input and output devices.
What colord does:
* Provides a D-Bus API for system frameworks to query, e.g. Get me the profiles for
device $foo or Create a device and assign it profile $bar.
* Provides a persistent database backed store that is preserved across reboots.
* Provides the session for a way to set system settings, for instance setting the
display profile for all users and all sessions.
%package -n libcolord1
Summary: Easily manage, install and generate color profiles - Development Files
Group: System/Libraries
%description -n libcolord1
colord is a system service that makes it easy to manage, install and generate color
profiles to accurately color manage input and output devices.
%package -n libcolord-devel
Summary: Easily manage, install and generate color profiles - Development Files
Group: Development/Languages/C and C++
Requires: libcolord1 = %{version}
%description -n libcolord-devel
colord is a system service that makes it easy to manage, install and generate color
profiles to accurately color manage input and output devices.
This package contains headers to build and link against libcolord.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static \
--enable-polkit
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name '*.la' -delete -print
%find_lang %{name}
%clean
%{?buildroot:%__rm -rf %{buildroot}}
%post -n libcolord1 -p /sbin/ldconfig
%postun -n libcolord1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libexecdir}/%{name}
/lib/udev/rules.d/*.rules
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
%{_bindir}/*
%{_libdir}/colord-sensors/
%{_datadir}/color/
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.*
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
%{_datadir}/polkit-1/actions/org.freedesktop.color.policy
%files -n libcolord1
%defattr(-, root, root)
%{_libdir}/libcolord.so.*
%files -n libcolord-devel
%defattr(-, root, root)
%{_includedir}/lib%{name}/
%{_libdir}/libcolord.so
%{_libdir}/pkgconfig/colord.pc
%files lang -f %{name}.lang
%changelog