[colord] Own /var/lib/colord and /var/lib/colord/*.db
Richard Hughes
rhughes at fedoraproject.org
Tue Apr 26 11:18:33 UTC 2011
commit 6e7ac628cbb67fa44fa01ab354759c87af310703
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Apr 26 12:17:05 2011 +0100
Own /var/lib/colord and /var/lib/colord/*.db
colord.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/colord.spec b/colord.spec
index 48b12f2..db4485b 100644
--- a/colord.spec
+++ b/colord.spec
@@ -1,7 +1,7 @@
Summary: Color daemon
Name: colord
Version: 0.1.6
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+ and LGPLv2+
URL: http://gitorious.org/colord
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.bz2
@@ -51,6 +51,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'
+# databases
+touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/mapping.db
+touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/storage.db
+
%find_lang %{name}
%post -p /sbin/ldconfig
@@ -61,6 +65,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
%defattr(-,root,root,-)
%doc README AUTHORS NEWS COPYING
%{_libexecdir}/colord
+%dir %{_localstatedir}/lib/colord
%{_bindir}/*
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml
@@ -72,6 +77,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
/lib/udev/rules.d/*.rules
%dir %{_datadir}/color/icc/colord
%{_datadir}/color/icc/colord/*.ic?
+%ghost %{_localstatedir}/lib/colord/*.db
%files devel
%defattr(-,root,root,-)
@@ -80,6 +86,9 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
%{_libdir}/pkgconfig/colord.pc
%changelog
+* Tue Apr 26 2011 Richard Hughes <rhughes at redhat.com> 0.1.6-2
+- Own /var/lib/colord and /var/lib/colord/*.db
+
* Sun Apr 24 2011 Richard Hughes <richard at hughsie.com> 0.1.6-1
- New upstream version.
More information about the scm-commits
mailing list