Accepting request 120978 from home:vuntz:branches:GNOME:Factory
Update to 0.1.20 OBS-URL: https://build.opensuse.org/request/show/120978 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/colord?expand=0&rev=38
This commit is contained in:
parent
c53734adaf
commit
78a1f22f6a
@ -1 +1,2 @@
|
|||||||
libcolord1
|
libcolord1
|
||||||
|
libcolord-gtk1
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ae102b93f1ebd9dc0a9f6787670860fdd12e45e955d268a6ae088b9146e24214
|
|
||||||
size 481648
|
|
3
colord-0.1.20.tar.xz
Normal file
3
colord-0.1.20.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:45d6e7e73c9eab9f3f3c0eec8d008fd96c147333aeb4a77a2c2695657e48ae58
|
||||||
|
size 551408
|
35
colord-build-no-gtk.patch
Normal file
35
colord-build-no-gtk.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 67f6b43497d55b99b30c412fa8d0e8f3782f1969 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Yanko Kaneti <yaneti@declera.com>
|
||||||
|
Date: Thu, 10 May 2012 10:23:27 +0300
|
||||||
|
Subject: [PATCH] Isolate gtk dependency to cd-convert
|
||||||
|
|
||||||
|
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
||||||
|
---
|
||||||
|
client/Makefile.am | 5 ++++-
|
||||||
|
1 files changed, 4 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/client/Makefile.am b/client/Makefile.am
|
||||||
|
index 9458026..2e972d5 100644
|
||||||
|
--- a/client/Makefile.am
|
||||||
|
+++ b/client/Makefile.am
|
||||||
|
@@ -13,7 +13,9 @@ INCLUDES = \
|
||||||
|
-DLOCALEDIR=\""$(localedir)"\"
|
||||||
|
|
||||||
|
COLORD_LIBS = \
|
||||||
|
- $(top_builddir)/libcolord/libcolord.la \
|
||||||
|
+ $(top_builddir)/libcolord/libcolord.la
|
||||||
|
+
|
||||||
|
+COLORD_GTK_LIBS = \
|
||||||
|
$(top_builddir)/libcolord-gtk/libcolord-gtk.la
|
||||||
|
|
||||||
|
noinst_LIBRARIES = libclientprivate.a
|
||||||
|
@@ -74,6 +76,7 @@ colord_convert_SOURCES = \
|
||||||
|
colord_convert_LDADD = \
|
||||||
|
$(LCMS_LIBS) \
|
||||||
|
$(COLORD_LIBS) \
|
||||||
|
+ $(COLORD_GTK_LIBS) \
|
||||||
|
$(GTK_LIBS) \
|
||||||
|
$(GLIB_LIBS) \
|
||||||
|
-lm
|
||||||
|
--
|
||||||
|
1.7.6
|
374
colord-gtk.changes
Normal file
374
colord-gtk.changes
Normal file
@ -0,0 +1,374 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 14 09:53:20 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.20:
|
||||||
|
+ New Features:
|
||||||
|
- Add a bash completion file for colormgr
|
||||||
|
- Add a BUSY state value for sensor devices
|
||||||
|
- Add a GObject Introspection example
|
||||||
|
- Add a sensor-set-options command to the colormgr tool
|
||||||
|
- Add async and sync methods in libcolord to support sensor
|
||||||
|
options
|
||||||
|
- Add CdIt8 as a helper for reading and writing ti1, ti3 and
|
||||||
|
ccmx files
|
||||||
|
- Add cd_it8_utils_calculate_ccmx() to libcolorhug
|
||||||
|
- Add CdSampleWindow to libcolord-gtk
|
||||||
|
- Add CdWindow which allows us to get the color profile for a
|
||||||
|
GtkWidget
|
||||||
|
- Add functionality to colord-convert to sample ti1 -> ti3
|
||||||
|
files
|
||||||
|
- Add gio-2.0 to the requires line of colord.pc for GFile
|
||||||
|
- Add the concept of 'options' on each color sensor device
|
||||||
|
- colorhug: Allow saving the remote hash as a sensor option
|
||||||
|
- Print any sensor options when doing 'colormgr get-sensors'
|
||||||
|
+ Bugfixes:
|
||||||
|
- colorhug: Save the EEPROM after setting sensor options
|
||||||
|
- Enable gtk-doc in the default distro build
|
||||||
|
- Fix build failure when colord is not installed system-wide
|
||||||
|
- Add colord-build-no-gtk.patch: fix build without GTK+.
|
||||||
|
- Add gnome-common BuildRequires and call to gnome-autogen.sh,
|
||||||
|
needed for above patch.
|
||||||
|
- Enable the build of colord-gtk, by creating a colord-gtk.spec
|
||||||
|
based on colord.spec (with pre_checkin.sh). We do it this way to
|
||||||
|
avoid a build loop between colord and gtk3, since gtk3 depends on
|
||||||
|
colord. The differences are:
|
||||||
|
+ Add a pkgconfig(gtk+-3.0) BuildRequires.
|
||||||
|
+ Add colord and libcolord-devel BuildRequires, so we can use rpm
|
||||||
|
to remove the files from colord.spec subpackages in %install
|
||||||
|
(in order to only package colord-gtk files).
|
||||||
|
+ Create libcolord-gtk1, typelib-1_0-ColordGtk-1_0 and
|
||||||
|
libcolord-gtk-devel subpackages.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 18 07:31:39 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.19:
|
||||||
|
+ New Features:
|
||||||
|
- Add a user suffix to the object path of user-created devices
|
||||||
|
and profiles
|
||||||
|
+ Bugfixes:
|
||||||
|
- Add User key to colord-sane's DBus service file
|
||||||
|
- Do not enable PrivateNetwork=yes as it breaks hotplugging
|
||||||
|
devices
|
||||||
|
- Ensure colord-sane can create devices and profiles
|
||||||
|
- Fix usage of CD_OBJECT_SCOPE_* enums
|
||||||
|
- Honor aclocal flags
|
||||||
|
- Remove the 'Default,' profile title prefix if legacy profiles
|
||||||
|
are installed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 15 19:29:33 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.18:
|
||||||
|
+ New Features:
|
||||||
|
- Add a Manager.CreateProfileWithFd() method for QtDBus
|
||||||
|
- Add the GAMUT_coverage metadata key to the spec
|
||||||
|
- Add the GAMUT_volume metadata key to the spec
|
||||||
|
- Depend on lcms2 >= 2.2
|
||||||
|
- Make cd-fix-profile add the GAMUT keys to the ICC file
|
||||||
|
- Split out the SANE support into it's own process
|
||||||
|
+ Bugfixes:
|
||||||
|
- Do not delete 'disk' or 'normal' devices when the session
|
||||||
|
exits
|
||||||
|
- Ensure we return NULL for missing device properties
|
||||||
|
- Fix a small leak when creating devices and profiles in
|
||||||
|
clients
|
||||||
|
- Fix cd-fix-profile to add and remove metadata entries
|
||||||
|
- Install per-machine profiles in /var/lib/colord/icc
|
||||||
|
- Show what DBus names have inhibited each device
|
||||||
|
- When doing 'get-devices' show the profile ID and filename
|
||||||
|
- Add new colord-sane.service as argument to calls to
|
||||||
|
%service_{add,del}_* macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 27 13:24:10 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Fix systemd-related packaging:
|
||||||
|
+ Use %{?systemd_requires}.
|
||||||
|
+ Call %service_{add,del}_* macros in scriptlets for
|
||||||
|
colord.service.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 23 07:51:54 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.17:
|
||||||
|
+ New Features:
|
||||||
|
- Add an LED sample type
|
||||||
|
- Add a metadata key to store the calibration brightness
|
||||||
|
- Show the profile title when using colormgr get-profiles
|
||||||
|
+ Bugfixes:
|
||||||
|
- Add PrivateNetwork and PrivateTmp to the systemd service file
|
||||||
|
- Don't leak a GVariantIter when setting the device metadata
|
||||||
|
- Fix a critical warning if a client tries to get the profile
|
||||||
|
metadata
|
||||||
|
- Fix InstallSystemWide() when running as the colord user
|
||||||
|
- Increase the colorhug sample timeout to 5 seconds
|
||||||
|
- Make underscores into spaces for the profile title
|
||||||
|
- Return from cd_profile_has_access() with TRUE for virtual
|
||||||
|
profiles
|
||||||
|
- Remove xz BuildRequires now that it comes for free in the build
|
||||||
|
system.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 18 10:47:23 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Add pkgconfig(gusb) BuildRequires to build with libgusb support,
|
||||||
|
which matters even more now than libusb support is gone.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 17 18:02:05 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.16:
|
||||||
|
+ New Features:
|
||||||
|
- Add a device-inhibit command to the colormgr client
|
||||||
|
- Add org.freedesktop.policykit.owner annotations to .policy
|
||||||
|
file
|
||||||
|
- Add profile metadata MAPPING_device_id for automatic profile
|
||||||
|
mapping
|
||||||
|
- Add some profile metadata keys
|
||||||
|
- Install a systemd service file if systemd is used
|
||||||
|
- Support 2nd generation Huey hardware
|
||||||
|
- Use GUsb for the Huey sensor
|
||||||
|
+ Bugfixes:
|
||||||
|
- Fix a Wformat error when printing a gsize
|
||||||
|
- If /usr/share/color appears at runtime, don't rescan the
|
||||||
|
parent dir
|
||||||
|
- Set the colorimeter sensor group so the dameon can access the
|
||||||
|
sensor
|
||||||
|
- Split the spyder hardware into different types
|
||||||
|
- Add pkgconfig(systemd) BuildRequires, following upstream change,
|
||||||
|
to know where to install the .service file.
|
||||||
|
- Remove pkgconfig(libusb-1.0) BuildRequires: the dependency is
|
||||||
|
gone now.
|
||||||
|
- Drop colord-polkit-annotate-owner.patch: fixed upstream.
|
||||||
|
- Remove libtool BuildRequires and call to autoreconf and
|
||||||
|
intltoolize, that were only needed for above patch.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 8 20:25:09 UTC 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Split typelib file into typelib-1_0-Colord-1_0 subpackage.
|
||||||
|
- Add typelib-1_0-Colord-1_0 Requires to libcolord-devel
|
||||||
|
subpackage.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 6 16:06:22 UTC 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Run the colord daemon as user colord (bnc#698250):
|
||||||
|
+ Add colord-polkit-annotate-owner.patch: add
|
||||||
|
org.freedesktop.policykit.owner annotations to policy file so
|
||||||
|
that running as colord user works.
|
||||||
|
+ Add a %pre script to create the colord user and change
|
||||||
|
ownership of /var/lib/colord.
|
||||||
|
+ Add pwdutils Requires(pre), to make sure we can create the
|
||||||
|
user.
|
||||||
|
+ Pass --with-daemon-user=colord to configure.
|
||||||
|
+ Package /var/lib/colord with the right user.
|
||||||
|
+ Add libtool BuildRequires and calls to autoreconf and
|
||||||
|
intltoolize, as needed by above patch.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 29 21:27:11 UTC 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.15:
|
||||||
|
+ This release fixes an important security bug: CVE-2011-4349.
|
||||||
|
+ New Features:
|
||||||
|
- Add a native driver for the Hughski ColorHug hardware
|
||||||
|
- Export cd-math as three projects are now using it
|
||||||
|
+ Bugfixes:
|
||||||
|
- Documentation fixes and improvements
|
||||||
|
- Do not crash the daemon if adding the device to the db failed
|
||||||
|
- Do not match any sensor device with a kernel driver
|
||||||
|
- Don't be obscure when the user passes a device-id to colormgr
|
||||||
|
- Fix a memory leak when getting properties from a device
|
||||||
|
- Fix colormgr device-get-default-profile
|
||||||
|
- Fix some conection bugs in colormgr
|
||||||
|
- Fix some potential SQL injections
|
||||||
|
- Make gusb optional
|
||||||
|
- Only use the udev USB helper if the PID and VID have matches
|
||||||
|
- Output the Huey calibration matrices when dumping the sensor
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 16 10:27:26 UTC 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.14:
|
||||||
|
+ New Features:
|
||||||
|
- Add defines for the i1 Display 3
|
||||||
|
- Add two more DATA_source values to the specification
|
||||||
|
- Align the output from colormgr get-devices and get-profiles
|
||||||
|
- Allow cd-fix-profile to append and edit new metadata
|
||||||
|
+ Bugfixes:
|
||||||
|
- Ensure non-native device are added with no driver module
|
||||||
|
- Split the sensor and device udev code
|
||||||
|
+ Updated translations.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 28 14:31:58 UTC 2011 - lnussel@suse.de
|
||||||
|
|
||||||
|
- don't recommend colord from libcolord1 to prevent automatic
|
||||||
|
installation (bnc#698250)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 3 20:50:40 CEST 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.13:
|
||||||
|
+ New Features:
|
||||||
|
- Add an 'Owner' property on device and profile objects
|
||||||
|
- Add cd_profile_has_access() to filter profiles from other
|
||||||
|
user accounts
|
||||||
|
- Add the crayon named color palette
|
||||||
|
- Add --xorg-gamma to cd-create-profile to create custom gamma
|
||||||
|
ramps
|
||||||
|
+ Bugfixes:
|
||||||
|
- Add a note in the naming specification about the username
|
||||||
|
suffix
|
||||||
|
- colormgr only needs one argument for find-device
|
||||||
|
- Ensure remote DBus errors are registered at startup
|
||||||
|
- Ensure uid 0 can always create devices and profiles
|
||||||
|
- Fix an error in configure if there is no sane .pc file
|
||||||
|
- Fix the --disable-polkit build
|
||||||
|
- Documentation: cd_device_get_modified() returns microseconds
|
||||||
|
- Reduce the CPU load of clients when assigning profiles from
|
||||||
|
the session
|
||||||
|
- Return an error if a client tries to create a duplicate
|
||||||
|
device
|
||||||
|
- Return an error when trying to register a duplicate profile
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 17 23:39:25 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Remove redundant tags/sections from specfile
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 9 16:28:41 UTC 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Add baselibs.conf.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 2 08:20:51 UTC 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.12:
|
||||||
|
+ New Features:
|
||||||
|
- Add a configure argument --enable-volume-search
|
||||||
|
- Add a configure argument of --enable-fd-fallback
|
||||||
|
- Add cd_client_import_profile() to be able to easily import a
|
||||||
|
GFile
|
||||||
|
- Allow the daemon to run with a different user
|
||||||
|
+ Bugfixes:
|
||||||
|
- Add daemon user to acl of sensor devices
|
||||||
|
- Add lcms2 to Requires.private
|
||||||
|
- Check if a file is really an ICC profile before importing it
|
||||||
|
- Detect libusb_strerror in configure rather than relying on
|
||||||
|
the version
|
||||||
|
- Do not fail make check if there is no available local colord
|
||||||
|
process to use
|
||||||
|
- Ensure the profiles are sorted by their timestamp during
|
||||||
|
login
|
||||||
|
- Ensure the volume-sourced profiles are not marked as
|
||||||
|
systemwide profiles
|
||||||
|
- Exit with an error when trying to connect to a device that
|
||||||
|
does not exist
|
||||||
|
- Remove duplicate call to complete in libcolord
|
||||||
|
- Try harder to use the ICC profile checksum
|
||||||
|
- Changes from version 0.1.11:
|
||||||
|
+ New Features:
|
||||||
|
- Enable GObject introspection generation on libcolord
|
||||||
|
- Generate a Vala API binding from the GObject Introspection
|
||||||
|
GIR
|
||||||
|
- Move the project home to freedesktop.org
|
||||||
|
- Ship generated man pages in tarballs
|
||||||
|
+ Bugfixes:
|
||||||
|
- Add all of the required GObject Introspection annotations
|
||||||
|
required
|
||||||
|
- Allow FindDeviceByProperty() to match on model, vendor and
|
||||||
|
serial number
|
||||||
|
- Don't crash the example program if there is no default
|
||||||
|
profile assigned
|
||||||
|
- Fix the bugzilla and mailing list links on the webpage
|
||||||
|
(fdo#39129).
|
||||||
|
- Fix the licence headers in colord.h and cd-color.h
|
||||||
|
- Fix up some translatable strings
|
||||||
|
- Honor ACLOCAL_FLAGS when running autoreconf
|
||||||
|
- Use the const formatter when unwrapping GVariants to reduce
|
||||||
|
memory allocation
|
||||||
|
+ Updated translations.
|
||||||
|
- Add gobject-introspection-devel and vala BuildRequires to build
|
||||||
|
introspection data and vala bindings.
|
||||||
|
- Manually install pre-built man pages, since the build system
|
||||||
|
cannot install them if docbook2man is not there (and we don't
|
||||||
|
want to add a BuildRequires on it since it's big).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 11 12:43:32 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Remove docbook-utils BuildRequires as an attempt to remove a
|
||||||
|
build cycle in Factory.
|
||||||
|
- This means we lose man pages for now, but upstream will ship them
|
||||||
|
pre-generated in tarballs in the future.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 6 18:21:17 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.10:
|
||||||
|
+ New Features:
|
||||||
|
- Add a find-profile-by-filename command to the colormgr client
|
||||||
|
tool
|
||||||
|
- Add the object scope to the DBus interface as a property
|
||||||
|
- Write a document detailing the colord security attack surface
|
||||||
|
+ Bugfixes:
|
||||||
|
- Actually store the device ID in the mapping database
|
||||||
|
- Fix include statements to search from current libcolord
|
||||||
|
folder
|
||||||
|
- Fix mbstowcs usage
|
||||||
|
- Fix the build for old versions of lcms2
|
||||||
|
- Fix up the location of the libcolord header files
|
||||||
|
- Remove the DBus annotations in the introspection
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 4 15:31:22 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Drop rpmlintrc as bnc#698250 got fixed and
|
||||||
|
suse-dbus-unauthorized-service/polkit-unauthorized-privilege
|
||||||
|
warnings are now gone.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 17 00:33:14 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.9:
|
||||||
|
+ New Features:
|
||||||
|
- Add a 'Format' property to the device interface
|
||||||
|
- Add a new method Client:FindDeviceByProperty for when only a
|
||||||
|
property is known
|
||||||
|
- Add methods to get the connected state of each object
|
||||||
|
- Define the DATA_source profile metadata item
|
||||||
|
- Define three metadata keys for the framework creator to set
|
||||||
|
- Define two keys to allow the profile to contain the mapping
|
||||||
|
parameters
|
||||||
|
+ Bugfixes:
|
||||||
|
- Allow GUDEV to be disabled at compile time
|
||||||
|
- Autodetect SANE in configure
|
||||||
|
- Fix 3 small memory leaks
|
||||||
|
- Fix a bug that caused a critical warning in client code
|
||||||
|
- Only warn if we fail to get the PolicyKit authority
|
||||||
|
- Save any additional disk device metadata in the property
|
||||||
|
database
|
||||||
|
- Use upstream gettext instead the glib one
|
||||||
|
- Write the new metadata entries in the utility programs
|
||||||
|
- Add xz BuildRequires because we can't build a package for a
|
||||||
|
xz-compressed tarball without explicitly specifying that... See
|
||||||
|
bnc#697467 for more details.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 16 16:51:34 CEST 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Add docbook-utils BuildRequires to build man pages.
|
||||||
|
- Add colord Recommends to libcolord1 as the library is not too
|
||||||
|
useful without the daemon.
|
||||||
|
- Add shared-color-profiles Requires to colord, as we want to have
|
||||||
|
profiles.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 6 13:46:22 UTC 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Initial package, version 0.1.8.
|
||||||
|
|
274
colord-gtk.spec
Normal file
274
colord-gtk.spec
Normal file
@ -0,0 +1,274 @@
|
|||||||
|
#
|
||||||
|
# spec file for package colord-gtk
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define build_gtk 1
|
||||||
|
|
||||||
|
# Do not edit this auto generated file! Edit colord.spec.
|
||||||
|
Name: colord-gtk
|
||||||
|
%define _name colord
|
||||||
|
Version: 0.1.20
|
||||||
|
Release: 0
|
||||||
|
Summary: System Daemon for Managing Color Devices
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: System/Daemons
|
||||||
|
Url: http://colord.hughsie.com/
|
||||||
|
Source0: http://www.freedesktop.org/software/colord/releases/%{_name}-%{version}.tar.xz
|
||||||
|
Source99: baselibs.conf
|
||||||
|
Patch0: colord-build-no-gtk.patch
|
||||||
|
BuildRequires: gobject-introspection-devel
|
||||||
|
# needed for patch0
|
||||||
|
BuildRequires: gnome-common
|
||||||
|
BuildRequires: intltool
|
||||||
|
BuildRequires: sane-backends-devel
|
||||||
|
BuildRequires: vala
|
||||||
|
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(gusb) >= 0.1.1
|
||||||
|
BuildRequires: pkgconfig(lcms2) >= 2.2
|
||||||
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.103
|
||||||
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
%if %{build_gtk}
|
||||||
|
# For directory ownership and removing files in %%install
|
||||||
|
BuildRequires: colord
|
||||||
|
BuildRequires: libcolord-devel
|
||||||
|
BuildRequires: pkgconfig(gtk+-3.0)
|
||||||
|
%endif
|
||||||
|
Requires(pre): pwdutils
|
||||||
|
Requires: shared-color-profiles
|
||||||
|
Recommends: %{name}-lang
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%{?systemd_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
%package -n libcolord1
|
||||||
|
Summary: System Daemon for Managing Color Devices -- Library
|
||||||
|
Group: System/Libraries
|
||||||
|
Suggests: %{name}
|
||||||
|
|
||||||
|
%description -n libcolord1
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
%package -n typelib-1_0-Colord-1_0
|
||||||
|
Summary: System Daemon for Managing Color Devices -- Introspection bindings
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n typelib-1_0-Colord-1_0
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
This package provides the GObject Introspection bindings for the
|
||||||
|
libcolord library.
|
||||||
|
|
||||||
|
%package -n libcolord-devel
|
||||||
|
Summary: System Daemon for Managing Color Devices -- Development Files
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: libcolord1 = %{version}
|
||||||
|
Requires: typelib-1_0-Colord-1_0 = %{version}
|
||||||
|
|
||||||
|
%description -n libcolord-devel
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
%package -n libcolord-gtk1
|
||||||
|
Summary: System Daemon for Managing Color Devices -- GTK Integration Library
|
||||||
|
Group: System/Libraries
|
||||||
|
Suggests: %{name}
|
||||||
|
|
||||||
|
%description -n libcolord-gtk1
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
%package -n typelib-1_0-ColordGtk-1_0
|
||||||
|
Summary: System Daemon for Managing Color Devices -- GTK Integration Introspection bindings
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n typelib-1_0-ColordGtk-1_0
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
This package provides the GObject Introspection bindings for the
|
||||||
|
libcolord-gtk library.
|
||||||
|
|
||||||
|
%package -n libcolord-gtk-devel
|
||||||
|
Summary: System Daemon for Managing Color Devices -- GTK Integration Development Files
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: libcolord-gtk1 = %{version}
|
||||||
|
Requires: typelib-1_0-ColordGtk-1_0 = %{version}
|
||||||
|
|
||||||
|
%description -n libcolord-gtk-devel
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
%lang_package
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
# needed for patch0
|
||||||
|
NOCONFIGURE=1 gnome-autogen.sh
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--enable-polkit \
|
||||||
|
--with-daemon-user=colord
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find %{buildroot} -type f -name '*.la' -delete -print
|
||||||
|
|
||||||
|
%if !%{build_gtk}
|
||||||
|
|
||||||
|
# Manually install prebuilt man pages, since we don't have docbook2man
|
||||||
|
pushd man
|
||||||
|
test ! -f %{buildroot}%{_mandir}/man1/*
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||||
|
for man in *.1; do
|
||||||
|
install -m 644 ${man} %{buildroot}%{_mandir}/man1/
|
||||||
|
done
|
||||||
|
# Check we only have man1 pages to install
|
||||||
|
test ! -f *.[2-9]
|
||||||
|
popd
|
||||||
|
%find_lang %{_name}
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
for file in `rpm -ql colord libcolord1 typelib-1_0-Colord-1_0 libcolord-devel`; do
|
||||||
|
# do not remove directories (might contain files we want); -f to not fail if
|
||||||
|
# file doesn't exist
|
||||||
|
test ! -d %{buildroot}${file} && rm -f %{buildroot}${file}
|
||||||
|
test ${file#%{_mandir}} != ${file} && rm -f %{buildroot}${file%%%{?ext_man}}
|
||||||
|
done
|
||||||
|
rm %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/%{_name}.mo
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre colord.service colord-sane.service
|
||||||
|
# Create colord user
|
||||||
|
getent group colord >/dev/null || groupadd -r colord
|
||||||
|
getent passwd colord >/dev/null || useradd -r -g colord -d %{_localstatedir}/lib/colord -s /sbin/nologin -c "user for colord" colord
|
||||||
|
# Fix ownership of /var/lib/colord from first packages (in 12.1)
|
||||||
|
test ! -d %{_localstatedir}/lib/colord || chown -R colord:colord %{_localstatedir}/lib/colord
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
%post
|
||||||
|
%service_add_post colord.service colord-sane.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun colord.service colord-sane.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun colord.service colord-sane.service
|
||||||
|
|
||||||
|
%post -n libcolord1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libcolord1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libcolord-gtk1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libcolord-gtk1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if !%{build_gtk}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||||||
|
%{_unitdir}/colord.service
|
||||||
|
%{_unitdir}/colord-sane.service
|
||||||
|
/lib/udev/rules.d/*.rules
|
||||||
|
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord
|
||||||
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||||
|
%{_sysconfdir}/bash_completion.d/colormgr-completion.bash
|
||||||
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
||||||
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.colord-sane.conf
|
||||||
|
%{_bindir}/cd-create-profile
|
||||||
|
%{_bindir}/cd-fix-profile
|
||||||
|
%{_bindir}/colormgr
|
||||||
|
%{_libdir}/colord-sensors/
|
||||||
|
%{_libexecdir}/%{name}
|
||||||
|
%{_libexecdir}/colord-sane
|
||||||
|
%{_datadir}/color/
|
||||||
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.*
|
||||||
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.colord.sane.xml
|
||||||
|
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
|
||||||
|
%{_datadir}/dbus-1/system-services/org.freedesktop.colord-sane.service
|
||||||
|
%{_datadir}/polkit-1/actions/org.freedesktop.color.policy
|
||||||
|
%{_mandir}/man1/cd-create-profile.1%{?ext_man}
|
||||||
|
%{_mandir}/man1/cd-fix-profile.1%{?ext_man}
|
||||||
|
%{_mandir}/man1/colormgr.1%{?ext_man}
|
||||||
|
|
||||||
|
%files -n libcolord1
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/libcolord.so.*
|
||||||
|
|
||||||
|
%files -n typelib-1_0-Colord-1_0
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/girepository-1.0/Colord-1.0.typelib
|
||||||
|
|
||||||
|
%files -n libcolord-devel
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_includedir}/colord-1/
|
||||||
|
%{_libdir}/libcolord.so
|
||||||
|
%{_libdir}/pkgconfig/colord.pc
|
||||||
|
%{_datadir}/gir-1.0/Colord-1.0.gir
|
||||||
|
%dir %{_datadir}/vala
|
||||||
|
%dir %{_datadir}/vala/vapi
|
||||||
|
%{_datadir}/vala/vapi/colord.vapi
|
||||||
|
|
||||||
|
%files lang -f %{_name}.lang
|
||||||
|
%defattr(-, root, root)
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
%files -n libcolord-gtk1
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/libcolord-gtk.so.*
|
||||||
|
|
||||||
|
%files -n typelib-1_0-ColordGtk-1_0
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/girepository-1.0/ColordGtk-1.0.typelib
|
||||||
|
|
||||||
|
%files -n libcolord-gtk-devel
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_includedir}/colord-1/colord-gtk.h
|
||||||
|
%{_includedir}/colord-1/colord-gtk/
|
||||||
|
%{_libdir}/libcolord-gtk.so
|
||||||
|
%{_libdir}/pkgconfig/colord-gtk.pc
|
||||||
|
%{_datadir}/gir-1.0/ColordGtk-1.0.gir
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
@ -1,3 +1,44 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 14 09:53:20 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.20:
|
||||||
|
+ New Features:
|
||||||
|
- Add a bash completion file for colormgr
|
||||||
|
- Add a BUSY state value for sensor devices
|
||||||
|
- Add a GObject Introspection example
|
||||||
|
- Add a sensor-set-options command to the colormgr tool
|
||||||
|
- Add async and sync methods in libcolord to support sensor
|
||||||
|
options
|
||||||
|
- Add CdIt8 as a helper for reading and writing ti1, ti3 and
|
||||||
|
ccmx files
|
||||||
|
- Add cd_it8_utils_calculate_ccmx() to libcolorhug
|
||||||
|
- Add CdSampleWindow to libcolord-gtk
|
||||||
|
- Add CdWindow which allows us to get the color profile for a
|
||||||
|
GtkWidget
|
||||||
|
- Add functionality to colord-convert to sample ti1 -> ti3
|
||||||
|
files
|
||||||
|
- Add gio-2.0 to the requires line of colord.pc for GFile
|
||||||
|
- Add the concept of 'options' on each color sensor device
|
||||||
|
- colorhug: Allow saving the remote hash as a sensor option
|
||||||
|
- Print any sensor options when doing 'colormgr get-sensors'
|
||||||
|
+ Bugfixes:
|
||||||
|
- colorhug: Save the EEPROM after setting sensor options
|
||||||
|
- Enable gtk-doc in the default distro build
|
||||||
|
- Fix build failure when colord is not installed system-wide
|
||||||
|
- Add colord-build-no-gtk.patch: fix build without GTK+.
|
||||||
|
- Add gnome-common BuildRequires and call to gnome-autogen.sh,
|
||||||
|
needed for above patch.
|
||||||
|
- Enable the build of colord-gtk, by creating a colord-gtk.spec
|
||||||
|
based on colord.spec (with pre_checkin.sh). We do it this way to
|
||||||
|
avoid a build loop between colord and gtk3, since gtk3 depends on
|
||||||
|
colord. The differences are:
|
||||||
|
+ Add a pkgconfig(gtk+-3.0) BuildRequires.
|
||||||
|
+ Add colord and libcolord-devel BuildRequires, so we can use rpm
|
||||||
|
to remove the files from colord.spec subpackages in %install
|
||||||
|
(in order to only package colord-gtk files).
|
||||||
|
+ Create libcolord-gtk1, typelib-1_0-ColordGtk-1_0 and
|
||||||
|
libcolord-gtk-devel subpackages.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 18 07:31:39 UTC 2012 - vuntz@opensuse.org
|
Wed Apr 18 07:31:39 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
102
colord.spec
102
colord.spec
@ -16,16 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define build_gtk 0
|
||||||
|
|
||||||
Name: colord
|
Name: colord
|
||||||
Version: 0.1.19
|
%define _name colord
|
||||||
|
Version: 0.1.20
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: System Daemon for Managing Color Devices
|
Summary: System Daemon for Managing Color Devices
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
Url: http://colord.hughsie.com/
|
Url: http://colord.hughsie.com/
|
||||||
Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
|
Source0: http://www.freedesktop.org/software/colord/releases/%{_name}-%{version}.tar.xz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
Patch0: colord-build-no-gtk.patch
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
|
# needed for patch0
|
||||||
|
BuildRequires: gnome-common
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: sane-backends-devel
|
BuildRequires: sane-backends-devel
|
||||||
BuildRequires: vala
|
BuildRequires: vala
|
||||||
@ -41,6 +47,12 @@ BuildRequires: pkgconfig(lcms2) >= 2.2
|
|||||||
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.103
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.103
|
||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
%if %{build_gtk}
|
||||||
|
# For directory ownership and removing files in %%install
|
||||||
|
BuildRequires: colord
|
||||||
|
BuildRequires: libcolord-devel
|
||||||
|
BuildRequires: pkgconfig(gtk+-3.0)
|
||||||
|
%endif
|
||||||
Requires(pre): pwdutils
|
Requires(pre): pwdutils
|
||||||
Requires: shared-color-profiles
|
Requires: shared-color-profiles
|
||||||
Recommends: %{name}-lang
|
Recommends: %{name}-lang
|
||||||
@ -85,9 +97,45 @@ colord is a system activated daemon that maps devices to color profiles.
|
|||||||
It is used by gnome-color-manager for system integration and use when
|
It is used by gnome-color-manager for system integration and use when
|
||||||
there are no users logged in.
|
there are no users logged in.
|
||||||
|
|
||||||
|
%package -n libcolord-gtk1
|
||||||
|
Summary: System Daemon for Managing Color Devices -- GTK Integration Library
|
||||||
|
Group: System/Libraries
|
||||||
|
Suggests: %{name}
|
||||||
|
|
||||||
|
%description -n libcolord-gtk1
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
%package -n typelib-1_0-ColordGtk-1_0
|
||||||
|
Summary: System Daemon for Managing Color Devices -- GTK Integration Introspection bindings
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n typelib-1_0-ColordGtk-1_0
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
|
This package provides the GObject Introspection bindings for the
|
||||||
|
libcolord-gtk library.
|
||||||
|
|
||||||
|
%package -n libcolord-gtk-devel
|
||||||
|
Summary: System Daemon for Managing Color Devices -- GTK Integration Development Files
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: libcolord-gtk1 = %{version}
|
||||||
|
Requires: typelib-1_0-ColordGtk-1_0 = %{version}
|
||||||
|
|
||||||
|
%description -n libcolord-gtk-devel
|
||||||
|
colord is a system activated daemon that maps devices to color profiles.
|
||||||
|
It is used by gnome-color-manager for system integration and use when
|
||||||
|
there are no users logged in.
|
||||||
|
|
||||||
%lang_package
|
%lang_package
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n %{_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
# needed for patch0
|
||||||
|
NOCONFIGURE=1 gnome-autogen.sh
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
@ -99,16 +147,32 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -name '*.la' -delete -print
|
find %{buildroot} -type f -name '*.la' -delete -print
|
||||||
|
|
||||||
|
%if !%{build_gtk}
|
||||||
|
|
||||||
# Manually install prebuilt man pages, since we don't have docbook2man
|
# Manually install prebuilt man pages, since we don't have docbook2man
|
||||||
pushd man
|
pushd man
|
||||||
test ! -f %{buildroot}%{_mandir}/man1/*
|
test ! -f %{buildroot}%{_mandir}/man1/*
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||||
for man in *.1; do
|
for man in *.1; do
|
||||||
install -m 644 ${man} %{buildroot}%{_mandir}/man1/
|
install -m 644 ${man} %{buildroot}%{_mandir}/man1/
|
||||||
done
|
done
|
||||||
# Check we only have man1 pages to install
|
# Check we only have man1 pages to install
|
||||||
test ! -f *.[2-9]
|
test ! -f *.[2-9]
|
||||||
popd
|
popd
|
||||||
%find_lang %{name}
|
%find_lang %{_name}
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
for file in `rpm -ql colord libcolord1 typelib-1_0-Colord-1_0 libcolord-devel`; do
|
||||||
|
# do not remove directories (might contain files we want); -f to not fail if
|
||||||
|
# file doesn't exist
|
||||||
|
test ! -d %{buildroot}${file} && rm -f %{buildroot}${file}
|
||||||
|
test ${file#%{_mandir}} != ${file} && rm -f %{buildroot}${file%%%{?ext_man}}
|
||||||
|
done
|
||||||
|
rm %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/%{_name}.mo
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre colord.service colord-sane.service
|
%service_add_pre colord.service colord-sane.service
|
||||||
@ -132,6 +196,12 @@ exit 0
|
|||||||
|
|
||||||
%postun -n libcolord1 -p /sbin/ldconfig
|
%postun -n libcolord1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libcolord-gtk1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libcolord-gtk1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if !%{build_gtk}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS ChangeLog COPYING NEWS README
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||||||
@ -140,6 +210,7 @@ exit 0
|
|||||||
/lib/udev/rules.d/*.rules
|
/lib/udev/rules.d/*.rules
|
||||||
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord
|
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||||
|
%{_sysconfdir}/bash_completion.d/colormgr-completion.bash
|
||||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
||||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.colord-sane.conf
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.colord-sane.conf
|
||||||
%{_bindir}/cd-create-profile
|
%{_bindir}/cd-create-profile
|
||||||
@ -176,6 +247,27 @@ exit 0
|
|||||||
%dir %{_datadir}/vala/vapi
|
%dir %{_datadir}/vala/vapi
|
||||||
%{_datadir}/vala/vapi/colord.vapi
|
%{_datadir}/vala/vapi/colord.vapi
|
||||||
|
|
||||||
%files lang -f %{name}.lang
|
%files lang -f %{_name}.lang
|
||||||
|
%defattr(-, root, root)
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
%files -n libcolord-gtk1
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/libcolord-gtk.so.*
|
||||||
|
|
||||||
|
%files -n typelib-1_0-ColordGtk-1_0
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/girepository-1.0/ColordGtk-1.0.typelib
|
||||||
|
|
||||||
|
%files -n libcolord-gtk-devel
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_includedir}/colord-1/colord-gtk.h
|
||||||
|
%{_includedir}/colord-1/colord-gtk/
|
||||||
|
%{_libdir}/libcolord-gtk.so
|
||||||
|
%{_libdir}/pkgconfig/colord-gtk.pc
|
||||||
|
%{_datadir}/gir-1.0/ColordGtk-1.0.gir
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
8
pre_checkin.sh
Normal file
8
pre_checkin.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cp colord.changes colord-gtk.changes
|
||||||
|
sed "s/\(%define *build_gtk *\)0/\11/;s/\(^Name: *\)colord.*/\1colord-gtk/" colord.spec > colord-gtk.spec
|
||||||
|
sed -i "
|
||||||
|
/^Name: *colord-gtk/i \
|
||||||
|
# Do not edit this auto generated file! Edit colord.spec.
|
||||||
|
" colord-gtk.spec
|
Loading…
Reference in New Issue
Block a user