rpms/xzgv/devel xzgv.spec,1.9,1.10
Hans de Goede
jwrdegoede at fedoraproject.org
Mon May 18 08:51:37 UTC 2009
Author: jwrdegoede
Update of /cvs/extras/rpms/xzgv/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31372
Modified Files:
xzgv.spec
Log Message:
* Mon May 18 2009 Hans de Goede <hdegoede at redhat.com> - 0.9-7
- Add an icon for the menu entry
- Make ChangeLog and NEWS UTF-8
Index: xzgv.spec
===================================================================
RCS file: /cvs/extras/rpms/xzgv/devel/xzgv.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- xzgv.spec 26 Feb 2009 12:22:11 -0000 1.9
+++ xzgv.spec 18 May 2009 08:51:06 -0000 1.10
@@ -1,7 +1,7 @@
Summary: Picture viewer
Name: xzgv
Version: 0.9
-Release: 6%{?dist}
+Release: 7%{?dist}
License: GPLv2+
Group: Applications/Multimedia
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -27,6 +27,12 @@ zgv and the Gimp.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+iconv -f iso8859-1 -t utf8 ChangeLog -o ChangeLog.txt
+touch -r ChangeLog.txt ChangeLog
+mv ChangeLog.txt ChangeLog
+iconv -f iso8859-1 -t utf8 NEWS -o NEWS.txt
+touch -r NEWS.txt NEWS
+mv NEWS.txt NEWS
%build
%{__sed} -i 's|^CFLAGS.*|CFLAGS=%{optflags}|' config.mk
@@ -35,10 +41,10 @@ zgv and the Gimp.
%{__cat} <<EOF > %{name}.desktop
[Desktop Entry]
-Encoding=UTF-8
Name=xzgv Image Viewer
Comment=View different types of images
Exec=xzgv
+Icon=xzgv
Terminal=false
Type=Application
Categories=GTK;Graphics;RasterGraphics;Viewer;
@@ -49,6 +55,9 @@ EOF
%{__install} -d -m 0755 %{buildroot}%{_datadir}/applications/
%{__install} -m 0644 %{name}.desktop %{buildroot}%{_datadir}/applications
+%{__install} -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
+%{__install} -p -m 0644 src/icon-48.xpm \
+ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/xzgv.xpm
%{__make} PREFIX=%{buildroot}/%{_prefix} \
MANDIR=%{buildroot}/%{_mandir}/man1 \
@@ -60,6 +69,16 @@ desktop-file-install --vendor fedora --d
%post
/sbin/install-info %{_infodir}/xzgv.info.gz %{_infodir}/dir || :
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
%preun
if [ "$1" = "0" ]; then
@@ -76,8 +95,13 @@ fi
%{_mandir}/man1/%{name}*
%{_infodir}/%{name}*
%{_datadir}/applications/fedora-%{name}.desktop
+%{_datadir}/icons/hicolor/48x48/apps/xzgv.xpm
%changelog
+* Mon May 18 2009 Hans de Goede <hdegoede at redhat.com> - 0.9-7
+- Add an icon for the menu entry
+- Make ChangeLog and NEWS UTF-8
+
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the scm-commits
mailing list