rpms/file-roller/devel cab.patch, NONE, 1.1 file-roller.spec, 1.152, 1.153
Matthias Clasen
mclasen at fedoraproject.org
Sat Aug 15 02:45:04 UTC 2009
- Previous message (by thread): rpms/telepathy-butterfly/devel .cvsignore, 1.10, 1.11 sources, 1.10, 1.11 telepathy-butterfly.spec, 1.16, 1.17
- Next message (by thread): rpms/gnome-screensaver/devel cosmos-wallpaper.xml, NONE, 1.1 cosmos.xml, NONE, 1.1 gnome-screensaver.spec, 1.218, 1.219
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/pkgs/rpms/file-roller/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1219
Modified Files:
file-roller.spec
Added Files:
cab.patch
Log Message:
fix .cab handling
cab.patch:
nautilus/nautilus-fileroller.c | 2 +-
src/fr-command-7z.c | 7 +++++--
src/main.c | 4 ++--
3 files changed, 8 insertions(+), 5 deletions(-)
--- NEW FILE cab.patch ---
diff --git a/nautilus/nautilus-fileroller.c b/nautilus/nautilus-fileroller.c
index e467e17..d67b69e 100644
--- a/nautilus/nautilus-fileroller.c
+++ b/nautilus/nautilus-fileroller.c
@@ -151,7 +151,7 @@ static char *mime_types[] = {
"application/x-bzip-compressed-tar",
"application/x-bzip1",
"application/x-bzip1-compressed-tar",
- "application/x-cabinet",
+ "application/vnd.ms-cab-compressed",
"application/x-cbr",
"application/x-cbz",
"application/x-cd-image",
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index b24cbd5..ef1eb08 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -512,7 +512,7 @@ fr_command_7z_handle_error (FrCommand *comm,
const char *sevenz_mime_types[] = { "application/x-7z-compressed",
"application/x-arj",
- "application/x-cabinet",
+ "application/vnd.ms-cab-compressed",
"application/x-cd-image",
/*"application/x-cbr",*/
"application/x-cbz",
@@ -545,7 +545,10 @@ fr_command_7z_get_capabilities (FrCommand *comm,
else if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) {
capabilities |= FR_COMMAND_CAN_READ_WRITE | FR_COMMAND_CAN_ENCRYPT | FR_COMMAND_CAN_ENCRYPT_HEADER | FR_COMMAND_CAN_CREATE_VOLUMES;
}
- else if (is_program_in_path ("7z")) {
+ else if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) {
+ capabilities |= FR_COMMAND_CAN_READ_WRITE | FR_COMMAND_CAN_ENCRYPT | FR_COMMAND_CAN_ENCRYPT_HEADER | FR_COMMAND_CAN_CREATE_VOLUMES;
+ }
+ else if (is_program_in_path ("7z") || is_program_in_path ("7za")) {
if (is_mime_type (mime_type, "application/x-rar")
|| is_mime_type (mime_type, "application/x-cbr"))
{
diff --git a/src/main.c b/src/main.c
index 0981a23..16cd83b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -88,7 +88,7 @@ FrMimeTypeDescription mime_type_desc[] = {
{ "application/x-bzip-compressed-tar", ".tar.bz2", N_("Tar compressed with bzip2 (.tar.bz2)"), 0 },
{ "application/x-bzip1", ".bz", NULL, 0 },
{ "application/x-bzip1-compressed-tar", ".tar.bz", N_("Tar compressed with bzip (.tar.bz)"), 0 },
- { "application/x-cabinet", ".cab", N_("Cabinet (.cab)"), 0 },
+ { "application/vnd.ms-cab-compressed", ".cab", N_("Cabinet (.cab)"), 0 },
{ "application/x-cbr", ".cbr", N_("Rar Archived Comic Book (.cbr)"), 0 },
{ "application/x-cbz", ".cbz", N_("Zip Archived Comic Book (.cbz)"), 0 },
{ "application/x-cd-image", ".iso", NULL, 0 },
@@ -130,7 +130,7 @@ FrExtensionType file_ext_type[] = {
{ ".bin", "application/x-stuffit" },
{ ".bz", "application/x-bzip" },
{ ".bz2", "application/x-bzip" },
- { ".cab", "application/x-cabinet" },
+ { ".cab", "application/vnd.ms-cab-compressed" },
{ ".cbr", "application/x-cbr" },
{ ".cbz", "application/x-cbz" },
{ ".cpio", "application/x-cpio" },
Index: file-roller.spec
===================================================================
RCS file: /cvs/pkgs/rpms/file-roller/devel/file-roller.spec,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -p -r1.152 -r1.153
--- file-roller.spec 11 Aug 2009 04:58:02 -0000 1.152
+++ file-roller.spec 15 Aug 2009 02:45:03 -0000 1.153
@@ -11,11 +11,14 @@
Summary: Tool for viewing and creating archives
Name: file-roller
Version: 2.27.90
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Applications/Archiving
URL: http://download.gnome.org/sources/file-roller/
Source: http://download.gnome.org/sources/file-roller/2.27/file-roller-%{version}.tar.bz2
+# http://bugzilla.gnome.org/show_bug.cgi?id=591868
+Patch0: cab.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: pango-devel >= %{pango_version}
@@ -50,6 +53,7 @@ such as tar or zip files.
%prep
%setup -q
+%patch0 -p1 -b .cab
autoreconf -f -i
@@ -128,6 +132,9 @@ fi
%{_datadir}/icons/hicolor/scalable/apps/file-roller.svg
%changelog
+* Fri Aug 14 2009 Matthias Clasen <mclasen at redhat.com> 2.27.90-2
+- Make opening .cab files work
+
* Tue Aug 11 2009 Matthias Clasen <mclasen at redhat.com> 2.27.90-1
- Update to 2.27.90
- Previous message (by thread): rpms/telepathy-butterfly/devel .cvsignore, 1.10, 1.11 sources, 1.10, 1.11 telepathy-butterfly.spec, 1.16, 1.17
- Next message (by thread): rpms/gnome-screensaver/devel cosmos-wallpaper.xml, NONE, 1.1 cosmos.xml, NONE, 1.1 gnome-screensaver.spec, 1.218, 1.219
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list