Bug 215241 - Review Request: thunar-archive-plugin - Archive plugin for the Thunar file manager
Summary: Review Request: thunar-archive-plugin - Archive plugin for the Thunar file ma...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Patrice Dumas
QA Contact: Fedora Package Reviews List
URL:
Whiteboard:
Depends On: 217311
Blocks: FE-ACCEPT 214032
TreeView+ depends on / blocked
 
Reported: 2006-11-12 19:50 UTC by Christoph Wickert
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-03 01:05:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Christoph Wickert 2006-11-12 19:50:50 UTC
Spec URL: 
http://home.arcor.de/christoph.wickert/fedora/extras/review/SPECS/thunar-archive-plugin.spec
SRPM URL: 
http://home.arcor.de/christoph.wickert/fedora/extras/review/SRPMS/thunar-archive-plugin-0.2.2-1.fc7.src.rpm
Description:
The Thunar Archive Plugin allows you to create and extract archive files using 
the file context menus in the Thunar file manager. Starting with version 0.2.0, 
the plugin provides a generic scripting interface for archive managers and 
File Roller is no longer hardcoded.

Note:
xarchiver (bug #198098) is also supported, ark is not working ATM. This is because the mimetypes are not registered correctly by kdeutils.

Comment 1 Patrice Dumas 2006-11-12 20:26:10 UTC
It seems to me that 'and File Roller is no longer hardcoded.' could
be removed from %description.

It doesn't really work for me. Icons have appeared, but 'extract to...' 
fails with a pop-up window 
  Failed to extract files.
  No suitable archive manager found.

Comment 2 Christoph Wickert 2006-11-12 20:40:17 UTC
(In reply to comment #1)
> It seems to me that 'and File Roller is no longer hardcoded.' could
> be removed from %description.

ok.

> It doesn't really work for me. Icons have appeared, but 'extract to...' 
> fails with a pop-up window 
>   Failed to extract files.
>   No suitable archive manager found.

Works fine here with file-manager and xarchiver (if installed). I can even
select which one to use.
Please give me
 ls -l /usr/libexec/thunar-archive-plugin/
and
 ls -l /usr/share/applications/gnome-file-roller*

The name of the desktop-file in /usr/share/applications has to match the file in
/usr/libexec/thunar-archive-plugin, this is why i have renamed file-roller.tap
to gnome-file-roller.tap.


Comment 3 Christoph Wickert 2006-11-12 20:46:44 UTC
(In reply to comment #2)

> Works fine here with file-manager

of course i meant file-roller. 

Another thing I forgot to mention: the mime type has tp be registered to
file-roller, this is why ark is not working ATM. Does file-roller show up in the
menu when you right click on an archive in Thunar or nautilus?

Comment 4 Patrice Dumas 2006-11-12 21:21:55 UTC
I don't have file-roller installed. Maybe a Requires missing?

Comment 5 Patrice Dumas 2006-11-12 21:28:38 UTC
In fact the default Requires should certainly be xarchiver, it is 
more xfce-like.

Comment 6 Christoph Wickert 2006-11-12 21:38:04 UTC
This is another case of require foo or bar...

ATM you need ether file-roller or xarchiver (or you can use both) but I don't
want to force people to install file-roller. xarchiver would be ok for me, but I
don't really like it. One can easily add his own program to the plugin, a
wrapper template is included in the docs.

Comment 7 Patrice Dumas 2006-11-12 21:50:38 UTC
(In reply to comment #6)
> This is another case of require foo or bar...
> 
> ATM you need ether file-roller or xarchiver (or you can use both) but I don't
> want to force people to install file-roller. xarchiver would be ok for me, but I
> don't really like it. One can easily add his own program to the plugin, a
> wrapper template is included in the docs.

This is something for end-users, we shouldn't force them to do anything
to have it working. In my opinion using xarchiver should be the best.
A virtual provides would be the cleanest, but I don't think it is really
necessary in that case since there is an xfce-like application.

Comment 8 Christoph Wickert 2006-11-12 22:01:52 UTC
Ok, I will update the package, wait a moment. The changes so far are:
- Require xarchiver.
- Shorten %description. (comment #1)
- Fix Source0 URL.
- Use thunarver macro.
- Include template.tap to %%doc. (the one from comment #6)

Comment 10 Christoph Wickert 2006-11-26 23:02:54 UTC
Now that we have a Requires: on xarchiver, why not remove 

  %dir %{_libexecdir}/thunar-archive-plugin/

from the packge? This would avoid the duplicate ownership of this dir by
xarchiver and thuar-archive-plugin.

Comment 11 Patrice Dumas 2006-11-28 13:26:52 UTC
I would have personally kept the dir ownership in both packages,
but you can remove it from thunar-archive-plugin if you want.

Comment 12 Kevin Fenzi 2006-12-30 19:28:25 UTC
Whats the status on this package? 

Patrice: Do you want to do a formal review of it? Or would you like me to do so?


Comment 13 Patrice Dumas 2007-01-01 16:05:48 UTC
Yes, I'll do the formal review.

Comment 14 Patrice Dumas 2007-01-02 21:51:24 UTC
* rpmlint is silent
X license seems to be LGPL, license included but is GPL in specfile
* follow guidelines
* match upstream
a164326a32a64063079405da11677f0a  thunar-archive-plugin-0.2.2.tar.bz2
* sane provides, with the usual bogus dlopened module useless soname:
Provides: thunar-archive-plugin.so
* own directories, /usr/lib/thunarx-1/ should be owned by thunar
* build and works correctly out of the box
* BuildRequires and Requires seem to be right

It is not obvious that the gtk cache update is needed, but I guess it
is needed for the icons in the right-click thunar menu?

The scriptlet snippet isn't the same than in the guidelines but the 
one proposed here should be right, too.


The only real issue pending is the License issue. This is APPROVED if you
fix it, no need to repost a srpm if it is the only difference.

Comment 15 Christoph Wickert 2007-01-02 22:30:13 UTC
(In reply to comment #14)
> * rpmlint is silent
> X license seems to be LGPL, license included but is GPL in specfile

Sorry, my fault. COPYING and headers are LGPL, so the specfile is wrong.

> It is not obvious that the gtk cache update is needed, but I guess it
> is needed for the icons in the right-click thunar menu?

I did not really test if it's necessary, I just strictly followed the
guidelines. The guidelines tell you to run gtk-update-icon-cache, "If an
application installs icons into one of the subdirectories in %{_datadir}/icons".

> The scriptlet snippet isn't the same than in the guidelines but the 
> one proposed here should be right, too.

Oops, I copied it over from another specfile, obviously the Scriptlet Snipplets
 in the Wiki have changed in the meantime. The page I used is 
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets?action=recall&rev=1#head-7103f6c38d1b5735e8477bdd569ad73ea2c49bda

> The only real issue pending is the License issue. This is APPROVED if you
> fix it, no need to repost a srpm if it is the only difference.

OK, thanks a lot for reviewing this so carefully. I will fix the license issue
after import into CVS. I will also update the icon cache scriptlet (if it is
really needed).

Comment 16 Christoph Wickert 2007-01-03 01:05:34 UTC
24930 (thunar-archive-plugin): Build on target fedora-development-extras succeeded.
     Build logs may be found at
http://buildsys.fedoraproject.org/logs/fedora-development-extras/24930-thunar-archive-plugin-0.2.2-2.fc7/

Closing.

P.S.: Just for the record: running gtk-update-icon-cache really is needed,
otherwise you will see stock_broken_image in Thunar's right click menu. 


Note You need to log in before you can comment on or make changes to this bug.