SPECS: gromit.spec - added desktop file

pawelz pawelz at pld-linux.org
Sun Sep 28 02:40:32 CEST 2008


Author: pawelz                       Date: Sun Sep 28 00:40:32 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added desktop file

---- Files affected:
SPECS:
   gromit.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/gromit.spec
diff -u SPECS/gromit.spec:1.3 SPECS/gromit.spec:1.4
--- SPECS/gromit.spec:1.3	Sun Sep 28 02:17:21 2008
+++ SPECS/gromit.spec	Sun Sep 28 02:40:27 2008
@@ -1,5 +1,7 @@
 # $Revision$, $Date$
 #
+%bcond_without	desktop		# build without .desktop file (and daemon dependency)
+#
 Summary:	Gromit - GRaphics Over MIscellaneous Things
 Summary(pl.UTF-8):	Gromit - narzędzie do rysowania po ekranie
 Name:		gromit
@@ -9,8 +11,10 @@
 Group:		Applications
 Source0:	http://www.home.unix-ag.org/simon/gromit/%{name}-%{version}.tar.gz
 # Source0-md5:	86fd67cfe62b1b955ddcd821e14a8c14
+Source1:	%{name}.desktop
 URL:		http://www.home.unix-ag.org/simon/gromit/
 BuildRequires:	gtk+2-devel
+%{?with_desktop:Requires	daemon}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -18,8 +22,8 @@
 annotations on the screen.
 
 %description -l pl.UTF-8
-Gromit (Graphics Over MIscellaneous Things) jest prostym, małym narzędziem do
-robienia notatek i rysunków bezpośrednio na ekranie.
+Gromit (Graphics Over MIscellaneous Things) jest prostym, małym
+narzędziem do robienia notatek i rysunków bezpośrednio na ekranie.
 
 %prep
 %setup -q
@@ -30,8 +34,9 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
 install gromit $RPM_BUILD_ROOT%{_bindir}/gromit
+%{?with_desktop:install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -40,6 +45,7 @@
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
 %attr(755,root,root) %{_bindir}/gromit
+%{?with_desktop:%{_desktopdir}/gromit.desktop}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -47,6 +53,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2008/09/28 00:40:27  pawelz
+- added desktop file
+
 Revision 1.3  2008/09/28 00:17:21  pawelz
 - Summary and %description
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/gromit.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list