Sophie

Sophie

distrib > Mageia > 2 > x86_64 > media > core-release-src > by-pkgid > 0781bb46e43535d124a8064a779c906d > files > 2

colord-0.1.17-3.mga2.src.rpm

%define _udevrulesdir	/lib/udev/rules.d

%define major		1
%define gir_major	1.0
%define libname		%mklibname %{name} %{major}
%define devname		%mklibname -d %{name}
%define girname		%mklibname %{name}-gir %{gir_major}

Summary:	Color daemon
Group:		Graphical desktop/GNOME
Name:		colord
Version:	0.1.17
Release:	%mkrel 3
License:	GPLv2+ and LGPLv2+
URL:		http://www.freedesktop.org/software/colord/
Source0:	http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(glib-2.0) >= 2.28.0
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gio-2.0) >= 2.25.9
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gusb)
BuildRequires:	pkgconfig(libusb-1.0) >= 1.0.0
BuildRequires:	pkgconfig(polkit-gobject-1) >= 0.103
BuildRequires:	sane-devel
BuildRequires:	intltool >= 0.35.0
BuildRequires:	docbook-utils
BuildRequires:	gobject-introspection-devel >= 0.9.8
BuildRequires:	vala-tools
Requires:	shared-color-profiles
Requires(post):  rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1

%description
colord is a low level system activated daemon that maps color devices
to color profiles in the system context.

%package -n %{libname}
Summary:	Color daemon run-time libraries
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n %{libname}
colord is a low level system activated daemon that maps color devices
to color profiles in the system context.

This package contains the run-time libraries for %{name}.

%package -n %{devname}
Summary:	Development files and headers for %{name}
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Requires:	pkgconfig(dbus-1)
Requires:	pkgconfig(lcms2)

%description -n %{devname}
colord is a low level system activated daemon that maps color devices
to color profiles in the system context.

This package contains the development files and headers for %{name}.

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%prep
%setup -q
%apply_patches

# (wally) fix setfacl path on udev rule, fixes mga#3728
sed -i -e 's,/bin/setfacl,%{_bindir}/setfacl,' rules/69-cd-sensors.rules.in

%build
%configure2_5x \
	--enable-introspection=yes \
        --disable-static \
        --disable-rpath \
        --disable-examples \
	--disable-silent-rules \
	--disable-schemas-compile \
	--with-systemdsystemunitdir=%{_unitdir}
%make

%install
%makeinstall_std

# Remove libtool archives.
find %{buildroot} -name '*.la' -exec rm -f {} ';'

# databases
touch %{buildroot}%{_localstatedir}/lib/colord/mapping.db
touch %{buildroot}%{_localstatedir}/lib/colord/storage.db

%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README AUTHORS NEWS MAINTAINERS
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
%config(noreplace) %{_sysconfdir}/colord.conf
%{_bindir}/cd-create-profile
%{_bindir}/cd-fix-profile
%{_bindir}/colormgr
%{_libexecdir}/colord
%{_libexecdir}/colord-sensors
%{_unitdir}/colord.service
%{_udevrulesdir}/*.rules
%{_datadir}/color/icc/colord
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
%{_datadir}/polkit-1/actions/org.freedesktop.color.policy
%dir %{_localstatedir}/lib/colord
%ghost %{_localstatedir}/lib/colord/*.db
%{_mandir}/man1/cd-create-profile.1.*
%{_mandir}/man1/cd-fix-profile.1.*
%{_mandir}/man1/colormgr.1.*

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{girname}
%{_libdir}/girepository-1.0/Colord-%{gir_major}.typelib

%files -n %{devname}
%defattr(-,root,root,-)
%{_includedir}/%{name}-1
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/Colord-%{gir_major}.gir
%{_datadir}/vala/vapi/colord.vapi


%changelog

* Sat Apr 28 2012 tmb <tmb> 0.1.17-3.mga2
+ Revision: 233625
- Require rpm-helper >= 0.24.8-1 for systemd support

* Fri Apr 27 2012 tmb <tmb> 0.1.17-2.mga2
+ Revision: 233529
- rebuild for versioned rpm-helper requires

* Fri Mar 02 2012 wally <wally> 0.1.17-1.mga2
+ Revision: 216838
- new version 0.1.17

* Tue Jan 17 2012 wally <wally> 0.1.16-1.mga2
+ Revision: 197403
- new version 0.1.16
- drop patch from upstream
- enable systemd support
- clean .spec a bit

* Tue Dec 13 2011 wally <wally> 0.1.15-4.mga2
+ Revision: 181390
- fix setfacl path on udev rule (mga#3728)

* Tue Dec 06 2011 wally <wally> 0.1.15-3.mga2
+ Revision: 177826
- add patch from uptream git to fix possible rescan issues

* Mon Nov 28 2011 wally <wally> 0.1.15-2.mga2
+ Revision: 173797
- enable gusb support

* Mon Nov 28 2011 wally <wally> 0.1.15-1.mga2
+ Revision: 173768
- new version 0.1.15
- fixes CVE-2011-4349

* Fri Nov 11 2011 wally <wally> 0.1.14-1.mga2
+ Revision: 166743
- new version 0.1.14

* Mon Oct 03 2011 fwang <fwang> 0.1.13-1.mga2
+ Revision: 151287
- new version 0.1.13

* Mon Oct 03 2011 fwang <fwang> 0.1.12-3.mga2
+ Revision: 151245
- add more br
- br polkit
- fix wrong num
- add req
- update file list
- update br of sane
- cleanup br

* Tue Sep 06 2011 fwang <fwang> 0.1.12-2.mga2
+ Revision: 139048
- add req on private requires

* Tue Aug 30 2011 fwang <fwang> 0.1.12-1.mga2
+ Revision: 136565
- new version 0.1.12

  + wally <wally>
    - new version 0.1.11
    - enable introspection

* Tue Jul 12 2011 ahmad <ahmad> 0.1.10-1.mga2
+ Revision: 123115
- Update to 0.1.10

* Mon Jul 11 2011 wally <wally> 0.1.9-2.mga2
+ Revision: 122327
- fix requires

* Tue Jul 05 2011 wally <wally> 0.1.9-1.mga2
+ Revision: 118871
- imported package colord