rpms/uget/devel .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 uget.spec, 1.2, 1.3 uget.desktop, 1.1, NONE

Mamoru Tasaka mtasaka at fedoraproject.org
Thu May 14 08:50:48 UTC 2009


Author: mtasaka

Update of /cvs/extras/rpms/uget/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6627/devel

Modified Files:
	.cvsignore sources uget.spec 
Removed Files:
	uget.desktop 
Log Message:
* Thu May 14 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.4.8.1-1
- 1.4.8.1



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/uget/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- .cvsignore	4 May 2009 14:16:51 -0000	1.2
+++ .cvsignore	14 May 2009 08:50:17 -0000	1.3
@@ -1 +1 @@
-uget-1.4.7.tar.gz
+uget-1.4.8.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/uget/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- sources	4 May 2009 14:16:51 -0000	1.2
+++ sources	14 May 2009 08:50:17 -0000	1.3
@@ -1 +1 @@
-e2bb31a1e1064db59ce7f341b9d7b013  uget-1.4.7.tar.gz
+1174f1b9688cde2a75a3fd557ded0fca  uget-1.4.8.1.tar.gz


Index: uget.spec
===================================================================
RCS file: /cvs/extras/rpms/uget/devel/uget.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- uget.spec	4 May 2009 14:19:18 -0000	1.2
+++ uget.spec	14 May 2009 08:50:17 -0000	1.3
@@ -1,13 +1,12 @@
 Name:		uget
-Version:	1.4.7
-Release:	2%{?dist}
+Version:	1.4.8.1
+Release:	1%{?dist}
 Summary:	Download manager using GTK+ and libcurl
 
 Group:		Applications/Internet
 License:	LGPLv2+
 URL:		http://urlget.sourceforge.net/
 Source0:	http://downloads.sourceforge.net/urlget/%{name}-%{version}.tar.gz
-Source1:	uget.desktop
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	desktop-file-utils
@@ -30,6 +29,9 @@ Uget is the successor of urlgfe, which w
 %prep
 %setup -q
 chmod 0644 [A-Z]*
+sed -i.png \
+	-e 's|^Icon=.*$|Icon=uget-icon|' \
+	%{name}-gtk.desktop
 
 %build
 %configure
@@ -42,20 +44,51 @@ make install \
 	INSTALL="install -p"
 desktop-file-install \
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
-	%{SOURCE1}
+	--delete-original \
+	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}-gtk.desktop
+
+for s in 16 32
+do
+	subdir=icons/hicolor/${s}x${s}/apps
+	mkdir -p $RPM_BUILD_ROOT%{_datadir}/${subdir}
+	mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}-icon-${s}x${s}.png \
+		$RPM_BUILD_ROOT%{_datadir}/${subdir}/%{name}-icon.png
+	ln -sf ../${subdir}/%{name}-icon.png \
+		$RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}-icon-${s}x${s}.png
+done
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+touch --no-create %{_datadir}/icons/hicolor
+exit 0
+
+%postun
+[ $1 -eq 0 ] || exit 0
+touch --no-create %{_datadir}/icons/hicolor
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor
+exit 0
+
+%posttrans
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor
+exit 0
+
 %files
 %defattr(-,root,root,-)
 %doc	COPYING
 %doc	ChangeLog
 %doc	README
 %{_bindir}/%{name}-gtk
-%{_datadir}/applications/%{name}.desktop
+
+%{_datadir}/applications/%{name}-gtk.desktop
+%{_datadir}/icons/hicolor/??x??/apps/%{name}-icon.png
+%{_datadir}/pixmaps/%{name}-icon-*.png
 
 %changelog
+* Thu May 14 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.4.8.1-1
+- 1.4.8.1
+
 * Mon May  4 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.4.7-2
 - More detailed summary/description suggested by Christoph Wickert
   <fedora at christoph-wickert.de>


--- uget.desktop DELETED ---




More information about the scm-commits mailing list