rpms/giver/F-9 Giver.exe.config, NONE, 1.1 giver-0.1.8-fix-desktop-file.patch, NONE, 1.1 giver-0.1.8-photoButtonFix2.patch, NONE, 1.1 giver-0.1.8-username_face.patch, NONE, 1.1 giver.spec, NONE, 1.1 sources, 1.1, 1.2

Tom Callaway spot at fedoraproject.org
Mon Feb 2 21:44:37 UTC 2009


Author: spot

Update of /cvs/pkgs/rpms/giver/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21203/F-9

Modified Files:
	sources 
Added Files:
	Giver.exe.config giver-0.1.8-fix-desktop-file.patch 
	giver-0.1.8-photoButtonFix2.patch 
	giver-0.1.8-username_face.patch giver.spec 
Log Message:
initial branching


--- NEW FILE Giver.exe.config ---
<configuration>
<dllmap dll="gdk-x11-2.0" target="libgdk-x11-2.0.so.0"/>
</configuration>

giver-0.1.8-fix-desktop-file.patch:

--- NEW FILE giver-0.1.8-fix-desktop-file.patch ---
diff -up giver-0.1.8/data/giver.desktop.in.fix-desktop giver-0.1.8/data/giver.desktop.in
--- giver-0.1.8/data/giver.desktop.in.fix-desktop	2007-06-25 14:20:47.000000000 -0400
+++ giver-0.1.8/data/giver.desktop.in	2008-12-02 14:30:16.000000000 -0500
@@ -1,6 +1,5 @@
 
 [Desktop Entry]
-Encoding=UTF-8
 _Name=Giver
 _Comment=Easy quick file sharing
 _GenericName=File Sharing
@@ -9,7 +8,7 @@ Icon=giver
 StartupNotify=false
 Terminal=false
 Type=Application
-Categories=Network;FileSharing
+Categories=Network;X-FileSharing;
 X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=giver
 X-GNOME-Bugzilla-Component=General

giver-0.1.8-photoButtonFix2.patch:

--- NEW FILE giver-0.1.8-photoButtonFix2.patch ---
diff -up giver-0.1.8/src/PreferencesDialog.cs.photoButtonFix giver-0.1.8/src/PreferencesDialog.cs
--- giver-0.1.8/src/PreferencesDialog.cs.photoButtonFix	2008-12-03 12:55:05.000000000 -0500
+++ giver-0.1.8/src/PreferencesDialog.cs	2008-12-03 12:57:33.000000000 -0500
@@ -46,6 +46,7 @@ namespace Giver
 		private Button 				photoButton;
 		private Entry				webEntry;
 		private Entry				gravatarEntry;
+		string					localImagePath;
 
 		public PreferencesDialog() : base ()
 		{
@@ -166,7 +167,13 @@ namespace Giver
 			table.Attach(localButton, 0, 1, 2, 3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			vbox = new VBox();
 			vbox.Show();
-			localImage = new Image(Utilities.GetIcon("stock_person", 48));
+			if (File.Exists(Giver.Application.Preferences.PhotoLocation)) {
+				Logger.Debug("setting image to what we chose");
+				localImage = new Image(Giver.Application.Preferences.PhotoLocation);
+			} else {
+				Logger.Debug("setting image to stock_person");
+				localImage = new Image(Utilities.GetIcon("stock_person", 48));
+			}
 			localImage.Show();
 			vbox.PackStart(localImage, false, false, 0);
 			label = new Label("File");
@@ -174,6 +181,7 @@ namespace Giver
 			vbox.PackStart(label, false, false, 0);
 			table.Attach(vbox, 1, 2, 2 ,3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			photoButton = new Button("Change Photo");
+			photoButton.Clicked += PhotoButtonClick;
 			photoButton.Show();
 			table.Attach(photoButton, 2,3,2,3, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Shrink, 0, 0);
 
@@ -233,6 +241,24 @@ namespace Giver
 			DeleteEvent += WindowDeleted;
 		}
 
+		private void PhotoButtonClick (object o, EventArgs args)
+		{
+			FileChooserDialog fc = new FileChooserDialog(Catalog.GetString("Image File"), this, FileChooserAction.Open);
+			fc.AddButton(Stock.Cancel, ResponseType.Cancel);
+			fc.AddButton(Stock.Open, ResponseType.Ok);
+			fc.Filter = new FileFilter();
+			fc.Filter.AddPattern ("*.gif");
+			fc.Filter.AddPattern ("*.jpg");
+			fc.Filter.AddPattern ("*.png");
+			fc.SelectMultiple = false;
+			fc.DefaultResponse = ResponseType.Ok;
+			if (fc.Run() == (int)ResponseType.Ok) {
+				localImagePath = fc.Filename;
+				Giver.Application.Preferences.PhotoLocation = localImagePath;
+			}
+			fc.Destroy();
+		}
+
 		///<summary>
 		///	WindowDeleted
 		/// Cleans up the conversation object with the ConversationManager
@@ -255,8 +281,8 @@ namespace Giver
 			if(Giver.Application.Preferences.PhotoType.CompareTo(Giver.Preferences.Local) == 0) {
 				localButton.Active = true;
 				photoButton.Sensitive = true;
+				localImagePath = Giver.Application.Preferences.PhotoLocation;
 /*
-				Logger.Debug("photo type is local");
 			   (Glade["local_radiobutton"] as RadioButton).Active = true;
 				Image photo = new Image(photoLocation);
 			   (Glade["local_radiobutton"] as RadioButton).Image = photo;
@@ -320,6 +346,8 @@ namespace Giver
 			localButton.Toggled += delegate {
 				if(localButton.Active)
 				{
+					Application.Preferences.PhotoType = Preferences.Local;
+					Application.Preferences.PhotoLocation = localImagePath;
 					photoButton.Sensitive = true;
 					webEntry.Sensitive = false;
 					gravatarEntry.Sensitive = false;

giver-0.1.8-username_face.patch:

--- NEW FILE giver-0.1.8-username_face.patch ---
diff -up giver-0.1.8/src/GiverService.cs.username_face giver-0.1.8/src/GiverService.cs
--- giver-0.1.8/src/GiverService.cs.username_face	2007-08-03 01:17:45.000000000 -0400
+++ giver-0.1.8/src/GiverService.cs	2008-12-02 14:48:39.000000000 -0500
@@ -128,6 +128,12 @@ namespace Giver
 													"Version=" + Defines.Version,
 													"PhotoType=" + Preferences.Local,
 													"Photo=none" };
+                    } else if (Application.Preferences.PhotoType.CompareTo(Preferences.UserFace) == 0) {
+						txtStrings = new string[] { "User Name=" + Application.Preferences.UserName, 
+													"Machine Name=" + Environment.MachineName, 
+													"Version=" + Defines.Version,
+													"PhotoType=" + Preferences.UserFace,
+													"Photo=none" };	
 					} else if( Application.Preferences.PhotoType.CompareTo(Preferences.Gravatar) == 0) {
 						txtStrings = new string[] { "User Name=" + Application.Preferences.UserName, 
 													"Machine Name=" + Environment.MachineName, 
diff -up giver-0.1.8/src/PhotoService.cs.username_face giver-0.1.8/src/PhotoService.cs
--- giver-0.1.8/src/PhotoService.cs.username_face	2007-08-03 01:18:10.000000000 -0400
+++ giver-0.1.8/src/PhotoService.cs	2008-12-02 14:48:39.000000000 -0500
@@ -92,7 +92,8 @@ namespace Giver
 
 				Logger.Debug ("Resolving photo for: {0}", serviceInfo.UserName);
 				try {
-					if (serviceInfo.PhotoType.CompareTo(Preferences.Local) == 0 ) {
+					if (serviceInfo.PhotoType.CompareTo(Preferences.Local) == 0 || 
+                        serviceInfo.PhotoType.CompareTo(Preferences.UserFace) == 0) {
 						SendingHandler.GetPhoto (serviceInfo);
 						serviceInfo.Photo = serviceInfo.Photo.ScaleSimple(48, 48, Gdk.InterpType.Bilinear);
 					} else if (serviceInfo.PhotoType.CompareTo (Preferences.Gravatar) == 0 ){
diff -up giver-0.1.8/src/Preferences.cs.username_face giver-0.1.8/src/Preferences.cs
--- giver-0.1.8/src/Preferences.cs.username_face	2007-08-03 01:18:25.000000000 -0400
+++ giver-0.1.8/src/Preferences.cs	2008-12-02 14:48:39.000000000 -0500
@@ -38,6 +38,7 @@ namespace Giver
 	public class Preferences
 	{
 		public const string None = "none";
+        public const string UserFace = "face";
 		public const string Local = "local";
 		public const string Gravatar = "gravatar";
 		public const string Uri = "uri";
@@ -55,9 +56,21 @@ namespace Giver
 				XmlNodeList list = document.GetElementsByTagName("PhotoType");
 				XmlElement element = (XmlElement) list[0];
 				if(element == null)
-					return Preferences.None;
-				else
+                {
+                    if (Utilities.UserFaceExists())
+                        return Preferences.UserFace;
+                    else
+					    return Preferences.None;
+                }
+				else
+                {
+                    if (element.InnerText.CompareTo(Preferences.UserFace) == 0 && !Utilities.UserFaceExists())
+                    {
+                        element.InnerText = Preferences.None;
+                        SavePrefs();
+                    }
 					return element.InnerText;
+                }
 			}
 			
 			set
@@ -98,7 +111,6 @@ namespace Giver
 			}
 		}
 
-
 		public string UserName
 		{
 			get
@@ -106,7 +118,7 @@ namespace Giver
 				XmlNodeList list = document.GetElementsByTagName("UserName");
 				XmlElement element = (XmlElement) list[0];
 				if( (element == null) || (element.InnerText.Length < 1) )
-					return Environment.UserName;
+					return Utilities.GetUserName();
 				else
 					return element.InnerText;
 			}
@@ -120,7 +132,7 @@ namespace Giver
 					document.DocumentElement.AppendChild(element);
 				}
 				if(value == null)
-					element.InnerText = Environment.UserName; 
+					element.InnerText = Utilities.GetUserName(); 
 				else
 					element.InnerText = value; 
 				SavePrefs();
diff -up giver-0.1.8/src/PreferencesDialog.cs.username_face giver-0.1.8/src/PreferencesDialog.cs
--- giver-0.1.8/src/PreferencesDialog.cs.username_face	2007-08-03 01:33:12.000000000 -0400
+++ giver-0.1.8/src/PreferencesDialog.cs	2008-12-02 14:48:39.000000000 -0500
@@ -38,6 +38,7 @@ namespace Giver
 		private FileChooserButton	fileLocationButton;
 		private Gtk.Entry 			nameEntry;
 		private Gtk.RadioButton		noneButton;
+		private Gtk.RadioButton		faceButton;
 		private Gtk.RadioButton		localButton;
 		private Gtk.RadioButton		webButton;
 		private Gtk.RadioButton		gravatarButton;
@@ -114,7 +115,7 @@ namespace Giver
 			label.Markup = "<span weight=\"bold\" size=\"large\">Your Picture</span>";
 			mainVBox.PackStart(label, true, true, 0);
 		
-			Gtk.Table table = new Table(4, 3, false);
+			Gtk.Table table = new Table(5, 3, false);
 			table.Show();
 			// None Entry
 			noneButton = new RadioButton((Gtk.RadioButton)null);
@@ -133,10 +134,36 @@ namespace Giver
 			vbox.Show();
 			table.Attach(vbox, 2,3,1,2, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Expand | AttachOptions.Fill, 0, 0);
 
+            // Face Entry
+            if (Utilities.UserFaceExists())
+            {
+                
+    			faceButton = new RadioButton(noneButton);
+    			faceButton.Show();
+    			table.Attach(faceButton, 0, 1, 1, 2, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+                
+    			vbox = new VBox();
+    			vbox.Show();
+                
+    			image = new Image(Utilities.GetUserFaceIcon(48));
+    			image.Show();
+    			vbox.PackStart(image, false, false, 0);
+                
+    			label = new Label("Login photo");
+    			label.Show();
+    			vbox.PackStart(label, false, false, 0);
+    			table.Attach(vbox, 1, 2, 1 ,2, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+                
+    			vbox = new VBox();
+    			vbox.Show();
+    			table.Attach(vbox, 2,3,2,3, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Expand | AttachOptions.Fill, 0, 0);
+
+            }
+            
 			// Local Entry
-			localButton = new RadioButton(noneButton);
+			localButton = new RadioButton(faceButton ?? noneButton);
 			localButton.Show();
-			table.Attach(localButton, 0, 1, 1, 2, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+			table.Attach(localButton, 0, 1, 2, 3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			vbox = new VBox();
 			vbox.Show();
 			localImage = new Image(Utilities.GetIcon("stock_person", 48));
@@ -145,15 +172,15 @@ namespace Giver
 			label = new Label("File");
 			label.Show();
 			vbox.PackStart(label, false, false, 0);
-			table.Attach(vbox, 1, 2, 1 ,2, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+			table.Attach(vbox, 1, 2, 2 ,3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			photoButton = new Button("Change Photo");
 			photoButton.Show();
-			table.Attach(photoButton, 2,3,1,2, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Shrink, 0, 0);
+			table.Attach(photoButton, 2,3,2,3, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Shrink, 0, 0);
 
 			// Web Entry
 			webButton = new RadioButton(noneButton);
 			webButton.Show();
-			table.Attach(webButton, 0, 1, 2, 3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+			table.Attach(webButton, 0, 1, 3, 4, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			vbox = new VBox();
 			vbox.Show();
 			image = new Image(Utilities.GetIcon("web-browser", 48));
@@ -162,15 +189,15 @@ namespace Giver
 			label = new Label("Web Link");
 			label.Show();
 			vbox.PackStart(label, false, false, 0);
-			table.Attach(vbox, 1, 2, 2 ,3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+			table.Attach(vbox, 1, 2, 3, 4, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			webEntry = new Entry();
 			webEntry.Show();
-			table.Attach(webEntry, 2,3,2,3, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Expand | AttachOptions.Fill, 0, 0);
+			table.Attach(webEntry, 2,3,3,4, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Expand | AttachOptions.Fill, 0, 0);
 
 			// Gravatar Entry
 			gravatarButton = new RadioButton(noneButton);
 			gravatarButton.Show();
-			table.Attach(gravatarButton, 0, 1, 3, 4, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+			table.Attach(gravatarButton, 0, 1, 4, 5, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			vbox = new VBox();
 			vbox.Show();
 			image = new Image(Utilities.GetIcon("gravatar", 48));
@@ -179,10 +206,10 @@ namespace Giver
 			label = new Label("Gravatar");
 			label.Show();
 			vbox.PackStart(label, false, false, 0);
-			table.Attach(vbox, 1, 2, 3 ,4, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
+			table.Attach(vbox, 1, 2, 4 ,5, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
 			gravatarEntry = new Entry();
 			gravatarEntry.Show();
-			table.Attach(gravatarEntry, 2,3,3,4, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Expand | AttachOptions.Fill, 0, 0);
+			table.Attach(gravatarEntry, 2,3,4,5, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Expand | AttachOptions.Fill, 0, 0);
 
 			mainVBox.PackStart(table, true, true, 0);
 
@@ -237,6 +264,8 @@ namespace Giver
 				photoButton
 				localImage
 */
+            } else if (Giver.Application.Preferences.PhotoType.CompareTo(Giver.Preferences.UserFace) == 0) {
+                faceButton.Active = true;
 			} else if(Giver.Application.Preferences.PhotoType.CompareTo(Giver.Preferences.Uri) == 0) {
 				webButton.Active = true;
 				webEntry.Text = Giver.Application.Preferences.PhotoLocation;
@@ -246,7 +275,13 @@ namespace Giver
 				gravatarEntry.Text = Giver.Application.Preferences.PhotoLocation;
 			} else {
 				// make this none
-				noneButton.Active = true;
+                if (Utilities.UserFaceExists())
+                {
+                    faceButton.Active = true;
+                    Giver.Application.Preferences.PhotoType = Preferences.UserFace;
+                }
+                else
+				    noneButton.Active = true;
 			}
 		}
 
@@ -271,6 +306,17 @@ namespace Giver
 				}
 			};
 
+            if (faceButton != null)
+                faceButton.Toggled += delegate {
+                    if (faceButton.Active)
+                    {
+                        Application.Preferences.PhotoType = Preferences.UserFace;
+    					photoButton.Sensitive = false;
+    					webEntry.Sensitive = false;
+    					gravatarEntry.Sensitive = false;
+                    }
+                };
+            
 			localButton.Toggled += delegate {
 				if(localButton.Active)
 				{
diff -up giver-0.1.8/src/RequestHandler.cs.username_face giver-0.1.8/src/RequestHandler.cs
--- giver-0.1.8/src/RequestHandler.cs.username_face	2007-08-03 01:19:01.000000000 -0400
+++ giver-0.1.8/src/RequestHandler.cs	2008-12-02 14:48:39.000000000 -0500
@@ -437,7 +437,8 @@ namespace Giver
 		private void HandlePhoto(HttpListenerContext context)
 		{
 			// get the information about what wants to be sent
-			if(Application.Preferences.PhotoType.CompareTo(Preferences.Local) != 0)
+			if(Application.Preferences.PhotoType.CompareTo(Preferences.Local) != 0 && 
+               Application.Preferences.PhotoType.CompareTo(Preferences.UserFace) != 0)
 			{
 				context.Response.StatusCode = (int)HttpStatusCode.NotFound;
 				context.Response.StatusDescription = Application.Preferences.PhotoLocation;
@@ -447,8 +448,12 @@ namespace Giver
 
 			try
 			{
+                string location = Application.Preferences.PhotoLocation;
+                if (Application.Preferences.PhotoType.CompareTo(Preferences.UserFace) == 0)
+                    location = Utilities.GetUserFacePath();
+                
 				FileStream fs = 
-					File.Open(Application.Preferences.PhotoLocation, FileMode.Open, FileAccess.Read);
+					File.Open(location, FileMode.Open, FileAccess.Read);
 				Stream stream = context.Response.OutputStream;
 				context.Response.ContentLength64 = fs.Length;
 				context.Response.StatusCode = (int)HttpStatusCode.OK;
diff -up giver-0.1.8/src/ServiceLocator.cs.username_face giver-0.1.8/src/ServiceLocator.cs
--- giver-0.1.8/src/ServiceLocator.cs.username_face	2007-08-03 01:19:17.000000000 -0400
+++ giver-0.1.8/src/ServiceLocator.cs	2008-12-02 14:50:58.000000000 -0500
@@ -271,6 +271,7 @@ namespace Giver {
 					
 					if(serviceInfo.PhotoType.CompareTo(Preferences.Local) == 0 ||
 						serviceInfo.PhotoType.CompareTo (Preferences.Gravatar) == 0 ||
+						serviceInfo.PhotoType.CompareTo(Preferences.UserFace) == 0 ||
 						serviceInfo.PhotoType.CompareTo (Preferences.Uri) == 0) {
 						// Queue the resolution of the photo
 						PhotoService.QueueResolve (serviceInfo);
diff -up giver-0.1.8/src/Utilities.cs.username_face giver-0.1.8/src/Utilities.cs
--- giver-0.1.8/src/Utilities.cs.username_face	2007-08-03 01:20:05.000000000 -0400
+++ giver-0.1.8/src/Utilities.cs	2008-12-02 14:48:39.000000000 -0500
@@ -32,6 +32,7 @@ using System.Text;
 using System.Net;
 using System.IO;
 using System.Security.Cryptography;
+using Mono.Unix;
 
 
 namespace Giver
@@ -254,5 +255,43 @@ namespace Giver
         }
 
 
+        public static Gdk.Pixbuf GetUserFaceIcon(int size)
+        {
+			try {
+				Gdk.Pixbuf ret = new Gdk.Pixbuf (Utilities.GetUserFacePath());
+				return ret.ScaleSimple (size, size, Gdk.InterpType.Bilinear);
+			} catch (ArgumentException) {}
+			
+			Logger.Debug ("Unable to load user face.");
+			return null;
+        }
+        
+        public static bool UserFaceExists()
+        {
+            return File.Exists(Utilities.GetUserFacePath());
+        }
+        
+        public static string GetUserFacePath()
+        {
+            /*
+                TODO this can be extended to also check for user faces at /opt/gnome/share/pixmaps/faces
+                     or whatever face file/directories supported by other login managers
+             */
+            return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal),".face");
+        }
+        
+        public static string GetUserName()
+        {
+            UnixUserInfo user = UnixUserInfo.GetRealUser();
+            string username = null;
+            if ( user.RealName != null && user.RealName.Length > 0)
+                username = user.RealName.Split(new char[]{','})[0];
+            
+            if ( username == null || username == "")
+                username = Environment.UserName;
+            
+            return username;
+        }
+        
 	}
 }


--- NEW FILE giver.spec ---
# Like most mono packages, giver doesn't generate any debuginfo
%define debug_package %{nil}

Name:		giver
Summary: 	A simple file sharing desktop application
Version:	0.1.8
Release:	3%{?dist}
License:	MIT
Group:		Applications/Internet
Source0:	http://giver.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:	Giver.exe.config
Patch0:		giver-0.1.8-fix-desktop-file.patch
# From: http://code.google.com/p/giver/issues/detail?id=2
Patch1:		giver-0.1.8-username_face.patch
# Sent a clean version of this patch to:
# http://code.google.com/p/giver/issues/detail?id=4
# This patch applies on top of the username_face patch.
Patch2:		giver-0.1.8-photoButtonFix2.patch
URL:		http://code.google.com/p/giver/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	gnome-sharp-devel, gtk-sharp2-devel, notify-sharp-devel
# This really should be avahi-sharp-devel, but it is mispackaged
BuildRequires:  avahi-sharp
BuildRequires:	desktop-file-utils, intltool
Requires:	notify-sharp gtk-sharp2 gnome-sharp avahi-sharp

# No mono implementation for ppc64 or sparc64 right now
ExcludeArch:	ppc64 sparc64

%description
Giver is a simple file sharing desktop application. Other people running Giver 
on your network are automatically discovered and you can send files to them by 
simply dragging the files to their photo or icon shown in Giver. There is no 
knowledge or set up needed beyond what the person looks like or their name to 
use Giver.

%prep
%setup -q
%patch0 -p1 -b .fix-desktop
%patch1 -p1 -b .username_face
%patch2 -p1 -b .photoButtonFix

%build
%configure
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/%{name}/

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang %{name}

%clean
rm -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/pixmaps/*.png

%changelog
* Mon Feb 2 2009 Tom "spot" Callaway <tcallawa at redhat.com> 0.1.8-3
- fix duplicate BuildRequires

* Mon Jan 5 2009 Tom "spot" Callaway <tcallawa at redhat.com> 0.1.8-2
- add missing BuildRequires for perl(XML::Parser), intltool
- Disable ppc64 and sparc64, due to lack of functional mono

* Tue Dec 2 2008 Tom "spot" Callaway <tcallawa at redhat.com> 0.1.8-1
- Initial package for Fedora


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/giver/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	2 Feb 2009 21:38:59 -0000	1.1
+++ sources	2 Feb 2009 21:44:07 -0000	1.2
@@ -0,0 +1 @@
+f9d47fa2c427a16b37571d014af165ce  giver-0.1.8.tar.gz




More information about the fedora-extras-commits mailing list