SPECS: wesnoth.spec - added .desktop and icon for editor - include...

arvenil arvenil at pld-linux.org
Sat Oct 13 13:29:40 CEST 2007


Author: arvenil                      Date: Sat Oct 13 11:29:40 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added .desktop and icon for editor
- included new docs

---- Files affected:
SPECS:
   wesnoth.spec (1.76 -> 1.77) 

---- Diffs:

================================================================
Index: SPECS/wesnoth.spec
diff -u SPECS/wesnoth.spec:1.76 SPECS/wesnoth.spec:1.77
--- SPECS/wesnoth.spec:1.76	Sat Oct 13 01:09:40 2007
+++ SPECS/wesnoth.spec	Sat Oct 13 13:29:35 2007
@@ -2,7 +2,7 @@
 # TODO
 # - package rest of developement tools
 # - rename language files sr at latin to sr at Latn and include them
-# - use desktop file included with project
+# - use desktop file included with project (consider which one are better)
 #
 # Conditional build
 %bcond_without	server	# without server
@@ -18,7 +18,8 @@
 Source0:	http://www.wesnoth.org/files/%{name}-%{version}.tar.bz2
 # Source0-md5:	7d49c0aeb396c567a3c09c7dd8904f06
 Source1:	%{name}.desktop
-Source2:	%{name}d.init
+Source2:	%{name}_editor.desktop
+Source3:	%{name}d.init
 Patch0:		%{name}-Makefile.patch
 Patch1:		%{name}-locale_dir.patch
 URL:		http://www.wesnoth.org/
@@ -97,6 +98,8 @@
 	%{?with_server:--enable-server} \
 	%{?with_tools:--enable-editor} \
 	%{?with_tools:--enable-tools} \
+	--docdir=%{_docdir}/%{name}-%{version} \
+	--with-icondir=%{_pixmapsdir} \
 	--with-zipios
 %{__make}
 
@@ -107,9 +110,13 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install images/wesnoth-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}
+# install additional docs
+install changelog README  $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+gzip -9nf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{changelog,README}
+
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/wesnothd
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/wesnothd
 
 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{gl_ES,gl}
 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{nb_NO,nb} 
@@ -145,7 +152,7 @@
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc changelog README doc/manual/manual.txt
+%doc %{_docdir}/%{name}-%{version}
 %attr(755,root,root) %{_bindir}/wesnoth
 %{_mandir}/man6/wesnoth.6*
 %lang(bg) %{_mandir}/bg/man6/wesnoth.6*
@@ -166,7 +173,7 @@
 %lang(sv) %{_mandir}/sv/man6/wesnoth.6*
 %{_datadir}/%{name}
 %{_desktopdir}/%{name}.desktop
-%{_pixmapsdir}/*
+%{_pixmapsdir}/%{name}-icon.png
 
 %if %{with server}
 %files server
@@ -216,6 +223,8 @@
 %lang(sk) %{_mandir}/sk/man6/wesnoth_editor.6*
 %lang(sr) %{_mandir}/sr/man6/wesnoth_editor.6*
 %lang(sv) %{_mandir}/sv/man6/wesnoth_editor.6*
+%{_desktopdir}/%{name}_editor.desktop
+%{_pixmapsdir}/%{name}_editor-icon.png
 %endif
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -224,6 +233,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.77  2007/10/13 11:29:35  arvenil
+- added .desktop and icon for editor
+- included new docs
+
 Revision 1.76  2007/10/12 23:09:40  lisu
 - up to 1.3.9
 - include more man files
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/wesnoth.spec?r1=1.76&r2=1.77&f=u



More information about the pld-cvs-commit mailing list