From b395361bab520910d22db88951f07817d1cf28a7 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 7 Dec 2009 16:56:07 +0000 Subject: [PATCH] *** empty log message *** --- .cvsignore | 1 + gnome-color-manager.spec | 128 +++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 4 files changed, 131 insertions(+) create mode 100644 gnome-color-manager.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..d32c325 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +gnome-color-manager-2.29.1.tar.gz diff --git a/gnome-color-manager.spec b/gnome-color-manager.spec new file mode 100644 index 0000000..8103568 --- /dev/null +++ b/gnome-color-manager.spec @@ -0,0 +1,128 @@ +%define gtk2_version 2.16.0 +%define dbus_glib_version 0.73 +%define unique_version 1.0.0 + +%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Summary: Color management tools for GNOME +Name: gnome-color-manager +Version: 2.29.1 +Release: 1%{?dist} +License: GPLv2+ +Group: Applications/System +URL: http://projects.gnome.org/gnome-color-manager/ +Source0: http://download.gnome.org/sources/gnome-color-manager/2.29/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: gtk2 >= %{gtk2_version} +Requires: gnome-icon-theme +Requires: unique >= %{unique_version} +Requires: shared-mime-info +Requires: dbus-glib >= %{dbus_glib_version} +Requires: dbus-x11 +Requires: vte +Requires: argyllcms +Requires(post): scrollkeeper +Requires(pre): GConf2 +Requires(post): GConf2 +Requires(preun): GConf2 +Requires(postun): scrollkeeper + +BuildRequires: gtk2-devel >= %{gtk2_version} +BuildRequires: scrollkeeper +BuildRequires: gnome-doc-utils >= 0.3.2 +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: libtool +BuildRequires: vte-devel +BuildRequires: gnome-doc-utils +BuildRequires: unique-devel >= %{unique_version} +BuildRequires: intltool +BuildRequires: libgudev1-devel +BuildRequires: dbus-glib-devel >= %{dbus_glib_version} +BuildRequires: libXxf86vm-devel +BuildRequires: libXrandr-devel +BuildRequires: gnome-desktop-devel + +%description +gnome-color-manager is a session framework that makes it easy to manage, install +and generate color profiles in the GNOME desktop. + +%prep +%setup -q + +%build +%configure --disable-scrollkeeper --disable-schemas-install +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +for i in gcm-prefs gcm-import ; do + desktop-file-install --delete-original \ + --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \ + $RPM_BUILD_ROOT%{_datadir}/applications/$i.desktop +done + +%find_lang %name --with-gnome + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` +gconftool-2 --makefile-install-rule \ + %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas >/dev/null || : +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q %{_datadir}/icons/hicolor &> /dev/null || : +fi +update-desktop-database %{_datadir}/applications &> /dev/null || : +update-mime-database %{_datadir}/mime &> /dev/null || : + +%pre +if [ "$1" -gt 1 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas &> /dev/null || : +fi + +%preun +if [ "$1" -eq 0 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/gnome-color-manager.schemas &> /dev/null || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q %{_datadir}/icons/hicolor &> /dev/null || : +fi +update-desktop-database %{_datadir}/applications &> /dev/null || : +update-mime-database %{_datadir}/mime &> /dev/null || : + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README +%{_bindir}/gcm-* +%dir %{_datadir}/gnome-color-manager +%dir %{_datadir}/gnome-color-manager/profiles +%{_datadir}/gnome-color-manager/profiles/*.ic? +%{_datadir}/gnome-color-manager/gcm-*.ui +%{_datadir}/man/man1/*.1.gz +%{_datadir}/gnome/help/gnome-color-manager +#%{_datadir}/omf/gnome-color-manager +%{_datadir}/icons/hicolor/*/*/*.png +%{_datadir}/icons/hicolor/scalable/*/*.svg* +%config(noreplace) %{_sysconfdir}/gconf/schemas/*.schemas +%{_datadir}/applications/gcm-prefs.desktop +%{_datadir}/applications/gcm-import.desktop +%{_sysconfdir}/xdg/autostart/*.desktop +%{_datadir}/dbus-1/services/org.gnome.ColorManager.service + +%changelog +* Fri Dec 04 2009 Richard Hughes 2.29.1-1 +- Initial spec for review. + diff --git a/import.log b/import.log new file mode 100644 index 0000000..919e6d1 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +gnome-color-manager-2_29_1-1_fc12:HEAD:gnome-color-manager-2.29.1-1.fc12.src.rpm:1260204645 diff --git a/sources b/sources index e69de29..4220f22 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ba6a996f19c3826f0f72bfb3f766b288 gnome-color-manager-2.29.1.tar.gz