[libmateweather] move huge data in /usr/share in -data subpackage
Wolfgang Ulbrich
raveit65 at fedoraproject.org
Mon Sep 2 16:45:46 UTC 2013
commit 8f9b8c8ab90700d3faaf0094f619e89016421108
Author: raveit65 <chat-to-me at raveit.de>
Date: Mon Sep 2 18:45:30 2013 +0200
move huge data in /usr/share in -data subpackage
libmateweather.spec | 39 ++++++++++++++++++++++++++++-----------
1 files changed, 28 insertions(+), 11 deletions(-)
---
diff --git a/libmateweather.spec b/libmateweather.spec
index 262100a..5e0d6b9 100644
--- a/libmateweather.spec
+++ b/libmateweather.spec
@@ -13,6 +13,13 @@ BuildRequires: mate-common
%description
Libraries to allow MATE Desktop to display weather information
+%package data
+Summary: Data files for the libmateweather
+BuildArch: noarch
+Requires: %{name} = %{version}-%{release}
+
+%description data
+This package contains shared data needed for libmateweather.
%package devel
Summary: Development files for libmateweather
@@ -46,34 +53,43 @@ find %{buildroot} -name '*.a' -exec rm -fv {} ';'
%find_lang %{name}
-%post
-/sbin/ldconfig
-/bin/touch --no-create %{_datadir}/icons/mate &>/dev/null || :
+%post -p /sbin/ldconfig
%postun
/sbin/ldconfig
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 || :
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
%posttrans
-/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 data
+/bin/touch --no-create %{_datadir}/icons/mate &>/dev/null || :
+
+%postun data
+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
+
+%posttrans data
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &>/dev/null || :
-%files -f %{name}.lang
+
+%files
%doc AUTHORS COPYING README
-%{_datadir}/libmateweather
-%{_datadir}/icons/mate/*/status/*
%{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
%{_libdir}/libmateweather.so.1*
+%files data -f %{name}.lang
+%{_datadir}/icons/mate/*/status/*
+%{_datadir}/libmateweather/
+
%files devel
-%doc %{_datadir}/gtk-doc/html/libmateweather
+%doc %{_datadir}/gtk-doc/html/libmateweather/
%{_libdir}/libmateweather.so
-%{_includedir}/libmateweather
+%{_includedir}/libmateweather/
%{_libdir}/pkgconfig/mateweather.pc
@@ -84,6 +100,7 @@ fi
- use modern make install macro
- fix unused-direct-shlib-dependency
- add LGPLv2+ license
+- move huge data in /usr/share in -data subpackage
* Sat Aug 10 2013 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.6.2-1
- remove BR gsettings-desktop-schemas-devel
More information about the scm-commits
mailing list