[empathy] Save some space

Brian Pepple bpepple at fedoraproject.org
Mon May 20 12:38:49 UTC 2013


commit cfea433a9cba5128448566b2b7e6531756b4ccdf
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Tue May 14 21:18:45 2013 -0400

    Save some space

 empathy.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/empathy.spec b/empathy.spec
index 08c34bc..38bc0fb 100644
--- a/empathy.spec
+++ b/empathy.spec
@@ -17,7 +17,7 @@
 
 Name:		empathy
 Version:	3.9.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Instant Messaging Client for GNOME
 
 License:	GPLv2+
@@ -60,6 +60,8 @@ BuildRequires:	libsecret-devel >= %{libsecret_version}
 BuildRequires:	gcr-devel >= %{gcr_version}
 BuildRequires:  pkgconfig(gee-0.8)
 BuildRequires:  itstool
+# hack to conserve space on the live cd
+BuildRequires:  /usr/bin/convert
 
 Requires:	telepathy-filesystem
 Requires:	telepathy-mission-control >= %{tp_mc_min_version}
@@ -95,7 +97,6 @@ install -m 0644 %{SOURCE1} ./README.ConnectionManagers
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
@@ -105,6 +106,11 @@ desktop-file-install --delete-original			\
 	--dir %{buildroot}%{_datadir}/applications	\
 	%{buildroot}%{_datadir}/applications/%{name}.desktop
 
+# hack to conserve space on the live image
+for f in video_overview.png conf_overview.png croom_overview.png; do
+  convert %{buildroot}%{_datadir}/help/C/empathy/figures/$f -resize 150x150 $f
+  mv $f %{buildroot}%{_datadir}/help/C/empathy/figures
+done
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -187,6 +193,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %{_datadir}/adium/message-styles/PlanetGNOME.AdiumMessageStyle/Contents/Resources/main.css
 
 %changelog
+* Tue May 14 2013 Matthias Clasen <mclasen at redhat.com> - 3.9.1-2
+- Save some space by shrinking figures
+
 * Fri May  3 2013 Brian Pepple <bpepple at fedoraproject.org> - 3.9.1-1
 - Update to 3.9.1.
 


More information about the scm-commits mailing list