SPECS: kanatest.spec - added .desktop and icon

mick3y mick3y at pld-linux.org
Sat Aug 26 13:06:29 CEST 2006


Author: mick3y                       Date: Sat Aug 26 11:06:29 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added .desktop and icon

---- Files affected:
SPECS:
   kanatest.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/kanatest.spec
diff -u SPECS/kanatest.spec:1.8 SPECS/kanatest.spec:1.9
--- SPECS/kanatest.spec:1.8	Sat Dec  3 12:59:30 2005
+++ SPECS/kanatest.spec	Sat Aug 26 13:06:24 2006
@@ -3,11 +3,13 @@
 Summary(pl):	Kanatest - proste narzędzie do ćwiczenia hiragany i katakany
 Name:		kanatest
 Version:	0.3.6
-Release:	2
+Release:	3
 License:	GPL
 Group:		X11/Applications
 Source0:	http://clay.ll.pl/download/%{name}-%{version}.tar.gz
 # Source0-md5:	cd1eb1ce62a52cf69f4df9041a886794
+Source1:	%{name}-ico.png
+Source2:	%{name}.desktop
 URL:		http://clay.ll.pl/projects.html
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -32,16 +34,22 @@
 %{__autoconf}
 %{__automake}
 %configure \
-	--datadir=/usr/share/games
+	--datadir=%{_datadir}/games
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name},%{_mandir}/man1,%{_desktopdir},%{_pixmapsdir}}
 
 find data/ -name 'Makefile*' -exec rm {} \;
 cp -r data/* $RPM_BUILD_ROOT%{_datadir}/games/%{name}
-install src/kanatest $RPM_BUILD_ROOT%{_bindir} 
+install src/kanatest $RPM_BUILD_ROOT%{_bindir}
+#install -d $RPM_BUILD_ROOT%{_mandir}/man1
+#install -d $RPM_BUILD_ROOT%{_desktopdir}
+#install -d $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/
+install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/
 
 #fix me
 #%%find_lang %{name}
@@ -52,8 +60,11 @@
 %files
 %defattr(644,root,root,755)
 %doc README AUTHORS
+%{_mandir}/man1/%{name}.1*
 %attr(755,root,root) %{_bindir}/kanatest
 %{_datadir}/games/%{name}
+%{_desktopdir}/*
+%{_pixmapsdir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -61,6 +72,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2006/08/26 11:06:24  mick3y
+- added .desktop and icon
+
 Revision 1.8  2005/12/03 11:59:30  leafnode
 - fixed wrong datadir specification
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/kanatest.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list