%define po_package %{name} Name: mate-utils Version: 1.4.0 Release: 5%{?dist} Summary: MATE utils License: GPLv2+ and LGPLv2+ URL: http://mate-desktop.org Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz BuildRequires: mate-common BuildRequires: mate-doc-utils BuildRequires: mate-conf-devel BuildRequires: mate-corba-devel BuildRequires: gtk2-devel BuildRequires: rarian-compat BuildRequires: rarian-devel BuildRequires: libSM-devel BuildRequires: libcanberra-devel BuildRequires: libgtop2-devel BuildRequires: desktop-file-utils Requires(pre): mate-conf Requires(post): mate-conf desktop-file-utils Requires(preun): mate-conf desktop-file-utils %description MATE utils %package devel Summary: Development files for mate-settings-daemon Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for mate-panel %prep %setup -q NOCONFIGURE=1 ./autogen.sh %build %configure \ --with-gnu-ld \ --with-x \ --enable-gdict-applet=no \ --disable-scrollkeeper \ --disable-schemas-install make %{?_smp_mflags} V=1 %install export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make DESTDIR=%{buildroot} install %find_lang %{po_package} find %{buildroot} -name '*.la' -exec rm -rf {} ';' find %{buildroot} -name '*.a' -exec rm -rf {} ';' desktop-file-install \ --remove-category="MATE" \ --add-category="X-Mate" \ --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %pre %mateconf_schema_prepare baobab %mateconf_schema_prepare mate-dictionary %mateconf_schema_prepare mate-screenshot %mateconf_schema_prepare mate-search-tool %mateconf_schema_prepare mate-system-log %post /sbin/ldconfig /bin/touch --no-create %{_datadir}/icons/mate &>/dev/null || : /usr/bin/update-desktop-database &> /dev/null || : %mateconf_schema_upgrade baobab %mateconf_schema_upgrade mate-dictionary %mateconf_schema_upgrade mate-screenshot %mateconf_schema_upgrade mate-search-tool %mateconf_schema_upgrade mate-system-log %postun /sbin/ldconfig /usr/bin/update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/mate &>/dev/null /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &>/dev/null || : fi %mateconf_schema_remove baobab %mateconf_schema_remove mate-dictionary %mateconf_schema_remove mate-screenshot %mateconf_schema_remove mate-search-tool %mateconf_schema_remove mate-system-log %posttrans /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &>/dev/null || : %files -f %{po_package}.lang %doc AUTHORS COPYING README %{_mandir}/man1/mate-*.gz %{_sysconfdir}/mateconf/schemas/baobab.schemas %{_sysconfdir}/mateconf/schemas/mate-dictionary.schemas %{_sysconfdir}/mateconf/schemas/mate-screenshot.schemas %{_sysconfdir}/mateconf/schemas/mate-search-tool.schemas %{_sysconfdir}/mateconf/schemas/mate-system-log.schemas %{_bindir}/mate-dictionary %{_bindir}/mate-disk-usage-analyzer %{_bindir}/mate-panel-screenshot %{_bindir}/mate-screenshot %{_bindir}/mate-search-tool %{_bindir}/mate-system-log %{_libdir}/libmatedict.so.* %{_datadir}/applications/mate-dictionary.desktop %{_datadir}/applications/mate-disk-usage-analyzer.desktop %{_datadir}/applications/mate-screenshot.desktop %{_datadir}/applications/mate-search-tool.desktop %{_datadir}/applications/mate-system-log.desktop %{_datadir}/icons/mate/24x24/apps/*.png %{_datadir}/icons/mate/scalable/apps/*.svg %{_datadir}/pixmaps/mate-search-tool %{_datadir}/mate-dict %{_datadir}/mate-dictionary %{_datadir}/mate-disk-usage-analyzer %{_datadir}/mate-screenshot %{_datadir}/mate-utils %{_datadir}/mate/help/mate-dictionary %{_datadir}/mate/help/mate-disk-usage-analyzer %{_datadir}/mate/help/mate-search-tool %{_datadir}/mate/help/mate-system-log %{_datadir}/omf/mate-dictionary %{_datadir}/omf/mate-disk-usage-analyzer %{_datadir}/omf/mate-search-tool %{_datadir}/omf/mate-system-log %files devel %{_includedir}/mate-dict %{_libdir}/libmatedict.so %{_libdir}/pkgconfig/mate-dict.pc %changelog * Wed Dec 05 2012 Dan Mashal - 1.4.0-5 - Clean up spec file and fix package dependency conflicts created by move to 1.5 * Thu Nov 08 2012 Leigh Scott - 1.4.0-4 - rebuild for 1.5.0 * Mon Nov 05 2012 Leigh Scott - 1.4.0-3 - drop gdict-applet till upstream fixes it - sort out lang file mess - link identical immages in help to save space - fix directory ownership of help files - add build requires mate-conf-devel - add build requires desktop-file-utils * Sun Nov 04 2012 Leigh Scott - 1.4.0-2 - add build requires popt-devel * Tue Oct 23 2012 Leigh Scott - 1.4.0-1 - Initial build