Bug 427480

Summary: Review Request: perl-XML-TreeBuilder - Perl parser that builds XML trees
Product: [Fedora] Fedora Reporter: Jeff Fearn ЁЯРЮ <jfearn>
Component: Package ReviewAssignee: Parag AN(рдкрд░рд╛рдЧ) <panemade>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: fedora-package-review, huzaifas, notting, panemade, petersen, rlandman
Target Milestone: ---Flags: panemade: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-24 23:24:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 427481    
Attachments:
Description Flags
patch to upstream tarball none

Description Jeff Fearn ЁЯРЮ 2008-01-04 03:38:48 UTC
Spec URL: http://svn.fedorahosted.org/svn/documentation-devel/trunk/Files/perl-XML-TreeBuilder.spec

SRPM URL: http://svn.fedorahosted.org/svn/documentation-devel/trunk/Files/perl-XML-TreeBuilder-3.10-2.fc9.src.rpm

Description: Perl arser that builds XML trees. Used for ne documentation-devel packages.

Comment 1 Huzaifa S. Sidhpurwala 2008-01-04 06:42:12 UTC
[root@dhcp1-17 ~]# rpmlint perl-XML-TreeBuilder-3.10-2.fc9.src.rpm 
perl-XML-TreeBuilder.src:30: W: setup-not-quiet
perl-XML-TreeBuilder.src:33: W: rpm-buildroot-usage %build %{__perl} Makefile.PL
INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
perl-XML-TreeBuilder.src: W: non-standard-group Applications/CPAN
perl-XML-TreeBuilder.src: W: invalid-license Artistic/GPL


Comment 2 Huzaifa S. Sidhpurwala 2008-01-04 06:51:25 UTC
Here is what would suit this better:

1. setup -q, but i guess this should be ok.

2. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"

3. Group: I would rather choose: Development/Libraries

4. License: GPL+ or Artistic would be more appropriate.  
http://fedoraproject.org/wiki/Licensing



Comment 3 Jeff Fearn ЁЯРЮ 2008-01-06 23:44:21 UTC
(In reply to comment #2)

All these changes have been made to the spec file.

> Here is what would suit this better:
> 
> 1. setup -q, but i guess this should be ok.
> 
> 2. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
> 
> 3. Group: I would rather choose: Development/Libraries
> 
> 4. License: GPL+ or Artistic would be more appropriate.  
> http://fedoraproject.org/wiki/Licensing
> 
> 



Comment 4 Huzaifa S. Sidhpurwala 2008-01-07 04:36:02 UTC
4. What i meant is GPL+ "OR" Artistic not "GPL+ or Artistic"

Also have you rebuild the srpm with the new spec file.

Comment 5 Parag AN(рдкрд░рд╛рдЧ) 2008-01-07 10:27:43 UTC
Review for initial SRPM posted in comment 
1)Not needed following in SPEC
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo
$installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo
$installvendorarch)

2) use simple way instead to use like this
%dir %{perl_vendorlib}/XML/
%{perl_vendorlib}/XML/Element.pm
%{perl_vendorlib}/XML/TreeBuilder.pm
use following
%{perl_vendorlib}/XML

3) License should be GPL+ or Artistic

4) use setup -q
 
5) remove META.yml, MANIFEST and MANIFEST.SKIP from %doc

6) make Group to Development/Libraries

7) missing BR and requires. Add following to SPEC
BuildRequires: perl(HTML::Element)
BuildRequires: perl(HTML::Tagset)
BuildRequires: perl(XML::Parser)
Requires: perl(HTML::Element) perl(HTML::Tagset) perl(XML::Parser)

8)%install should use following
%{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT


Always keep habit of updating SPEC and SRPM links with updateing release tag and
adding what changes you did in SPEC.

Provide updated SPEC and SRPM links.


Comment 8 Parag AN(рдкрд░рд╛рдЧ) 2008-01-08 03:17:55 UTC
1)Any reason for not following point 7 from comment #5?
build.log from mock build showed me
Warning: prerequisite HTML::Element 3.08 not found.
Warning: prerequisite HTML::Tagset 3.02 not found.
Warning: prerequisite XML::Parser 0 not found.

2)Wrong group Development/Languages



Comment 9 Parag AN(рдкрд░рд╛рдЧ) 2008-01-08 03:18:29 UTC
Again,
    Please provide updated SPEC and SRPM links fixing above issues.

Comment 11 Parag AN(рдкрд░рд╛рдЧ) 2008-01-10 04:04:29 UTC
This package is ready for official review. But as you need sponsor, I can
sponsor and review this and other packages from you provided you also review few
other new packages waiting for review.

Comment 12 Parag AN(рдкрд░рд╛рдЧ) 2008-01-10 04:07:14 UTC
also, Change Source URL as provided URL in SPEC is not working. correct one is
http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/XML-TreeBuilder-%{version}.tar.gz

Comment 13 Parag AN(рдкрд░рд╛рдЧ) 2008-01-10 04:12:02 UTC
I see that you have not added 
%check
make test

Add above section. But when added "make test" failed. It should not fail and
should execute all tests successfully.
build.log gave me
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/00about....ok
t/10main.....# Failed test 2 in t/10main.t at line 33
#  t/10main.t line 33 is: ok $x->same_as($y);
FAILED test 2
        Failed 1/3 tests, 66.67% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/10main.t                 3    1  33.33%  2
Failed 1/2 test scripts, 50.00% okay. 1/6 subtests failed, 83.33% okay.
make: *** [test_dynamic] Error 255


Comment 14 Jeff Fearn ЁЯРЮ 2008-01-16 05:05:44 UTC
* Fri Jan 11 2008 Jeff Fearn <jfearn> - 3.10-5
- Fixed test
- Fixed Source URL
- Added %%check

http://svn.fedorahosted.org/svn/documentation-devel/trunk/Files/perl-XML-TreeBuilder.spec
http://svn.fedorahosted.org/svn/documentation-devel/trunk/Files/perl-XML-TreeBuilder-3.10-5.fc9.src.rpm

Comment 15 Jens Petersen 2008-01-16 05:22:11 UTC
It would be nice to shorten the summary to fit on a 80 char line.

Comment 17 Parag AN(рдкрд░рд╛рдЧ) 2008-01-17 04:08:22 UTC
why source XML-TreeBuilder-3.10.tar.gz is not on CPAN?


Comment 18 Jeff Fearn ЁЯРЮ 2008-01-17 04:33:38 UTC
(In reply to comment #17)
> why source XML-TreeBuilder-3.10.tar.gz is not on CPAN?

Simply a time issue, too many things to do so joining CPAN hasn't made the
action list yet. I hope to get to it after the production system has been upgraded.

Comment 19 Parag AN(рдкрд░рд╛рдЧ) 2008-01-17 05:04:13 UTC
Review:
+ package builds in mock (rawhide i386).
+ rpmlint is silent for SRPM and for RPM.
+ source files match upstream url
943d0175044a1a4b1b419daa8dc8ddca  XML-TreeBuilder-3.10.tar.gz
+ package meets naming and packaging guidelines.
+ specfile is properly named, is cleanly written
+ Spec file is written in American English.
+ Spec file is legible.
+ dist tag is present.
+ build root is correct.
+ license is open source-compatible.
+ License text is included in package.
+ %doc is present.
+ BuildRequires are proper.
+ %clean is present.
+ package installed properly.
+ Macro use appears rather consistent.
+ Package contains code, not content.
+ no headers or static libraries.
+ no .pc file present.
+ no -devel subpackage
+ no .la files.
+ no translations are available
+ Does owns the directories it creates.
+ no scriptlets present.
+ no duplicates in %files.
+ file permissions are appropriate.
+ make test gave
t/00about....ok
t/10main.....ok
All tests successful.
Files=2, Tests=6,  1 wallclock secs ( 0.14 cusr +  0.03 csys =  0.17 CPU)
+ Package perl-XML-TreeBuilder-3.10-6.fc9 ->
  Provides: perl(XML::Element) = 3.09 perl(XML::TreeBuilder) = 3.10
  Requires: perl >= 1:5 perl(Carp) perl(HTML::Element) perl(HTML::Element) >=
3.08 perl(HTML::Tagset) perl(HTML::Tagset) perl(XML::Element) perl(XML::Parser)
perl(XML::Parser) perl(strict) perl(vars)

SHOULD:
     try to push new release on CPAN.

APPROVED.

Comment 20 Parag AN(рдкрд░рд╛рдЧ) 2008-01-18 03:12:24 UTC
I am really sorry here. I actually asked source tarball issue on #fedora-devel,
But I failed to put it in correct way. Now as Jason got the question what I want
to ask there and he already commented on this issues
https://bugzilla.redhat.com/show_bug.cgi?id=427479#c11, I prefer to take back
approved review.

Sorry Jfearn. If its not allowed in fedora then I was wrong in approving this
review.

Comment 21 Parag AN(рдкрд░рд╛рдЧ) 2008-01-18 03:14:53 UTC
Created attachment 292102 [details]
patch to upstream tarball

Please package perl-XML-TreeBuilder-3.09 with patch attached here and submit
new package for review.

Comment 22 Parag AN(рдкрд░рд╛рдЧ) 2008-01-18 04:47:51 UTC
oops I just took diff of upstream tarball and your tarball. please create new
patch and apply it in SPEC and submit new SRPM.

Comment 24 Parag AN(рдкрд░рд╛рдЧ) 2008-01-18 05:51:27 UTC
This built successfully in koji.
But I don't think providing perl(XML::TreeBuilder) = 3.10 is valid as rpm
version is 3.09 it should provide => perl(XML::TreeBuilder) = 3.09



Comment 26 Parag AN(рдкрд░рд╛рдЧ) 2008-01-21 03:21:51 UTC
Review:
+ package builds in mock (rawhide i386).
+ rpmlint is silent for SRPM and for RPM.
+ source files match upstream url
49e04fb6ba12b1414cb490e7f0c712a9  XML-TreeBuilder-3.09.tar.gz
+ package meets naming and packaging guidelines.
+ specfile is properly named, is cleanly written
+ Spec file is written in American English.
+ Spec file is legible.
+ dist tag is present.
+ build root is correct.
+ license is open source-compatible.
+ License text is included in package.
+ %doc is present.
+ BuildRequires are proper.
+ %clean is present.
+ package installed properly.
+ Macro use appears rather consistent.
+ Package contains code, not content.
+ no headers or static libraries.
+ no .pc file present.
+ no -devel subpackage
+ no .la files.
+ no translations are available
+ Does owns the directories it creates.
+ no scriptlets present.
+ no duplicates in %files.
+ file permissions are appropriate.
+ make test gave
t/00about....ok
t/10main.....ok
All tests successful.
Files=2, Tests=6,  0 wallclock secs ( 0.12 cusr +  0.01 csys =  0.13 CPU)
+ Package perl-XML-TreeBuilder-3.09-9.fc9 ->
  Provides: perl(XML::Element) = 3.09 perl(XML::TreeBuilder) = 3.09
  Requires: perl >= 1:5 perl(Carp) perl(HTML::Element) perl(HTML::Element) >=
3.08 perl(HTML::Tagset) perl(HTML::Tagset) perl(XML::Element) perl(XML::Parser)
perl(XML::Parser) perl(strict) perl(vars)
APPROVED.


Comment 27 Jeff Fearn ЁЯРЮ 2008-01-24 05:12:46 UTC
New Package CVS Request
=======================
Package Name: perl-XML-TreeBuilder
Short Description: Parser that builds XML trees
Owners: jfearn
Branches: F-8 EL-4 EL-5
InitialCC: mdious
Cvsextras Commits: yes

Comment 28 Jens Petersen 2008-01-24 06:10:12 UTC
Thanks, cvs admin done.

Comment 29 Jeff Fearn ЁЯРЮ 2008-01-24 23:24:01 UTC
Built OK.

http://koji.fedoraproject.org/koji/taskinfo?taskID=371252

Comment 30 Ruediger Landmann 2013-06-07 07:12:39 UTC
Package Change Request
======================
Package Name: perl-XML-TreeBuilder
New Branches: el6
Owners: rlandmann

Comment 31 Gwyn Ciesla 2013-06-07 12:42:48 UTC
Git done (by process-git-requests).