build with sane and printers support

This commit is contained in:
Tigro 2013-06-14 17:54:57 +04:00
parent 4548ce6a05
commit 1f27bceeb4

View file

@ -7,7 +7,7 @@
Summary: Color daemon
Name: colord
Version: 1.0.1
Release: 1
Release: 2
License: GPLv2+ and LGPLv2+
Group: System/X11
URL: http://www.freedesktop.org/software/colord/
@ -28,6 +28,9 @@ BuildRequires: pkgconfig(sqlite3)
BuildRequires: sane-devel
BuildRequires: vala-tools
BuildRequires: gtk-doc
BuildRequires: argyllcms
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(libsystemd-login)
Requires(pre,postun): rpm-helper
Requires: shared-color-profiles
@ -36,6 +39,9 @@ Requires: systemd-units
Obsoletes: %{girname} < %{version}
Provides: %{girname} = %{version}-%{release}
Obsoletes: shared-color-profiles <= 0.1.6-2
Provides: shared-color-profiles
%description
colord is a low level system activated daemon that maps color devices
to color profiles in the system context.
@ -61,13 +67,21 @@ Files for development with %{name}.
%setup -q
%build
# Set ~2 GiB limit so that colprof is forced to work in chunks when
# generating the print profile rather than trying to allocate a 3.1 GiB
# chunk of RAM to put the entire B-to-A tables in.
ulimit -Sv 2000000
%configure \
--with-daemon-user=colord \
--with-systemdsystemunitdir=%{_systemunitdir} \
--enable-vala \
--enable-sane \
--enable-print-profiles \
--with-daemon-user=colord \
--disable-static \
--disable-rpath \
--disable-examples \
--disable-silent-rules \
--disable-dependency-tracking
%make
@ -101,7 +115,7 @@ touch %{buildroot}%{_localstatedir}/lib/colord/storage.db
%{_bindir}/*
%{_libdir}/colord
%{_libdir}/colord-plugins/*
#%{_libdir}/colord-sane
%{_libdir}/colord-sane
%{_libdir}/colord-sensors
%{_libdir}/colord-session
%dir %{_datadir}/color/icc/colord