Browse Source

updated: daemonshogi

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@616 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 14 years ago
parent
commit
bbe63f91f4
1 changed files with 29 additions and 15 deletions
  1. 29 15
      d/daemonshogi/daemonshogi-vl.spec

+ 29 - 15
d/daemonshogi/daemonshogi-vl.spec

@@ -1,23 +1,27 @@
 Summary:	Daemonshogi is a GTK+ based, Simple shogi(japanese chess) program.
-Summary(ja):デーモン将棋は GTK+ を使ったシンプルな将棋プログラムです。
-Name:	daemonshogi
-Version:	0.4
-Release:	2%{?_dist_release}
-License:	GPL v3
+Summary(ja):	GTK+ を使ったシンプルな将棋プログラム
+Name:		daemonshogi
+Version:	0.5
+Release:	1%{?_dist_release}
+License:	GPLv3
 Group:		Applications/Games
 URL:		http://daemonshogi.sourceforge.jp/
 Source0:	%{name}-%{version}.tar.gz
 Source1:	%{name}.png
 Source2:	%{name}.desktop
-Patch10:	%{name}-0.4-cflags.patch
+Patch10:	%{name}-0.5-cflags.patch
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
-Requires:	gtk2 >= 2.14.0
-Requires:	tokyocabinet
 BuildRequires:	gtk2-devel >= 2.14.0
 BuildRequires:	desktop-file-utils
 BuildRequires:	tokyocabinet-devel
 BuildRequires:	cppunit-devel
-Vendor:	Project Vine
+Requires:	gtk2 >= 2.14.0
+Requires:	tokyocabinet
+Requires(post):	gtk2 >= 2.14.0
+Requires(postun): gtk2 >= 2.14.0
+
+Vendor:		Project Vine
 Distribution:	Vine Linux
 
 %description
@@ -32,7 +36,7 @@ Daemonshogi is a GTK+ based, Simple shogi(japanese chess) program.
 
 %build
 autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s -ldl" \
+RELCFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s -ldl" \
 ./configure --prefix=%{_prefix} 
 make %{?_smp_mflags}
 
@@ -42,29 +46,39 @@ make DESTDIR=$RPM_BUILD_ROOT install
 
 # install desktop
 mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
-install -p -m644 %SOURCE1 ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{name}.png
+install -p -m644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
 desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %SOURCE2
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+%posttrans
+update-desktop-database -q  &> /dev/null || :
 
 %postun
-%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q  &> /dev/null || :
+fi
 
 %files
 %defattr(-, root, root)
 %doc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README README.ja
 %{_bindir}/%{name}
-%{_bindir}/daecui
+%{_bindir}/%{name}-cui
 %{_localedir}/ja/LC_MESSAGES/%{name}*
 %{_datadir}/applications/%{name}.desktop
+%{_datadir}/%{name}/01.json
 %{_datadir}/%{name}/daemon.xpm
+%{_datadir}/%{name}/daemonshogi-book.bin
+%{_datadir}/%{name}/daemonshogi.gtkbuilder
 %{_datadir}/pixmaps/%{name}.png
 
 %changelog
+* Fri Mar 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.5-1
+- new upstream release
+- updated Patch10
+- used %%posttrans section instead of %%post
+
 * Wed Feb 10 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.4-2
 - add Patch10 to honour CFLAGS environment variable
   (and fix configure.in which doesn't care ppc* at all)