packages: epdfview/epdfview.spec - update-desktop-database, fix icon

glen glen at pld-linux.org
Sun Sep 18 12:49:32 CEST 2011


Author: glen                         Date: Sun Sep 18 10:49:32 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- update-desktop-database, fix icon

---- Files affected:
packages/epdfview:
   epdfview.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: packages/epdfview/epdfview.spec
diff -u packages/epdfview/epdfview.spec:1.11 packages/epdfview/epdfview.spec:1.12
--- packages/epdfview/epdfview.spec:1.11	Tue Aug 16 11:47:02 2011
+++ packages/epdfview/epdfview.spec	Sun Sep 18 12:49:27 2011
@@ -3,7 +3,7 @@
 Summary(pl.UTF-8):	Lekka przeglądarka PDF-ów dla GNOME
 Name:		epdfview
 Version:	0.1.8
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		X11/Applications
 Source0:	http://trac.emma-soft.com/epdfview/chrome/site/releases/%{name}-%{version}.tar.bz2
@@ -19,6 +19,7 @@
 BuildRequires:	intltool
 BuildRequires:	pkgconfig
 BuildRequires:	poppler-glib-devel > 0.5.2
+Requires:	desktop-file-utils
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -58,22 +59,29 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_pixmapsdir}
+ln $RPM_BUILD_ROOT%{_datadir}/epdfview/pixmaps/icon_epdfview-48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+%{__sed} -i -e 's,Icon=icon_epdfview-48,Icon=%{name},' $RPM_BUILD_ROOT%{_desktopdir}/epdfview.desktop
+
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_desktop_database
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README THANKS
 %attr(755,root,root) %{_bindir}/epdfview
-%{_desktopdir}/epdfview.desktop
-%{_datadir}/epdfview
 %{_mandir}/man1/epdfview.1*
+%{_datadir}/epdfview
+%{_desktopdir}/epdfview.desktop
+%{_pixmapsdir}/epdfview.png
 
 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -81,6 +89,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2011/09/18 10:49:27  glen
+- update-desktop-database, fix icon
+
 Revision 1.11  2011/08/16 09:47:02  lisu
 - notice poppler-0.16.patch removal in previous commit
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/epdfview/epdfview.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list