|
|
b395361 |
%define gtk2_version 2.16.0
|
|
|
b395361 |
%define dbus_glib_version 0.73
|
|
|
b395361 |
%define unique_version 1.0.0
|
|
|
1a16fd8 |
%define alphatag 20100217
|
|
|
b395361 |
|
|
|
b395361 |
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
b395361 |
|
|
|
b395361 |
Summary: Color management tools for GNOME
|
|
|
b395361 |
Name: gnome-color-manager
|
|
|
1a16fd8 |
Version: 2.29.4
|
|
|
86ef798 |
#Release: 0.1.%{?alphatag}git%{?dist}
|
|
|
86ef798 |
Release: 1%{?dist}
|
|
|
b395361 |
License: GPLv2+
|
|
|
b395361 |
Group: Applications/System
|
|
|
b395361 |
URL: http://projects.gnome.org/gnome-color-manager/
|
|
|
86ef798 |
Source0: http://download.gnome.org/sources/gnome-color-manager/2.29/%{name}-%{version}.tar.gz
|
|
|
86ef798 |
#Source0: http://download.gnome.org/sources/gnome-color-manager/2.29/%{name}-%{version}-%{?alphatag}.tar.gz
|
|
|
b395361 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
b395361 |
|
|
|
b395361 |
Requires: gtk2 >= %{gtk2_version}
|
|
|
b395361 |
Requires: gnome-icon-theme
|
|
|
b395361 |
Requires: unique >= %{unique_version}
|
|
|
b395361 |
Requires: shared-mime-info
|
|
|
b395361 |
Requires: dbus-glib >= %{dbus_glib_version}
|
|
|
b395361 |
Requires: dbus-x11
|
|
|
37cc513 |
Requires: udev
|
|
|
b395361 |
Requires: vte
|
|
|
37cc513 |
Requires: lcms
|
|
|
1a16fd8 |
Requires: cups
|
|
|
37cc513 |
Requires: polkit
|
|
|
37cc513 |
Requires: PackageKit
|
|
|
37cc513 |
Requires: shared-color-profiles
|
|
|
86ef798 |
Requires: libcanberra >= %{libcanberra_version}
|
|
|
b395361 |
Requires(post): scrollkeeper
|
|
|
b395361 |
Requires(pre): GConf2
|
|
|
b395361 |
Requires(post): GConf2
|
|
|
b395361 |
Requires(preun): GConf2
|
|
|
b395361 |
Requires(postun): scrollkeeper
|
|
|
b395361 |
|
|
|
b395361 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
|
b395361 |
BuildRequires: scrollkeeper
|
|
|
b395361 |
BuildRequires: gnome-doc-utils >= 0.3.2
|
|
|
b395361 |
BuildRequires: desktop-file-utils
|
|
|
b395361 |
BuildRequires: gettext
|
|
|
b395361 |
BuildRequires: libtool
|
|
|
b395361 |
BuildRequires: vte-devel
|
|
|
b395361 |
BuildRequires: gnome-doc-utils
|
|
|
b395361 |
BuildRequires: unique-devel >= %{unique_version}
|
|
|
b395361 |
BuildRequires: intltool
|
|
|
b395361 |
BuildRequires: libgudev1-devel
|
|
|
b395361 |
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
|
|
|
b395361 |
BuildRequires: libXxf86vm-devel
|
|
|
b395361 |
BuildRequires: libXrandr-devel
|
|
|
b395361 |
BuildRequires: gnome-desktop-devel
|
|
|
37cc513 |
BuildRequires: lcms-devel
|
|
|
1a16fd8 |
BuildRequires: cups-devel
|
|
|
1a16fd8 |
BuildRequires: libtiff-devel
|
|
|
86ef798 |
BuildRequires: libcanberra-devel >= %{libcanberra_version}
|
|
|
b395361 |
|
|
|
b395361 |
%description
|
|
|
b395361 |
gnome-color-manager is a session framework that makes it easy to manage, install
|
|
|
b395361 |
and generate color profiles in the GNOME desktop.
|
|
|
b395361 |
|
|
|
b395361 |
%prep
|
|
|
86ef798 |
%setup -q
|
|
|
86ef798 |
#%setup -q -n %{?name}-%{?version}-%{?alphatag}
|
|
|
b395361 |
|
|
|
b395361 |
%build
|
|
|
86ef798 |
%configure --disable-scrollkeeper --disable-schemas-install
|
|
|
b395361 |
make %{?_smp_mflags}
|
|
|
b395361 |
|
|
|
b395361 |
%install
|
|
|
b395361 |
rm -rf $RPM_BUILD_ROOT
|
|
|
b395361 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
b395361 |
|
|
|
b395361 |
for i in gcm-prefs gcm-import ; do
|
|
|
b395361 |
desktop-file-install --delete-original \
|
|
|
b395361 |
--dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
|
|
|
b395361 |
$RPM_BUILD_ROOT%{_datadir}/applications/$i.desktop
|
|
|
b395361 |
done
|
|
|
b395361 |
|
|
|
b395361 |
%find_lang %name --with-gnome
|
|
|
b395361 |
|
|
|
b395361 |
%clean
|
|
|
b395361 |
rm -rf $RPM_BUILD_ROOT
|
|
|
b395361 |
|
|
|
b395361 |
%post
|
|
|
b395361 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
b395361 |
gconftool-2 --makefile-install-rule \
|
|
|
b395361 |
%{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas >/dev/null || :
|
|
|
b395361 |
touch --no-create %{_datadir}/icons/hicolor
|
|
|
b395361 |
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
|
b395361 |
gtk-update-icon-cache -q %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
b395361 |
fi
|
|
|
b395361 |
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
|
|
b395361 |
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
b395361 |
|
|
|
b395361 |
%pre
|
|
|
b395361 |
if [ "$1" -gt 1 ]; then
|
|
|
b395361 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
b395361 |
gconftool-2 --makefile-uninstall-rule \
|
|
|
b395361 |
%{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas &> /dev/null || :
|
|
|
b395361 |
fi
|
|
|
b395361 |
|
|
|
b395361 |
%preun
|
|
|
b395361 |
if [ "$1" -eq 0 ]; then
|
|
|
b395361 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
b395361 |
gconftool-2 --makefile-uninstall-rule \
|
|
|
b395361 |
%{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas &> /dev/null || :
|
|
|
b395361 |
fi
|
|
|
b395361 |
|
|
|
b395361 |
%postun
|
|
|
b395361 |
touch --no-create %{_datadir}/icons/hicolor
|
|
|
b395361 |
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
|
b395361 |
gtk-update-icon-cache -q %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
b395361 |
fi
|
|
|
b395361 |
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
|
|
b395361 |
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
b395361 |
|
|
|
b395361 |
%files -f %{name}.lang
|
|
|
b395361 |
%defattr(-,root,root,-)
|
|
|
b395361 |
%doc AUTHORS COPYING NEWS README
|
|
|
37cc513 |
/lib/udev/rules.d/*.rules
|
|
|
b395361 |
%{_bindir}/gcm-*
|
|
|
b395361 |
%dir %{_datadir}/gnome-color-manager
|
|
|
b395361 |
%{_datadir}/gnome-color-manager/gcm-*.ui
|
|
|
1a16fd8 |
%dir %{_datadir}/gnome-color-manager/targets
|
|
|
1a16fd8 |
%dir %{_datadir}/gnome-color-manager/icons
|
|
|
1a16fd8 |
%{_datadir}/gnome-color-manager/targets/*.png
|
|
|
1a16fd8 |
%{_datadir}/gnome-color-manager/icons/*.svg
|
|
|
b395361 |
%{_datadir}/man/man1/*.1.gz
|
|
|
b395361 |
%{_datadir}/gnome/help/gnome-color-manager
|
|
|
37cc513 |
%{_datadir}/omf/gnome-color-manager
|
|
|
b395361 |
%{_datadir}/icons/hicolor/*/*/*.png
|
|
|
b395361 |
%{_datadir}/icons/hicolor/scalable/*/*.svg*
|
|
|
b395361 |
%config(noreplace) %{_sysconfdir}/gconf/schemas/*.schemas
|
|
|
b395361 |
%{_datadir}/applications/gcm-prefs.desktop
|
|
|
b395361 |
%{_datadir}/applications/gcm-import.desktop
|
|
|
b395361 |
%{_sysconfdir}/xdg/autostart/*.desktop
|
|
|
b395361 |
%{_datadir}/dbus-1/services/org.gnome.ColorManager.service
|
|
|
37cc513 |
%{_sbindir}/gcm-install-system-wide
|
|
|
37cc513 |
%{_datadir}/polkit-1/actions/org.gnome.color.policy
|
|
|
1a16fd8 |
|
|
|
37cc513 |
# this is probably better in a shared package
|
|
|
37cc513 |
%dir %{_localstatedir}/lib/color
|
|
|
b395361 |
|
|
|
b395361 |
%changelog
|
|
|
86ef798 |
* Mon Mar 01 2010 Richard Hughes <richard@hughsie.com> 2.29.4-1
|
|
|
86ef798 |
- New upstream release.
|
|
|
86ef798 |
|
|
|
1a16fd8 |
* Wed Feb 17 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100217
|
|
|
1a16fd8 |
- New snapshot from upstream for the Fedora test day.
|
|
|
1a16fd8 |
|
|
|
2b5a88a |
* Mon Feb 01 2010 Richard Hughes <richard@hughsie.com> 2.29.3-1
|
|
|
2b5a88a |
- New upstream release.
|
|
|
2b5a88a |
|
|
|
14e520b |
* Mon Jan 18 2010 Matthias Clasen <mclasen@redhat.com> 2.29.2-3
|
|
|
14e520b |
- Rebuild against new gnome-desktop
|
|
|
14e520b |
|
|
|
f7db50c |
* Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-2
|
|
|
f7db50c |
- Rebuild, hopefully koji has now a working glibc.
|
|
|
f7db50c |
|
|
|
37cc513 |
* Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-1
|
|
|
37cc513 |
- New upstream release.
|
|
|
37cc513 |
|
|
|
b395361 |
* Fri Dec 04 2009 Richard Hughes <richard@hughsie.com> 2.29.1-1
|
|
|
b395361 |
- Initial spec for review.
|
|
|
b395361 |
|