Bug 226415

Summary: Merge Review: sgml-common
Product: [Fedora] Fedora Reporter: Nobody's working on this, feel free to take it <nobody>
Component: Package ReviewAssignee: Daniel Novotny <dnovotny>
Status: CLOSED RAWHIDE QA Contact: Fedora Package Reviews List <fedora-package-review>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dnovotny, ovasik, pertusus, twaugh
Target Milestone: ---Flags: dnovotny: fedora-review+
wtogami: 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: 2010-02-03 12:03:21 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:
Attachments:
Description Flags
spec patch to avoid rerunning autotools and use %doc none

Description Nobody's working on this, feel free to take it 2007-01-31 20:58:49 UTC
Fedora Merge Review: sgml-common

http://cvs.fedora.redhat.com/viewcvs/devel/sgml-common/
Initial Owner: twaugh

Comment 1 Ondrej Vasik 2007-07-27 08:50:23 UTC
Package Change Request
======================
Package Name: sgml-common
Updated Fedora Owners: ovasik

Comment 2 Patrice Dumas 2007-11-14 20:45:18 UTC
* BuildRoot is not among the preferred ones
* the following requires seems wrong to me, they are old:
Requires: sh-utils fileutils textutils
  what are they for? And the grep requires?
* where comes sgml-common-automake.tar.gz from?
  shouldn't it better to take those files from the automake package?
* url is lacking. Maybe
http://www.math.ias.edu/doc/sgml-common-0.6.3/html/index.html
* if some files come from jadetex, they should come from the
  upstream package
* timestamps should be kept
* rpm macros should used, and used consistently
* where comes the CHANGES file from?
* %makeinstall should certainly not be used 
* I don't think that the with-docdir patch is for fedora, it is 
  for upstream. In fedora there are other ways to do it, maybe
  along
make install.... htmldir=....
  This would remove the need for autoconf/automake
* the %clean section could be simplified

There are certainly more issues, just try to fix as much as 
possible.

Suggestion: change %defattr (-,root,root) to %defattr (-,root,root,-)

Comment 3 Tim Waugh 2007-11-15 09:57:27 UTC
CCing maintainer.

Comment 4 Ondrej Vasik 2007-11-15 14:43:52 UTC
- build root will be changed
- requires you mentioned are in exception list so they could and will be removed
- URL you provided is not ok, much better is http://www.w3.org/2003/entities/
which I used for xml subpackage in May when I got the package - now will be used
generally as substitute of no longer available ISO 8879 page. Or I can use
http://www.linuxfromscratch.org/blfs/view/svn/pst/sgml-common.html - but this is
not upstream URL, it is only small howto/description for current sgml-common.
- timestamps kept by usage of -p 
- rpm macros like %{_bindir} and %{_datadir} used
- files xml.dcl, xml.soc and sgml.dcl, sgml.soc are from openjade package,
pubtext subdir, but it is a bit overkill to have whole 8.8M openjade package as
sources because of 10 kbytes of files not modified since 1999 (maybe longer)...
- that Changes file is outside the tarball(and included) since RHL 7.1, by Tim
Waugh - added because of changed location of files. I think it could be removed
because it is quiet a long time since the change of names and locations occured.
- %defattr(-, root, root, -) will be used

Additionally: fixed rpmlint warnings/issues - License tag, nonconfig file marked
as config, summary ended with dot.

So the points which I want to discuss are:
1) Do you really think that including openjade tarball into sources to digout a
few files from it is necessary? Those files didn't changed for years and I'm
maintainer of Openjade package - and it is mentioned that the files are from
OpenJade/pubtext dir.
2) About that usage of automake package: This would require to rewrite some
things inside the tarball and without adding any value - except more clean package. 
3) suggestion about with-docdir.patch for upstream - there is no upstream
page/bugzilla afaik, last package version is made 3 years ago - so I don't know
how can I get it to upstream and remove from fedora.

Will hold the build with changes until those three points will be clarified.

Comment 5 Patrice Dumas 2007-11-17 14:49:00 UTC
(In reply to comment #4)

> So the points which I want to discuss are:
> 1) Do you really think that including openjade tarball into sources to digout a
> few files from it is necessary? Those files didn't changed for years and I'm
> maintainer of Openjade package - and it is mentioned that the files are from
> OpenJade/pubtext dir.

Ok, but then add to the comment that you are the openjade maintainer
and verify that the timestamps are right such that it is easy to 
check the file age and compare with the files from openjade. If the 
timestamps are not right and cannot be changes (it is often the case
when the files are already in cvs), please note the original timestamps
in the spec file.

> 2) About that usage of automake package: This would require to rewrite some
> things inside the tarball and without adding any value - except more clean
package.

I don't really understand why. What it the technical issue here?
In any case having clean package is an explicit goal of 
fedora packaging and package review.

> 3) suggestion about with-docdir.patch for upstream - there is no upstream
> page/bugzilla afaik, last package version is made 3 years ago - so I don't know
> how can I get it to upstream and remove from fedora.

You can keep it in the srpm if you like but you shouldn't apply
it nor rerun the autotools, there are less intrusive ways to
achieve the same result. I can do some spec file patch if you like.

Comment 6 Ondrej Vasik 2007-11-21 14:09:53 UTC
ad 1) Ok, I'll mention that I'm OpenJade maintainer and that the files with the
sgml-common are up2date
ad 2) there was one problem which denied usage of latest autotools, found a way
how to solve this, so they will be no longer shipped with package(and
BuildRequires: AutoMake and AutoConf added ...
ad 3) ok, kept in SRPM but not applied in prep of spec file

Built as sgml-common-0.6.3-22.fc9 with changes you recommended. 

Comment 7 Patrice Dumas 2007-11-22 09:11:32 UTC
Created attachment 266561 [details]
spec patch to avoid rerunning autotools and use %doc 

There are 4 changes in the patch:
- copy automake-1.4 files instead of rerunning autotools
- preserve timestamps
- use mkdir -p for %{_datadir}/sgml/docbook even though it
  is not strictly required
- remove installed documentation and install it with %doc
  along with more files
- in files use %{_mandir}/man8/install-catalog.8*

feel free to use only what you want. The part about avoiding
rerunning the autotools is a must fix, however.

Comment 8 Patrice Dumas 2007-11-22 09:12:31 UTC
Another issue is that the xml-common description doesn't seems to me 
to describe what is in the package.

Comment 9 Ondrej Vasik 2007-11-22 10:04:46 UTC
Ok, thanks for objections/hints/patch, will use the changes from your spec patch
and add/improve description of xml-common subpackage. Will be built as
sgml-common-0.6.3-23.fc9 ...

Just to prevent issues - what description you would like to have?
I changed that to - it is better for you?:
The xml-common is subpackage of sgml-common package which contains 
a collection XML catalogs that are useful for processing XML, but 
that don't need to be included in main package.


Comment 10 Patrice Dumas 2007-11-22 11:39:30 UTC
(In reply to comment #9)

> Just to prevent issues - what description you would like to have?
> I changed that to - it is better for you?:
> The xml-common is subpackage of sgml-common package which contains 
> a collection XML catalogs that are useful for processing XML, but 
> that don't need to be included in main package.

Looks good.


Comment 11 Ondrej Vasik 2007-11-22 12:20:56 UTC
Just one question - when I'm trying to build the package in mock with BuildReq:
automake-1.4 , it fails - it seems that last time that package was build is
RHL-7.3 ... will this build in koji? Or it has to be changed somehow? 

Comment 12 Ondrej Vasik 2007-11-22 12:23:29 UTC
aaah, sorry , it seems that BuildRequires: automake is enough because it
includes automake-1.4 subdir ...

Comment 13 Ondrej Vasik 2007-11-22 12:35:12 UTC
heh, ok, no, BuildRequires:automake14 is neccessary. Anyway, fixed and building
in koji as sgml-common-0.6.3-23.fc9

Comment 14 Patrice Dumas 2007-11-22 13:04:19 UTC
Yep, I used a bad BR name sorry.

Comment 15 Patrice Dumas 2007-12-17 16:45:41 UTC
I don't remember why I didn't continued the review...

Anyway looks good now, except that the xml-common url doesn't
correspond at all with the xml-common package. This url, however
links to some explanations, and ultimately to files in
http://www.w3.org/2003/entities/2007/
Sone of these files are in docbook-dtds. I don't know about others.
Should they be shipped somehow?


Comment 16 Ondrej Vasik 2007-12-19 13:17:45 UTC
(In reply to comment #15)
> Anyway looks good now, except that the xml-common url doesn't
> correspond at all with the xml-common package. This url, however
> links to some explanations, and ultimately to files in
> http://www.w3.org/2003/entities/2007/

Actually I think there is no free completely corresponding url for sgml-common
and xml-common. Old swiss page with iso 8879 was not 100% correct too, because
in sgml-common and xml-common is only subset of full set of entities. Anyway - I
think the best way is to keep it as it is done now - with link to w3.org entities.

> Sone of these files are in docbook-dtds. I don't know about others.
> Should they be shipped somehow?

Which files do you mean? I agree that docbook-dtds corresponds somehow with
sgml-common/xml-common entities - as both are subsets docbook entities.



Comment 17 Patrice Dumas 2007-12-19 14:36:22 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Anyway looks good now, except that the xml-common url doesn't
> > correspond at all with the xml-common package. This url, however
> > links to some explanations, and ultimately to files in
> > http://www.w3.org/2003/entities/2007/
> 
> Actually I think there is no free completely corresponding url for sgml-common
> and xml-common. Old swiss page with iso 8879 was not 100% correct too, because
> in sgml-common and xml-common is only subset of full set of entities. Anyway - I
> think the best way is to keep it as it is done now - with link to w3.org entities.

For sgml-common, sure, but for xml-common, I think that the best
is not to provide any URL, since there is no url corresponding with
that package. It will inherit the sgml-common url fine in any case.
 
> > Sone of these files are in docbook-dtds. I don't know about others.
> > Should they be shipped somehow?
>
> Which files do you mean? I agree that docbook-dtds corresponds somehow with
> sgml-common/xml-common entities - as both are subsets docbook entities.

All the .ent files at:
http://www.w3.org/2003/entities/2007/


Comment 18 Daniel Novotny 2010-01-15 12:53:46 UTC
nobody was assigned, I'll take this review now

OK source files match upstream:
103c9828f24820df86e55e7862e28974  sgml-common-0.6.3.tgz
OK source contains full URL
OK package meets naming and versioning guidelines.
OK specfile is properly named, is cleanly written and uses macros consistently.
OK dist tag is present.
OK build root is correct.
OK license field matches the actual license (GPL+).
OK license is open source-compatible. License text included in package.
OK latest version is being packaged.

OK* BuildRequires are proper.
- there's a require on older version of automake, from the previous
review text I see the package needs it
BuildRequires: libxml2 >= 2.4.8-2 also looks quite suspicious
- isn't the version number superfluous? I see there is 
version 2.7.6 of this library in F10 and no older versions are available

OK compiler flags are appropriate. - no compilation necessary
OK %clean is present.
OK package builds in mock.
OK debuginfo package looks complete. - no debuginfo necessary

BAD rpmlint is silent.
sgml-common.spec: W: patch-not-applied Patch3: sgml-common-automake.patch
sgml-common.spec: W: patch-not-applied Patch4: sgml-common-0.6.3-docdir.patch
- unused patches ought to be commented out, I see there is
a comment in the spec you want to keep this patches in the SRPM
but not apply them: does this make sense? why?
xml-common.noarch: W: no-documentation - this is OK I guess, the
description of the package seems to be enough

OK final provides and requires look sane.
N/A %check is present and all tests pass.
OK no shared libraries are added to the regular linker search paths.
OK owns the directories it creates.
OK doesn't own any directories it shouldn't.
OK no duplicates in %files.
OK file permissions are appropriate.
OK no scriptlets present.
OK code vs content - can be seen as both, but that's ok
OK documentation is small, so no -docs subpackage is necessary.
OK %docs are not necessary for the proper functioning of the package.
OK no headers.
OK no pkgconfig files.
OK no libtool .la droppings.
OK not a GUI app.

seems OK overall, just need to clarify the unused patches and maybe the BR on libxml2 should be without version

Comment 19 Ondrej Vasik 2010-02-03 09:44:29 UTC
Sorry, I forgot to update that bugzilla. Unused patches removed, BR now unversioned. Built as sgml-common-0.6.3-32.fc13 .

Comment 20 Daniel Novotny 2010-02-03 12:03:21 UTC
OK, thanks, review+