[tzclock] 3.0.1

Mamoru Tasaka mtasaka at fedoraproject.org
Sat Nov 19 20:27:35 UTC 2011


commit c757a10c2f310a2dd0e746f0b28bfe1ed64c569b
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Sun Nov 20 05:27:28 2011 +0900

    3.0.1

 .gitignore   |    1 +
 sources      |    2 +-
 tzclock.spec |   56 ++++++++++++++++++++++++++++++++++----------------------
 3 files changed, 36 insertions(+), 23 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 41c700b..ae0b34e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 tzclock-2.7.7.tar.bz2
+/tzclock-3.0.1.tar.bz2
diff --git a/sources b/sources
index ba50b83..fc39e71 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9973f99c0a1114468cb5eec08975fd92  tzclock-2.7.7.tar.bz2
+72627052a2f3933247a68768d25e28ce  tzclock-3.0.1.tar.bz2
diff --git a/tzclock.spec b/tzclock.spec
index 0156573..47dec03 100644
--- a/tzclock.spec
+++ b/tzclock.spec
@@ -1,15 +1,15 @@
 Name:		tzclock
-Version:	2.7.7
-Release:	3%{?dist}
+Version:	3.0.1
+Release:	1%{?dist}
 Summary:	GTK+ graphical Clock displaying the time around the world
 
 Group:		Amusements/Graphics
 License:	GPLv2
 URL:		http://www.tzclock.org/
 Source0:	http://www.tzclock.org/releases/%{name}-%{version}.tar.bz2
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:	libgnomeui-devel
+BuildRequires:	gtk3-devel
+BuildRequires:	libnotify-devel
 BuildRequires:	desktop-file-utils
 
 %description
@@ -22,37 +22,46 @@ plus there are many other nice features for you to discover.
 %prep
 %setup -q
 
+sed -i.suffix \
+	-e 's|^Icon=.*|Icon=tzclock|' \
+	TzClock.desktop
+
 %build
 %configure
 %{__make} %{?_smp_mflags}
 
 %install
-%{__rm} -rf $RPM_BUILD_ROOT
-
-# Manual install
-for dir in \
-	%{_bindir} \
-	%{_datadir}/{applications,pixmaps} \
-	%{_mandir}/man1
-	do
-	%{__mkdir_p} $RPM_BUILD_ROOT$dir
-done
-
-%{__install} -p -m 0755 TzClock $RPM_BUILD_ROOT%{_bindir}/TzClock
-%{__install} -p -m 0644 TzClock.svg $RPM_BUILD_ROOT%{_datadir}/pixmaps/
-%{__install} -p -m 0644 TzClock.man $RPM_BUILD_ROOT%{_mandir}/man1/TzClock.1
+%{__make} install \
+	INSTALL="%{__install} -p" \
+	DESTDIR=$RPM_BUILD_ROOT
 
 desktop-file-install \
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
 	--vendor fedora \
-	TzClock.desktop
+	--delete-original \
+	$RPM_BUILD_ROOT%{_datadir}/applications/TzClock.desktop
 
 # I like lower case!
 %{__ln_s} -f TzClock $RPM_BUILD_ROOT%{_bindir}/%{name}
 %{__ln_s} -f TzClock.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
 
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
+# Not needed
+%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/screenSize
+
+%post
+touch --no-create %{_datadir}/icons/hicolor/
+exit 0
+
+%postun
+[ "$1" -eq 0 ] || exit 0
+
+touch --no-create %{_datadir}/icons/hicolor/
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+exit 0
+
+%posttrans
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+exit 0
 
 %files
 %defattr(-,root,root,-)
@@ -60,12 +69,15 @@ desktop-file-install \
 %doc	COPYING
 
 %{_bindir}/*
-%{_datadir}/pixmaps/*svg
+%{_datadir}/icons/hicolor/*/*/tzclock*
 %{_datadir}/applications/*desktop
 
 %{_mandir}/man1/*
 
 %changelog
+* Sun Nov 20 2011 Mamoru Tasaka <mtasaka at fedoraproject.org> - 3.0.1-1
+- 3.0.1
+
 * Wed Nov  9 2011 Mamoru Tasaka <mtasaka at fedoraproject.org> - 2.7.7-3
 - Rebuild
 


More information about the scm-commits mailing list