[gnome-exe-thumbnailer] Initial import (#636819)

Elad Alfassa elad at fedoraproject.org
Tue Apr 12 15:58:10 UTC 2011


commit e7ae489900908ad11b2e264a10978ebb7ca3535b
Author: Elad Alfassa <el.il at doom.co.il>
Date:   Tue Apr 12 18:58:11 2011 +0300

    Initial import (#636819)

 .gitignore                        |    1 +
 gnome-exe-thumbnailer.spec        |  119 +++++++++++++++++++++++++++++++++++++
 gnome-exe-thumbnailer.thumbnailer |    4 +
 sources                           |    1 +
 4 files changed, 125 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..75147e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gnome-exe-thumbnailer_0.7-0ubuntu1.tar.gz
diff --git a/gnome-exe-thumbnailer.spec b/gnome-exe-thumbnailer.spec
new file mode 100644
index 0000000..4dc53fb
--- /dev/null
+++ b/gnome-exe-thumbnailer.spec
@@ -0,0 +1,119 @@
+
+Name:         gnome-exe-thumbnailer
+Version:      0.7
+Release:      3%{?dist}
+Summary:      Shows thumbnails of exe files in nautilus
+
+Group:        User Interface/Desktops
+License:      LGPLv2+
+URL:          https://launchpad.net/ubuntu/+source/%{name}/%{version}-0ubuntu1
+BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source:       https://launchpad.net/ubuntu/+archive/primary/+files/%{name}_%{version}-0ubuntu1.tar.gz
+#Redhat Bugzilla #636819 comment 29, Upstream bug https://bugs.launchpad.net/ubuntu/+source/gnome-exe-thumbnailer/+bug/752578
+Source1:      %{name}.thumbnailer
+Requires:     xorg-x11-fonts-misc glibc-common icoutils ImageMagick gawk grep
+%if 0%{?fedora} < 15
+Requires:     GConf2
+%endif
+BuildArch:    noarch
+
+%description
+%{name} is a thumbnailer for Gnome that will give Windows .exe
+files an icon based on their embedded icon and a generic "Wine program" icon.
+If the program has normal execute permissions, then the standard embedded icon
+will be shown.  This thumbnailer will also give a thumbnail icon for .jar, .py, 
+and similar executable programs.
+
+%prep
+%setup -q
+mv debian/README ./
+rm -fr debian
+
+%build
+%{nil}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
+install -d $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/
+install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/
+install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnome-exe-thumbnailer
+install -pm 755 %{name}.sh $RPM_BUILD_ROOT%{_bindir}/
+%if 0%{?fedora} < 15
+install -pm 644 %{name}.schemas $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/
+%else
+install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/thumbnailers/%{name}.thumbnailer
+%endif
+install -pm 644 README $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/
+install -pm 644 LICENSE $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/
+install -pm 644 template.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}/
+install -pm 644 generic-exe.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}/
+install -pm 644 generic.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}/
+install -pm 644 generic-installer.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}/
+
+%clean
+rm -fr $RPM_BUILD_ROOT
+
+%if 0%{?fedora} < 15
+%pre
+%gconf_schema_prepare %{name}
+%endif
+
+%if 0%{?fedora} < 15
+%post
+%gconf_schema_upgrade %{name}
+%endif
+
+%if 0%{?fedora} < 15
+%preun
+%gconf_schema_remove %{name}
+%endif
+
+%files
+%defattr(-,root,root,-)
+%doc %{_datadir}/doc/*
+%{_bindir}/%{name}.sh
+%if 0%{?fedora} < 15
+%config %{_sysconfdir}/gconf/schemas/%{name}.schemas
+%else
+%{_datadir}/thumbnailers/%{name}.thumbnailer
+%endif
+%{_datadir}/pixmaps/%{name}/template.png
+%{_datadir}/pixmaps/%{name}/generic-exe.png
+%{_datadir}/pixmaps/%{name}/generic.png
+%{_datadir}/pixmaps/%{name}/generic-installer.png
+
+%changelog
+* Tue Apr 12 2011 Elad Alfassa <el.il at doom.co.il> - 0.7-3
+- Fix issues from review
+
+* Mon Apr 11 2011 Elad Alfassa <el.il at doom.co.il> - 0.7-2
+- Bugfix: add xorg-x11-fonts-misc to the dependecy list to make exe version number displaying work again.
+
+* Mon Apr 11 2011 Elad Alfassa <el.il at doom.co.il> - 0.7-1
+- Now works on GNOME 3
+
+* Wed Sep 29 2010 Elad Alfassa <el.il at doom.co.il> - 0.7-0
+- Version update:
+- support Vista icons
+- Include copy of LGPL 2.1 
+- Put images in /usr/share/pixmaps/gnome-exe-thumbnailer
+-and spec file fixes.
+
+* Sun Sep 26 2010 Elad Alfassa <el.il at doom.co.il> - 0.6-3
+-Fix typo.
+
+* Sun Sep 26 2010 Elad Alfassa <el.il at doom.co.il> - 0.6-2
+- Mark schemas file as config file
+
+* Sun Sep 26 2010 Elad Alfassa <el.il at doom.co.il> - 0.6-1
+- More spec file fixes
+
+* Thu Sep 23 2010 Elad Alfassa <elad at macron.co.il> - 0.6-0
+- Version update, some general spec file fixes.
+
+* Sun Jul 25 2010 Elad Alfassa <elad at macron.co.il> - 0.3-1
+- initial build
diff --git a/gnome-exe-thumbnailer.thumbnailer b/gnome-exe-thumbnailer.thumbnailer
new file mode 100644
index 0000000..8c66106
--- /dev/null
+++ b/gnome-exe-thumbnailer.thumbnailer
@@ -0,0 +1,4 @@
+[Thumbnailer Entry]
+TryExec=/usr/bin/gnome-exe-thumbnailer.sh
+Exec=/usr/bin/gnome-exe-thumbnailer.sh %i %o
+MimeType=application/x-ms-dos-executable;application/x-msdownload;application/x-msi;
diff --git a/sources b/sources
index e69de29..d3d7a90 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+78a4f677c5ae86450bdb75d960635d39  gnome-exe-thumbnailer_0.7-0ubuntu1.tar.gz


More information about the scm-commits mailing list