Bug 785727 - Review Request: ocaml-camlimages - OCaml image processing library
Summary: Review Request: ocaml-camlimages - OCaml image processing library
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 716146
TreeView+ depends on / blocked
 
Reported: 2012-01-30 13:34 UTC by Bruno Wolff III
Modified: 2012-03-26 18:01 UTC (History)
5 users (show)

Fixed In Version: ocaml-camlimages-4.0.1-2.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-21 19:04:21 UTC
Type: ---
Embargoed:
hdegoede: fedora-review+


Attachments (Terms of Use)

Description Bruno Wolff III 2012-01-30 13:34:02 UTC
Spec URL: http://people.fedoraproject.org/~bruno/ocaml-camlimages.spec
SRPM URL: http://people.fedoraproject.org/~bruno/ocaml-camlimages-4.0.1-1.fc17.src.rpm
Description: 
This is an image processing library, which provides some basic
functions of image processing and loading/saving various image file
formats. In addition the library can handle huge images that cannot be
(or can hardly be) stored into the memory (the library automatically
creates swap files and escapes them to reduce the memory usage).

Comment 1 Bruno Wolff III 2012-01-30 13:37:53 UTC
Note that ocaml-camlimages was previously packaged for Fedora. The last successful build was for F13. There have been significant changes in the build process between the current and previous versions of the package since then.

I have done a scratch build at: http://koji.fedoraproject.org/koji/taskinfo?taskID=3745888

Comment 2 Jerry James 2012-02-23 17:55:59 UTC
I believe that these lines:

%define _use_internal_dependency_generator 0
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh

should not be used anymore, even though they still appear on the wiki.  When I removed those lines from some ocaml packages, I got the same Provides/Requires as before, plus additional (correct) Requires on C libraries that doing the above apparently suppresses.  See:

http://lists.fedoraproject.org/pipermail/ocaml-devel/2011-December/002215.html
http://lists.fedoraproject.org/pipermail/ocaml-devel/2012-January/002217.html

Comment 3 Bruno Wolff III 2012-02-25 05:29:19 UTC
Thanks. It doesn't look like I can expect much help from the ocaml-devel list based on the recent archives.

I am not going to do new builds just yet with those lines removed, but it is good to know that there may be issues with the wiki recommendations.

Comment 4 Hans de Goede 2012-03-08 18:51:42 UTC
I'll be reviewing this tonight, assigning to me.

Comment 5 Hans de Goede 2012-03-09 08:02:01 UTC
I ran out of steam last night, but today is another day. So about the /usr/lib/rpm/ocaml-find-requires.sh stuff, I just checked ocaml-lablgtk, which is one of the most active maintained ocaml packages, and it has this in
its changelog:

* Tue Jan  5 2010 Richard W.M. Jones <rjones> - 2.14.0-4
- Use upstream RPM 4.8 dependency generator.

So it seems that rpm itself now (well for quite a while actually) knows how to handle ocaml dependencies and those lines indeed can be dropped.

Looking at that same package it also seems that the opt part can now be build unconditionally.

Comment 6 Hans de Goede 2012-03-09 08:20:01 UTC
Good:
====
- rpmlint checks return:
  ocaml-camlimages-4.0.1-1.fc17.src.rpm 
  ocaml-camlimages.src:89: W: macro-in-comment %exclude
  ocaml-camlimages.src:89: W: macro-in-comment %{_libdir}
  ocaml-camlimages.src:103: W: macro-in-comment %{_libdir}
  ocaml-camlimages.src: W: invalid-url Source1: camlimages-2.2.0-htmlref.tar.gz
  3 packages and 0 specfiles checked; 0 errors, 4 warnings.
 These can all be ignored.
- package meets naming guidelines
- package meets packaging guidelines
- license (GPLv2 with exceptions) OK, text in %doc, matches source
- spec file legible, in am. english
- source matches upstream
- package compiles on devel (x86)
- no missing BR
- no unnecessary BR
- no locales
- not relocatable
- owns all directories that it creates
- no duplicate files
- permissions ok
- macro use consistent
- code, not content
- no need for -docs
- nothing in %doc affects runtime
- no need for .desktop file
- devel package ok
- no .la files
- post/postun ldconfig not needed since no libs directly under %{_libdir}
- devel requires base package n-v-r 

Should Fix
======
-Drop these 3 lines (use rpms internal dep generator instead):
 %define _use_internal_dependency_generator 0
 %define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
 %define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
-Make opt unconditional (not 100% sure about this, but if lablgtk does it can probably be dropped and
 it makes the spec easier to read)
-Using: https://bitbucket.org/camlspotter/camlimages/get/v4.0.1.tar.gz as Souce0 works fine for me,
 wget gets a v4.0.1.tar.gz, spectool -g  gets a v4.0.1.tar.gz and rpmlint likes it (iow it can download and
 verify the source)
-Doing rm -rf buildroot in %install and having a %clean is no longer needed now a days, and should not
 be done when not manually defining buildroot inside the spec
- -devel packages should require the main package like this:
 Requires:       %{name}%{?_isa} = %{version}-%{release}
 So please add %{?_isa} there.
-You could also drop the 2 %defattr lines, those are also not needed now a days

Since there are no blockers, this package is APPROVED! But please do consider fixing some of the should fix items.

Comment 7 Bruno Wolff III 2012-03-09 13:43:13 UTC
Thanks for the review!

I'll fix the should fixes before I ask for unretirement / do the new initial import.
I might do a little tonight, but most likely I'll do it Saturday during the day.

Comment 8 Bruno Wolff III 2012-03-10 16:09:26 UTC
I have an updated version that fixes the should fixes at:
http://people.fedoraproject.org/~bruno/ocaml-camlimages.spechttp://people.fedoraproject.org/~bruno/ocaml-camlimages-4.0.1-2.fc18.src.rpm

Comment 9 Bruno Wolff III 2012-03-10 16:23:09 UTC
Package Change Request
======================
Package Name: ocaml-camlimages
Short Description: OCaml image processing library
New Branches: f15 f16 f17 devel
Owners: bruno

This technically an unretirement, though ocaml-calimages has been gone for multiple releases now and I don't think has a branch for any active releases.

There should have been a new line between the two URLs in the previous comment so I am going to copy them here again so they are usable.
http://people.fedoraproject.org/~bruno/ocaml-camlimages.spec
http://people.fedoraproject.org/~bruno/ocaml-camlimages-4.0.1-2.fc18.src.rpm

Comment 10 Gwyn Ciesla 2012-03-12 12:08:42 UTC
Git done (by process-git-requests).

Created new branches, please take ownership of devel, and possibly EL-6.

Comment 11 Bruno Wolff III 2012-03-12 12:31:50 UTC
The package still shows as deprecated in el6 and devel, so I can't take ownership there.

Comment 12 Bruno Wolff III 2012-03-12 13:34:21 UTC
The package also seems to be blocked from building even on the instances that I am approved for. Builds are failing for being blocked on f15 through devel.
el6 does not have one of the build dependencies (ocaml-omake), so at least for the near term the package should stay blocked in el6.

Comment 13 Gwyn Ciesla 2012-03-12 13:55:11 UTC
I unretired EL-6 and devel.  You'll need to file a ticket with rel-eng to
unblock the Fedora branched.

Comment 14 Fedora Update System 2012-03-13 20:49:22 UTC
ocaml-camlimages-4.0.1-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/ocaml-camlimages-4.0.1-2.fc17

Comment 15 Fedora Update System 2012-03-13 20:50:20 UTC
ocaml-camlimages-4.0.1-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ocaml-camlimages-4.0.1-2.fc15

Comment 16 Fedora Update System 2012-03-13 20:50:31 UTC
ocaml-camlimages-4.0.1-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/ocaml-camlimages-4.0.1-2.fc16

Comment 17 Fedora Update System 2012-03-16 02:45:32 UTC
ocaml-camlimages-4.0.1-2.fc17 has been pushed to the Fedora 17 testing repository.

Comment 18 Fedora Update System 2012-03-21 19:04:21 UTC
ocaml-camlimages-4.0.1-2.fc17 has been pushed to the Fedora 17 stable repository.

Comment 19 Fedora Update System 2012-03-26 03:55:44 UTC
ocaml-camlimages-4.0.1-2.fc15 has been pushed to the Fedora 15 stable repository.

Comment 20 Fedora Update System 2012-03-26 03:59:17 UTC
ocaml-camlimages-4.0.1-2.fc16 has been pushed to the Fedora 16 stable repository.

Comment 21 Fedora Update System 2012-03-26 17:57:06 UTC
ocaml-camlimages-4.0.1-2.fc15 has been pushed to the Fedora 15 stable repository.

Comment 22 Fedora Update System 2012-03-26 18:01:06 UTC
ocaml-camlimages-4.0.1-2.fc16 has been pushed to the Fedora 16 stable repository.


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