1 | %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | |
---|
3 | Summary: Color management tools for GNOME |
---|
4 | Name: gnome-color-manager |
---|
5 | Version: 2.32.0 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: GPLv2+ |
---|
8 | Group: Applications/System |
---|
9 | URL: http://projects.gnome.org/gnome-color-manager/ |
---|
10 | Source0: http://download.gnome.org/sources/gnome-color-manager/2.32/%{name}-%{version}.tar.bz2 |
---|
11 | |
---|
12 | Requires: gnome-icon-theme |
---|
13 | Requires: shared-mime-info |
---|
14 | Requires: shared-color-profiles |
---|
15 | Requires(pre): GConf2 |
---|
16 | Requires(post): GConf2 |
---|
17 | Requires(preun): GConf2 |
---|
18 | |
---|
19 | BuildRequires: gtk2-devel >= 2.16.0 |
---|
20 | BuildRequires: scrollkeeper |
---|
21 | BuildRequires: gnome-doc-utils >= 0.3.2 |
---|
22 | BuildRequires: desktop-file-utils |
---|
23 | BuildRequires: gettext |
---|
24 | BuildRequires: libtool |
---|
25 | BuildRequires: vte-devel |
---|
26 | BuildRequires: gnome-doc-utils |
---|
27 | BuildRequires: unique-devel >= 1.0.0 |
---|
28 | BuildRequires: intltool |
---|
29 | BuildRequires: libgudev1-devel |
---|
30 | BuildRequires: dbus-glib-devel >= 0.73 |
---|
31 | BuildRequires: libXxf86vm-devel |
---|
32 | BuildRequires: libXrandr-devel |
---|
33 | BuildRequires: gnome-desktop-devel |
---|
34 | BuildRequires: lcms-devel |
---|
35 | BuildRequires: cups-devel |
---|
36 | BuildRequires: sane-devel |
---|
37 | BuildRequires: libtiff-devel |
---|
38 | BuildRequires: libcanberra-devel |
---|
39 | BuildRequires: libnotify-devel |
---|
40 | BuildRequires: GConf2 |
---|
41 | |
---|
42 | %description |
---|
43 | gnome-color-manager is a session framework that makes it easy to manage, install |
---|
44 | and generate color profiles in the GNOME desktop. |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup -q |
---|
48 | |
---|
49 | %build |
---|
50 | %configure --disable-scrollkeeper --disable-schemas-install |
---|
51 | make %{?_smp_mflags} |
---|
52 | |
---|
53 | %install |
---|
54 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
55 | |
---|
56 | for i in gcm-prefs gcm-import ; do |
---|
57 | desktop-file-install --delete-original \ |
---|
58 | --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \ |
---|
59 | $RPM_BUILD_ROOT%{_datadir}/applications/$i.desktop |
---|
60 | done |
---|
61 | |
---|
62 | %find_lang %name --with-gnome |
---|
63 | |
---|
64 | %post |
---|
65 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
66 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas > /dev/null |
---|
67 | |
---|
68 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
69 | update-desktop-database %{_datadir}/applications &> /dev/null || : |
---|
70 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
71 | |
---|
72 | %pre |
---|
73 | if [ "$1" -gt 1 ]; then |
---|
74 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
75 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas > /dev/null |
---|
76 | fi |
---|
77 | |
---|
78 | %preun |
---|
79 | if [ "$1" -eq 0 ]; then |
---|
80 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
81 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas > /dev/null |
---|
82 | fi |
---|
83 | |
---|
84 | |
---|
85 | %postun |
---|
86 | if [ $1 -eq 0 ]; then |
---|
87 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
88 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
89 | fi |
---|
90 | update-desktop-database %{_datadir}/applications &> /dev/null || : |
---|
91 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
92 | |
---|
93 | %posttrans |
---|
94 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
95 | |
---|
96 | %files -f %{name}.lang |
---|
97 | %defattr(-,root,root,-) |
---|
98 | %doc AUTHORS COPYING NEWS README |
---|
99 | /lib/udev/rules.d/*.rules |
---|
100 | %{_bindir}/gcm-* |
---|
101 | %dir %{_datadir}/gnome-color-manager |
---|
102 | %{_datadir}/gnome-color-manager/gcm-*.ui |
---|
103 | %dir %{_datadir}/gnome-color-manager/targets |
---|
104 | %dir %{_datadir}/gnome-color-manager/icons |
---|
105 | %{_datadir}/gnome-color-manager/targets/*.png |
---|
106 | %{_datadir}/gnome-color-manager/icons/*.svg |
---|
107 | %{_datadir}/man/man1/*.1.gz |
---|
108 | %{_datadir}/icons/hicolor/*/*/*.png |
---|
109 | %{_datadir}/icons/hicolor/scalable/*/*.svg* |
---|
110 | %config(noreplace) %{_sysconfdir}/gconf/schemas/*.schemas |
---|
111 | %{_datadir}/applications/gcm-prefs.desktop |
---|
112 | %{_datadir}/applications/gcm-import.desktop |
---|
113 | %{_sysconfdir}/xdg/autostart/*.desktop |
---|
114 | %{_datadir}/dbus-1/services/org.gnome.ColorManager.service |
---|
115 | %{_sbindir}/gcm-install-system-wide |
---|
116 | %{_datadir}/polkit-1/actions/org.gnome.color.policy |
---|
117 | |
---|
118 | # this is probably better in a shared package |
---|
119 | %dir %{_localstatedir}/lib/color |
---|
120 | |
---|
121 | %changelog |
---|
122 | * Mon Oct 04 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1 |
---|
123 | - new upstream release |
---|
124 | |
---|
125 | * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1 |
---|
126 | - new upstream release |
---|
127 | |
---|
128 | * Sat May 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1 |
---|
129 | - Initial build for Vine Linux |
---|
130 | |
---|
131 | |
---|
132 | * Fri Apr 2 2010 Matthias Clasen <mclasen@redhat.com> 2.30.0-4 |
---|
133 | - BR GConf to make the macros work |
---|
134 | - Modernize icon cache handling |
---|
135 | |
---|
136 | * Wed Mar 31 2010 Richard Hughes <richard@hughsie.com> 2.30.0-3 |
---|
137 | - Fix up a scriptlet problem. |
---|
138 | - Resolves: #578611 |
---|
139 | |
---|
140 | * Mon Mar 29 2010 Richard Hughes <richard@hughsie.com> 2.30.0-2 |
---|
141 | - Add libnotify BR. |
---|
142 | |
---|
143 | * Mon Mar 29 2010 Richard Hughes <richard@hughsie.com> 2.30.0-1 |
---|
144 | - New upstream release. |
---|
145 | |
---|
146 | * Tue Mar 09 2010 Richard Hughes <richard@hughsie.com> 2.29.4-2 |
---|
147 | - Update to the latest version of the Fedora Packaging Guidelines |
---|
148 | - Remove the custom BuildRoot |
---|
149 | - Do not clean the buildroot before install |
---|
150 | - Use the gconf_schema defines for the GConf schemas |
---|
151 | - Remove some over-zealous Requires that are already picked up by rpm. |
---|
152 | - Resolves #571658 |
---|
153 | |
---|
154 | * Mon Mar 01 2010 Richard Hughes <richard@hughsie.com> 2.29.4-1 |
---|
155 | - New upstream release. |
---|
156 | |
---|
157 | * Mon Feb 22 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100222 |
---|
158 | - Another new snapshot from upstream with lots of bugs fixed from the Fedora |
---|
159 | test day. |
---|
160 | |
---|
161 | * Wed Feb 18 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100218 |
---|
162 | - Another new snapshot from upstream for the Fedora test day. |
---|
163 | |
---|
164 | * Wed Feb 17 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100217 |
---|
165 | - New snapshot from upstream for the Fedora test day. |
---|
166 | |
---|
167 | * Mon Feb 01 2010 Richard Hughes <richard@hughsie.com> 2.29.3-1 |
---|
168 | - New upstream release. |
---|
169 | |
---|
170 | * Mon Jan 18 2010 Matthias Clasen <mclasen@redhat.com> 2.29.2-3 |
---|
171 | - Rebuild against new gnome-desktop |
---|
172 | |
---|
173 | * Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-2 |
---|
174 | - Rebuild, hopefully koji has now a working glibc. |
---|
175 | |
---|
176 | * Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-1 |
---|
177 | - New upstream release. |
---|
178 | |
---|
179 | * Fri Dec 04 2009 Richard Hughes <richard@hughsie.com> 2.29.1-1 |
---|
180 | - Initial spec for review. |
---|
181 | |
---|