Bug 627877 - Review Request: jibx - JiBX is a framework for binding XML data to Java objects.
Summary: Review Request: jibx - JiBX is a framework for binding XML data to Java objects.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Stanislav Ochotnicky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-27 09:28 UTC by hannes
Modified: 2010-09-16 06:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-16 06:18:07 UTC
Type: ---
Embargoed:
sochotni: fedora-review+
petersen: fedora-cvs+


Attachments (Terms of Use)

Description hannes 2010-08-27 09:28:44 UTC
Spec URL: http://hannes.fedorapeople.org/jibx.spec
SRPM URL: http://hannes.fedorapeople.org/jibx-1.2.2-1.fc13.src.rpm
Description:
JiBX is a framework for binding XML data to Java objects. It lets you
work with data from XML documents using your own class structures.

Comment 1 Stanislav Ochotnicky 2010-08-27 09:34:26 UTC
I'll do the review

Comment 2 hannes 2010-08-27 16:01:27 UTC
Worked a bit on it the spec url is still the same.
SRPM URL: http://hannes.fedorapeople.org/jibx-1.2.2-2.fc13.src.rpm
Fixed all rpmlint errors and used %{buildroot} to be consistent.

Comment 3 Stanislav Ochotnicky 2010-08-30 15:48:43 UTC
Few notes first:
 * you should run rpmlint on your spec files/SRPM/RPMs
 * Fedora guidelines are strict about bundling dependencies. And jibx archive has quite a few of them. Run:
   $ find -name '*.class' -exec rm -f '{}' \;
   $ find -name '*.jar' -exec rm -f '{}' \;
   this will cause your current build to fail because of missing BRs. I verified it can be built with Fedora packages, if you need help figuring out what BRs to add let me know
 * after doing previous you will have to do something like this for eclipse dependencies:
plugin_file=`ls %{_libdir}/eclipse/dropins/jdt/plugins/org.eclipse.jdt.core_*jar`
ln -s "$plugin_file" lib/org.eclipse.jdt.core.jar

 * package should be BuildArch:noarch
 * Are you sure about package Requires? Is and really necessary for package to work? I am guessing not. Similarly other libraries are probably not needed beside java. It's better to start with fewer Requires, even missing some because we'll find out. But it's hard to discover unneeded dependencies that will just make user's system bloated over time
 * You use sed in one place and perl in other to do the same thing, it's best to just use sed if it can do the job
 * build/docs/src should be removed prior to installing documentation, those are just files used to build it AFAIK


If you need help sorting out those problems find me on IRC and we can do it step-by-step

Comment 4 Stanislav Ochotnicky 2010-08-30 15:51:58 UTC
One more important thing...this package is not public domain, it's BSD/ASL 1.1 licensed

Comment 5 hannes 2010-09-02 15:30:29 UTC
Spec URL: http://hannes.fedorapeople.org/jibx.spec
SRPM URL: http://hannes.fedorapeople.org/jibx-1.2.2-3.fc13.src.rpm

I fixed most issues but I guess you already know that.

Comment 6 hannes 2010-09-02 16:27:04 UTC
Ok fixed the rest:
Spec URL: http://hannes.fedorapeople.org/jibx.spec
SRPM URL: http://hannes.fedorapeople.org/jibx-1.2.2-4.fc13.src.rpm

Comment 7 Stanislav Ochotnicky 2010-09-02 16:44:53 UTC
jibx.noarch: W: invalid-license BSD/ASL 1.1
jibx.noarch: W: no-documentation
jibx.noarch: W: class-path-in-manifest /usr/share/java/jibx/extras-1.2.2.jar
jibx.noarch: W: class-path-in-manifest /usr/share/java/jibx/bind-1.2.2.jar
jibx.noarch: W: class-path-in-manifest /usr/share/java/jibx/run-1.2.2.jar
jibx-javadoc.noarch: W: spelling-error Summary(en_US) Javadocs -> Java docs, Java-docs, Javanese
jibx-javadoc.noarch: W: invalid-license BSD/ASL 1.1
jibx.src: W: invalid-license BSD/ASL 1.1
3 packages and 0 specfiles checked; 0 errors, 8 warnings.

The license string should be "BSD and ASL 1.1"

Class-path-in-manifest is there because of:
<attribute name="Class-Path" ...

lines in build/build.xml. These need to be patched out. This in turn will unfortunately make tests fails. We can discuss how to fix that on IRC again.


Other:
 * This is not needed:
    > export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/junit`"
 * You still have sed in the %build section (stax-api)
 * it is customary to leave blank lines between changelog versions and sections (your 2 file sections are merged)
 * Your Requires are still too big. Leave it at just java and jpackage-utils for now.
 * You should run for cycle in %install section for "schema" and "tools" subdirectory


I know it sound like a lot of work (again), but you've done good job so far considering how much work this needs :-)

Comment 8 hannes 2010-09-05 06:18:25 UTC
Ok I fixed nearly everything except the missing classpath in the build.xml. 
Spec URL: http://hannes.fedorapeople.org/jibx.spec
SRPM URL: http://hannes.fedorapeople.org/jibx-1.2.2-5.fc13.src.rpm

Comment 9 hannes 2010-09-05 06:25:15 UTC
Sorry, I forgot that I changed the folder structure of this webspace.
Spec URL: http://hannes.fedorapeople.org/jibx/jibx.spec
SRPM URL: http://hannes.fedorapeople.org/jibx/jibx-1.2.2-5.fc13.src.rpm

Comment 10 Stanislav Ochotnicky 2010-09-06 11:28:42 UTC
Unless I am missing something, jibx doesn't build now. That is due to the fact that after you removed Class-Path from manifests some tests don't know where to find libraries. This can be fixed by patching build.xml and adding few libraries to build-classpath for tests.

Comment 11 hannes 2010-09-08 18:46:00 UTC
I made a patch so that those tests are able to find the jar-files and uploaded it again. I hope the patch is ok as it is my first one. At least it compiles flawlessly...
Spec URL: http://hannes.fedorapeople.org/jibx/jibx.spec
SRPM URL: http://hannes.fedorapeople.org/jibx/jibx-1.2.2-6.fc13.src.rpm

Comment 12 Stanislav Ochotnicky 2010-09-14 11:29:08 UTC
Sorry it took a while. Package is perfect now. Good work, hopefully it wasn't too painful :-)


APPROVED

Comment 13 hannes 2010-09-14 17:45:35 UTC
New Package SCM Request
=======================
Package Name: jibx
Short Description: Framework for binding XML data to Java objects 
Owners: hannes
Branches: f13 f14 
InitialCC:

Comment 14 Jens Petersen 2010-09-16 04:12:53 UTC
Git done (by process-git-requests).

Comment 15 hannes 2010-09-16 06:18:07 UTC
build in rawhide:
http://koji.fedoraproject.org/koji/packageinfo?packageID=10920


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