Mailinglist Archive: opensuse-packaging (142 mails)

< Previous Next >
Re: [opensuse-packaging] My first factory package update. Help please.
Hello,

On Mon, 21 Nov 2011, Greg Freemyer wrote:
I did not realize exiftool was previously a standalone package.

It wasn't.

Both it and perl-Image-ExifTool are from the same author and are now
apparently integrated into a single package.

Basically, it's package-rename from 'exiftool' to 'perl-Image-ExifTool'.
See on 11.4 (pruned):

$ rpm -qlf `which exiftool`
/usr/bin/exiftool
/usr/lib/perl5/vendor_perl/5.12.3/Image/ExifTool.pm

I dislike packaging "well known tools" like exiftool as perl-*, but in
this case, the Image::ExifTool:: modules are used by other programs
and perlmodules as well. So you should do at least have a

Provides: exiftool

and that should IMO be kept (i.e. no Obsoletes tag). But maybe the
best way would be to split the package like a program +
library. Compare the Exif::Tool Synopsis:

The Image::ExifTool Perl Library Module

So: I propose you do a

====
%package -n exiftool
Requires: perl-Image-ExifTool = %{version}
[usual stuff]

%files -n exiftool
%{_bindir}/exiftool
%doc %{_mandir}/man1/exiftool.1.gz

%files
%defattr...
# doc stuff as you did before minus exiftool.1.gz
%doc Changes ExifTool_config README html
%{perl_vendorlib}/File/RandomAccess.pm
%{perl_vendorlib}/Image/ExifTool/*
%doc %{_mandir}/man3/*
====

If you use %perl_gen_filelist, you could do a sed -i on the filelist
afterwards, i.e.:

sed -i '/\/exiftool$/d;/\/exiftool.1\(.gz\)\?/d;' %{name}.files

and then %files -f %{name}.files as before.

No idea if coolo et al will be happy with that though. But it'd be a
clean way and it's also "backwards compatible", as when something
needing just the Image::ExifTool perl modules requires just
"exiftool", the perlscript in /usr/bin + manpage get "needlessly"
pulled in, but hey, that's just about 200k. Wow. Huge for a
perlscript, but about 2.6k of 4.4k lines are documentation ;)

HTH,
-dnh

--
... you start off with a typical message,
let's say a 2.5MB Word document containing
three lines of text and a macro virus ...
-- Peter Gutmann
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups