[mate-utils] Split into sub packages (882184)

Dan Mashal vicodan at fedoraproject.org
Sat Jun 15 21:46:35 UTC 2013


commit 19ecf540d4226da4048fd5fd69694cd419c07abf
Author: Dan <dan.mashal at fedoraproject.org>
Date:   Sat Jun 15 14:46:09 2013 -0700

    Split into sub packages (882184)

 mate-utils.spec |  162 +++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 141 insertions(+), 21 deletions(-)
---
diff --git a/mate-utils.spec b/mate-utils.spec
index 5db0fcf..b7e0e22 100644
--- a/mate-utils.spec
+++ b/mate-utils.spec
@@ -1,11 +1,11 @@
 Name:           mate-utils
 Version:        1.6.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        MATE utility programs
 
 License:        GPLv2+ and LGPLv2+
 URL:            http://mate-desktop.org
-Source0:        http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz
+Source0:        http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
 
 BuildRequires:  desktop-file-utils
 BuildRequires:  e2fsprogs-devel
@@ -27,7 +27,7 @@ BuildRequires:  usermode
 %description
 The mate-utils package contains a set of small "desk accessory" utility
 applications for MATE, such as a dictionary, a disk usage analyzer,
-a screenshot tool and others.
+a screen-shot tool and others.
 
 %package devel
 Summary: Development files for mate-utils
@@ -40,9 +40,29 @@ needed to develop programs using the libraries contained in mate-utils.
 Summary: A log file viewer for the MATE desktop
 Requires: usermode
 %description -n mate-system-log
-The mate-system-log package contains an application that lets you
-view various system log files.
+An application that lets you view various system log files.
 
+%package -n mate-screenshot
+Summary: A utility to take a screen-shot of the desktop
+Requires: usermode
+%description -n mate-screenshot
+An application that let you take a screen-shot of your desktop.
+
+%package -n mate-dictionary
+Summary: A dictionary for MATE Desktop
+Requires: usermode
+%description -n mate-dictionary
+The mate-dictionary package contains a dictionary application for MATE Desktop.
+
+%package -n mate-search-tool
+Summary: A file searching tool for MATE Desktop
+%description -n mate-search-tool
+An application to search for files on your computer.
+
+%package -n mate-disk-usage-analyzer
+Summary: A disk usage analyzing tool for MATE Desktop
+%description -n mate-disk-usage-analyzer
+An application to help analyze disk usage.
 
 %prep
 %setup -q
@@ -87,6 +107,7 @@ mv %{buildroot}%{_bindir}/mate-system-log %{buildroot}%{_sbindir}
 ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/mate-system-log
 
 rm -fv $RPM_BUILD_ROOT%{_libdir}/*.la
+rm -fv $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/*.convert
 
 desktop-file-install                          \
   --remove-category="MATE"                    \
@@ -109,10 +130,12 @@ cat mate-dictionary.lang >> %{name}.lang
 cat mate-search-tool.lang >> %{name}.lang
 
 %post
+/sbin/ldconfig
 /bin/touch --no-create %{_datadir}/icons/mate &> /dev/null || :
 /usr/bin/update-desktop-database &> /dev/null || :
 
 %postun
+/sbin/ldconfig
 /usr/bin/update-desktop-database &> /dev/null || :
 if [ $1 -eq 0 ] ; then
     /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
@@ -125,12 +148,70 @@ fi
 
 
 %post -n mate-system-log
+/bin/touch --no-create %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
 /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %postun -n mate-system-log
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
 
 %posttrans -n mate-system-log
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
+%post -n mate-screenshot
+/bin/touch --no-create %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%postun -n mate-screenshot
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans -n mate-screenshot
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%post -n mate-dictionary
+/sbin/ldconfig
+/bin/touch --no-create %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%postun -n mate-dictionary
+/sbin/ldconfig
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans -n mate-dictionary
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%post -n mate-search-tool
+/bin/touch --no-create %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%postun -n mate-search-tool
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans -n mate-search-tool
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %files -f %{name}.lang
 %doc COPYING NEWS README
@@ -141,32 +222,24 @@ fi
 %{_bindir}/mate-dictionary
 %{_bindir}/mate-panel-screenshot
 %{_bindir}/mate-screenshot
-%{_bindir}/mate-search-tool
 %{_bindir}/mate-disk-usage-analyzer
 %{_datadir}/applications/mate-dictionary.desktop
 %{_datadir}/applications/mate-screenshot.desktop
 %{_datadir}/applications/mate-search-tool.desktop
 %{_datadir}/applications/mate-disk-usage-analyzer.desktop
-%{_datadir}/mate-dict/
-%{_datadir}/mate-dictionary/
-%{_datadir}/mate-screenshot/
-%{_datadir}/mate-disk-usage-analyzer/
-%{_datadir}/pixmaps/mate-search-tool/
+%{_datadir}/mate-dict
+%{_datadir}/mate-screenshot
+%{_datadir}/mate-disk-usage-analyzer
+%{_datadir}/pixmaps/mate-search-tool
 %{_libdir}/libmatedict.so.*
 %{_libexecdir}/mate-dictionary-applet
 %{_mandir}/man1/mate-dictionary.1.*
 %{_mandir}/man1/mate-search-tool.1.*
 %{_mandir}/man1/mate-screenshot.1.*
 %{_mandir}/man1/mate-disk-usage-analyzer.1.*
-%{_datadir}/icons/mate/*/apps/baobab.*
-%{_datadir}/mate/help/mate-dictionary/
-%{_datadir}/mate/help/mate-disk-usage-analyzer/
-%{_datadir}/mate/help/mate-search-tool/
-%{_datadir}/MateConf/gsettings/mate-dictionary.convert
-%{_datadir}/MateConf/gsettings/mate-disk-usage-analyzer.convert
-%{_datadir}/MateConf/gsettings/mate-screenshot.convert
-%{_datadir}/MateConf/gsettings/mate-search-tool.convert
-%{_datadir}/MateConf/gsettings/mate-system-log.convert
+%{_datadir}/mate/help/mate-dictionary
+%{_datadir}/mate/help/mate-disk-usage-analyzer
+%{_datadir}/mate/help/mate-search-tool
 %{_datadir}/dbus-1/services/org.mate.panel.applet.DictionaryAppletFactory.service
 %{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml
 %{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml
@@ -190,11 +263,58 @@ fi
 %{_datadir}/mate-utils/
 %{_datadir}/glib-2.0/schemas/org.mate.system-log.gschema.xml
 %{_datadir}/applications/mate-system-log.desktop
-%{_datadir}/mate/help/mate-system-log/
+%{_datadir}/mate/help/mate-system-log
 %{_mandir}/man1/mate-system-log.1.*
 
+%files -n mate-screenshot -f %{name}.lang
+%doc COPYING
+%{_bindir}/mate-screenshot
+%{_bindir}/mate-panel-screenshot
+%{_datadir}/applications/mate-screenshot.desktop
+%{_datadir}/mate-screenshot
+%{_mandir}/man1/mate-screenshot.1.*
+%{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml
+
+%files -n mate-dictionary -f mate-dictionary.lang
+%doc mate-dictionary/AUTHORS
+%doc mate-dictionary/README
+%doc baobab/AUTHORS
+%doc baobab/README
+%{_datadir}/mate-dict
+%{_datadir}/mate-dictionary
+%{_libexecdir}/mate-dictionary-applet
+%{_libdir}/libmatedict.so.*
+%{_mandir}/man1/mate-dictionary.1.*
+%{_datadir}/mate/help/mate-dictionary
+%{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml
+%{_datadir}/icons/mate/*/apps/baobab.*
+%{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet
+
+%files -n mate-search-tool -f mate-search-tool.lang
+%doc COPYING
+%{_bindir}/mate-search-tool
+%{_datadir}/applications/mate-search-tool.desktop
+%{_mandir}/man1/mate-search-tool.1.*
+%{_datadir}/mate/help/mate-search-tool
+
+%{_datadir}/glib-2.0/schemas/org.mate.search-tool.gschema.xml
+
+%files -n mate-disk-usage-analyzer -f mate-disk-usage-analyzer.lang
+%{_bindir}/mate-disk-usage-analyzer
+%{_datadir}/applications/mate-disk-usage-analyzer.desktop
+%{_datadir}/mate-disk-usage-analyzer
+%{_mandir}/man1/mate-disk-usage-analyzer.1.*
+%{_datadir}/mate/help/mate-disk-usage-analyzer
+%{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml
+
 
 %changelog
+* Sat Jun 15 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.0-2
+- Split all the packages up in to sub packages (882184)
+- Update source URL
+- Remove useless convert files
+- Own dirs we're supposed to own
+
 * Sat Apr 13 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.0-1
 - Update to latest 1.6.0 stable release.
 


More information about the scm-commits mailing list