gnome-color-manager/gnome-color-manager.spec

176 lines
5.8 KiB
RPMSpec
Raw Normal View History

2009-12-07 16:56:07 +00:00
%define gtk2_version 2.16.0
%define dbus_glib_version 0.73
%define unique_version 1.0.0
%define alphatag 20100222
2009-12-07 16:56:07 +00:00
%{!?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.4
2010-03-01 12:03:57 +00:00
#Release: 0.1.%{?alphatag}git%{?dist}
Release: 1%{?dist}
2009-12-07 16:56:07 +00:00
License: GPLv2+
Group: Applications/System
URL: http://projects.gnome.org/gnome-color-manager/
2010-03-01 12:03:57 +00:00
Source0: http://download.gnome.org/sources/gnome-color-manager/2.29/%{name}-%{version}.tar.gz
#Source0: http://download.gnome.org/sources/gnome-color-manager/2.29/%{name}-%{version}-%{?alphatag}.tar.gz
2009-12-07 16:56:07 +00:00
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
2010-01-04 16:37:04 +00:00
Requires: udev
2009-12-07 16:56:07 +00:00
Requires: vte
2010-01-04 16:37:04 +00:00
Requires: lcms
Requires: cups
2010-01-04 16:37:04 +00:00
Requires: polkit
Requires: PackageKit
Requires: shared-color-profiles
2010-03-01 12:03:57 +00:00
Requires: libcanberra >= %{libcanberra_version}
2009-12-07 16:56:07 +00:00
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
2010-01-04 16:37:04 +00:00
BuildRequires: lcms-devel
BuildRequires: cups-devel
BuildRequires: libtiff-devel
2010-03-01 12:03:57 +00:00
BuildRequires: libcanberra-devel >= %{libcanberra_version}
2009-12-07 16:56:07 +00:00
%description
gnome-color-manager is a session framework that makes it easy to manage, install
and generate color profiles in the GNOME desktop.
%prep
2010-03-01 12:03:57 +00:00
%setup -q
#%setup -q -n %{?name}-%{?version}-%{?alphatag}
2009-12-07 16:56:07 +00:00
%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
2010-01-04 16:37:04 +00:00
/lib/udev/rules.d/*.rules
2009-12-07 16:56:07 +00:00
%{_bindir}/gcm-*
%dir %{_datadir}/gnome-color-manager
%{_datadir}/gnome-color-manager/gcm-*.ui
%dir %{_datadir}/gnome-color-manager/targets
%dir %{_datadir}/gnome-color-manager/icons
%{_datadir}/gnome-color-manager/targets/*.png
%{_datadir}/gnome-color-manager/icons/*.svg
2009-12-07 16:56:07 +00:00
%{_datadir}/man/man1/*.1.gz
%{_datadir}/gnome/help/gnome-color-manager
2010-01-04 16:37:04 +00:00
%{_datadir}/omf/gnome-color-manager
2009-12-07 16:56:07 +00:00
%{_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
2010-01-04 16:37:04 +00:00
%{_sbindir}/gcm-install-system-wide
%{_datadir}/polkit-1/actions/org.gnome.color.policy
2010-01-04 16:37:04 +00:00
# this is probably better in a shared package
%dir %{_localstatedir}/lib/color
2009-12-07 16:56:07 +00:00
%changelog
2010-03-01 12:03:57 +00:00
* Mon Mar 01 2010 Richard Hughes <richard@hughsie.com> 2.29.4-1
- New upstream release.
* Mon Feb 22 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100222
- Another new snapshot from upstream with lots of bugs fixed from the Fedora
test day.
* Wed Feb 18 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100218
- Another new snapshot from upstream for the Fedora test day.
* Wed Feb 17 2010 Richard Hughes <richard@hughsie.com> 2.29.4-0.1.20100217
- New snapshot from upstream for the Fedora test day.
2010-02-01 11:19:35 +00:00
* Mon Feb 01 2010 Richard Hughes <richard@hughsie.com> 2.29.3-1
- New upstream release.
2010-01-18 20:54:55 +00:00
* Mon Jan 18 2010 Matthias Clasen <mclasen@redhat.com> 2.29.2-3
- Rebuild against new gnome-desktop
* Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-2
- Rebuild, hopefully koji has now a working glibc.
2010-01-04 16:37:04 +00:00
* Mon Jan 04 2010 Richard Hughes <richard@hughsie.com> 2.29.2-1
- New upstream release.
2009-12-07 16:56:07 +00:00
* Fri Dec 04 2009 Richard Hughes <richard@hughsie.com> 2.29.1-1
- Initial spec for review.