Bug 615577 - Review Request: opencc - A library for conversion between traditional and simplified Chinese
Summary: Review Request: opencc - A library for conversion between traditional and si...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: manuel wolfshant
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F14Target
TreeView+ depends on / blocked
 
Reported: 2010-07-17 10:04 UTC by Carbo Kuo
Modified: 2010-08-26 03:23 UTC (History)
6 users (show)

Fixed In Version: opencc-0.1.1-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-26 00:55:40 UTC
Type: ---
Embargoed:
manuel.wolfshant: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Description Carbo Kuo 2010-07-17 10:04:16 UTC
Spec URL: http://www.byvoid.com/application/opencc/download/opencc.spec
SRPM URL: http://www.byvoid.com/application/opencc/download/opencc-0.0.4-1.src.rpm
Description: OpenCC is a simplified-traditional Chinese conversion tool which contains runtime libraries and command line tools. OpenCC is already used by ibus-pinyin (a Chinese ime).

Comment 1 Carl Thompson 2010-07-17 22:04:14 UTC
(informal) 
Spec file errors:
no file attributes set for %files libs or %files devel
Source0 url is a 404 error

currently you have %{_datadir}/locale that should be using %find_lang macro
no %post or %postun defined to call ldconfig for the shared objects placed in the system library directory.

License is generalized.  Is this Apache (ASL) v1, 1.1, or 2.0?

Comment 2 Carl Thompson 2010-07-17 22:13:37 UTC
previous checks based on http://fedoraproject.org/wiki/Packaging:ReviewGuidelines

Comment 3 Carbo Kuo 2010-07-18 07:51:04 UTC
All the issues have been solved. Thanks.

Comment 4 Randy Berry 2010-07-18 09:14:45 UTC
Is this your first package? If so you will need a sponsor.

The spec file still does not address the licensing issue. You have "Apache License" when it should be "ASL 2.0" This is important because in some cases Version 1 of a license may not be acceptable whereas version 2 is. This is not the case with the Apache Software License but the version is just as important.

Documentation is here:
http://fedoraproject.org/wiki/Licensing#Good_Licenses

BuildRequires:  gettext-devel
 should be:
BuildRequires:  gettext

http://fedoraproject.org/wiki/Packaging/Guidelines#Handling_Locale_Files

%files libs -f %{name}.lang

Are you sure this is correct? Should the locale files be in the binary %files section? Usually libs do their work in the background and don't need locale files. Locales are normally handled by the user interface. I may be wrong but it was worth looking into.

rpmlint output:
opencc-libs.i686: W: spelling-error Summary(en_US) Runtime -> Run time, Run-time, Runtish
opencc-libs.i686: W: spelling-error %description -l en_US Runtime -> Run time, Run-time, Runtish
opencc-libs.i686: W: invalid-license Apache License
opencc-libs.i686: W: shared-lib-calls-exit /usr/lib/libopencc.so.0.0.0 exit
opencc-libs.i686: W: no-documentation
opencc-libs.i686: E: library-without-ldconfig-postin /usr/lib/libopencc.so.0.0.0
opencc-libs.i686: E: library-without-ldconfig-postun /usr/lib/libopencc.so.0.0.0
opencc-devel.i686: W: invalid-license Apache License
opencc-devel.i686: W: no-documentation
opencc.i686: W: invalid-license Apache License
opencc.i686: E: standard-dir-owned-by-package /usr/share/man/man1
opencc.i686: W: empty-%post
opencc.src: W: invalid-license Apache License
opencc-debuginfo.i686: W: invalid-license Apache License
5 packages and 0 specfiles checked; 3 errors, 11 warnings.

The spelling warnings can be ignored but the other issues must be addressed.
No documentation. This can also be ignored but it would be nice if there was documentation.

Documentation on the library-without-ldconfig* can be found here:
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Shared_libraries

File/Directory ownership documentation is here:
http://fedoraproject.org/wiki/Packaging/Guidelines#File_and_Directory_Ownership

When you make changes as instructed by the reviewer for each revision bump the release number up one, comment the changes in the %changelog section and build and upload a new SRPM.  This is so we know where we are and what changes have been made.

Comment 5 Carbo Kuo 2010-07-18 12:58:44 UTC
Thank you for reviewing my package. I've just fixed all the issues above and updated srpm and spec file.

I think it is necessary for opencc-libs to cantain the locale files because the API function "opencc_perror()" may be called to display the errors.

Actually it is my first package. But how can I find a so-called "sponser"?

Comment 6 Randy Berry 2010-07-18 13:28:53 UTC
I am not a sponsor but you'll find all the steps to find one you need here:

http://fedoraproject.org/wiki/PackageMaintainers/Join
http://fedoraproject.org/wiki/How_to_get_sponsored_into_the_packager_group
http://fedoraproject.org/wiki/Join_the_package_collection_maintainers

My review was incomplete and contained only a few items I noticed right away.
Your sponsor will have to do a full review in order to approve your package.

It would also be a good idea to read the documentation on the Fedora review
process. That documentation can be found in several places:

http://fedoraproject.org/wiki/Packaging/ReviewGuidelines
http://fedoraproject.org/wiki/Package_Review_Process

Although you cannot review your own packages the review guidelines can help you
prepare your package for review. It will show you all the steps a reviewer will
take to review your package.

Comment 7 Chen Lei 2010-07-28 13:03:29 UTC
Hi Chia-Pao Kuo,

Is there any progress on opencc package review?

Free free to contact me for any packaging issues either in Chinese or English.

Comment 10 manuel wolfshant 2010-08-02 12:25:39 UTC
Please remove all occurrences for "rm -rf $RPM_BUILD_ROOT" ( or, if you want to  preserve compatibility with the older buildsystem, keep them in both %install and %clean + add a buildroot )

The folder /usr/share/opencc is used to install several files, but it is not owned.


Please fix the above errors and paste the new urls for spec and src.rpm.


In view of sponsorship, I would also appreciate if you could do 1-2 pre-reviews. thank you.

Comment 11 Carbo Kuo 2010-08-02 12:48:15 UTC
I've removed 「*」 after %{_datadir}/opencc/. 
I think "rm -rf $RPM_BUILD_ROOT" in %clean is required for Fedora12 and below, so I didn't remove it.  http://fedoraproject.org/wiki/Packaging/Guidelines#.25clean

Spec URL: http://www.byvoid.com/application/opencc/download/opencc.spec
SRPM URL:
http://www.byvoid.com/application/opencc/download/opencc-0.0.4-1.src.rpm

Comment 13 Carbo Kuo 2010-08-02 13:17:05 UTC
(In reply to comment #10)
> Please remove all occurrences for "rm -rf $RPM_BUILD_ROOT" ( or, if you want to
>  preserve compatibility with the older buildsystem, keep them in both %install
> and %clean + add a buildroot )
> 
> The folder /usr/share/opencc is used to install several files, but it is not
> owned.
> 
> 
> Please fix the above errors and paste the new urls for spec and src.rpm.
> 
> 
> In view of sponsorship, I would also appreciate if you could do 1-2
> pre-reviews. thank you.    

I have just done a review on https://bugzilla.redhat.com/show_bug.cgi?id=613881

Comment 14 Carbo Kuo 2010-08-09 13:01:30 UTC
(In reply to comment #10)

> In view of sponsorship, I would also appreciate if you could do 1-2
> pre-reviews. thank you.    

I've just done another review on https://bugzilla.redhat.com/show_bug.cgi?id=607016 . What do I need to do to be a packager? Thank you.

Comment 16 Chen Lei 2010-08-20 07:24:04 UTC
Hi manuel,

Could you sponsor Chia-Pao Kuo now who is the author of opencc? 

We need this library for F14 as a new buildrequires for ibus-pinyin. ibus-pinyin is the most widely used input method for Simplified Chinese and obviously will be included in F14 DVD.

Thanks for your attention!

Comment 17 manuel wolfshant 2010-08-20 08:33:27 UTC
Sorry for delays but I had ( still have ) more pressing problems to attend to.

Package Review
==============

Key:
 - = N/A
 x = Check
 ! = Problem
 ? = Not evaluated

=== REQUIRED ITEMS ===
 [x] Package is named according to the Package Naming Guidelines.
 [x] Spec file name must match the base package %{name}, in the format %{name}.spec.
 [x] Package meets the Packaging Guidelines.
 [x] Package successfully compiles and builds into binary rpms on at least one supported architecture.
     Tested on: devel/x86_64
 [x] Rpmlint output:
source RPM:
 W: no-buildroot-tag
binary RPM:
opencc-devel.x86_64: W: no-documentation
opencc-tools.x86_64: W: spelling-error %description -l en_US cli -> cl, clii, clip

 [x] Package is not relocatable.
 [x] Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines.
 [x] License field in the package spec file matches the actual license.
     License type: ASL 2.0
 [x] If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %doc.
 [x] Spec file is legible and written in American English.
 [!] Sources used to build the package match the upstream source, as provided in the spec URL.
     SHA1SUM of source file included in src.rpm: a39727c21c06c9a4bf9ce55a4fbdeff14133c42d  opencc-0.1.1.tar.gz
     SHA1SUM of source file downloaded from upstream : 9874fe74b26e7cad1978bb1bb71d254415d34da5  opencc-0.1.1.tar.gz
 [x] Package is not known to require ExcludeArch
 [x] All build dependencies are listed in BuildRequires, except for any that are listed in the exceptions section of Packaging Guidelines.
 [-] The spec file handles locales properly.
 [x] ldconfig called in %post and %postun if required.
 [x] Package must own all directories that it creates.
 [x] Package requires other packages for directories it uses.
 [x] Package does not contain duplicates in %files.
 [x] Permissions on files are set properly.
 [x] Package consistently uses macros.
 [x] Package contains code, or permissable content.
 [-] Large documentation files are in a -doc subpackage, if required.
 [x] Package uses nothing in %doc for runtime.
 [x] Header files in -devel subpackage, if present.
 [-] Static libraries in -devel subpackage, if present.
 [x] Package requires pkgconfig, if .pc files are present.
 [x] Development .so files in -devel subpackage, if present.
 [x] Fully versioned dependency in subpackages, if present.
 [x] Package does not contain any libtool archives (.la).
 [-] Package contains a properly installed %{name}.desktop file if it is a GUI application.
 [x] Package does not own files or directories owned by other packages.
 [x] Final provides and requires are sane.

=== SUGGESTED ITEMS ===
 [x] Latest version is packaged.
 [x] Package does not include license text files separate from upstream.
 [-] Description and summary sections in the package spec file contains translations for supported Non-English languages, if available.
 [x] Reviewer should test that the package builds in mock.
     Tested on: koji scratch build for F13
 [x] Package should compile and build into binary rpms on all supported architectures.
     Tested on: all arch supported by koji scratch build
 [?] Package functions as described.
 [x] Scriptlets must be sane, if used.
 [x] The placement of pkgconfig(.pc) files is correct.
 [-] File based requires are sane.
 [-] %check is present and the test passes.


=== Issues ===
1. The bundled tar.gz does not correspond to the one downloadable from upstream:
included in spec:  846166 Aug 10 16:29 opencc-0.1.1.tar.gz
upstream:          841739 Aug 12 06:24 opencc-0.1.1.tar.gz.1
It seems upstream updated the file after the src.rpm was created. Please update your source rpm accordingly ( and notify the upstream author that changing the version when the file content changes saves a lot of headaches for everyone).

Please let me know your FAS name, I will sponsor you.

Comment 18 Chen Lei 2010-08-20 09:05:41 UTC
(In reply to comment #17)
> === Issues ===
> 1. The bundled tar.gz does not correspond to the one downloadable from
> upstream:
> included in spec:  846166 Aug 10 16:29 opencc-0.1.1.tar.gz
> upstream:          841739 Aug 12 06:24 opencc-0.1.1.tar.gz.1
> It seems upstream updated the file after the src.rpm was created. Please update
> your source rpm accordingly ( and notify the upstream author that changing the
> version when the file content changes saves a lot of headaches for everyone).
Thanks a lot, manuel! In fact the submitter is also the upstream author, I'll talk to him about this issue. Unfortunately, he'll probably be offline for one month due to freshman's military training. Maybe we need to ask ibus-pinyin maintainer to complete this review request :D

> Please let me know your FAS name, I will sponsor you.

His fas is byvoid.

Comment 19 manuel wolfshant 2010-08-20 09:38:05 UTC
OK, I have just sponsored Chia. 
Please fix the package so that I can also approve it.

Comment 20 Carbo Kuo 2010-08-21 08:38:51 UTC
(In reply to comment #17)
> Sorry for delays but I had ( still have ) more pressing problems to attend to.
> 

> === Issues ===
> 1. The bundled tar.gz does not correspond to the one downloadable from
> upstream:
> included in spec:  846166 Aug 10 16:29 opencc-0.1.1.tar.gz
> upstream:          841739 Aug 12 06:24 opencc-0.1.1.tar.gz.1
> It seems upstream updated the file after the src.rpm was created. Please update
> your source rpm accordingly ( and notify the upstream author that changing the
> version when the file content changes saves a lot of headaches for everyone).

I am also the upstream author of opencc. Now it is fixed.
Thank you.

SPEC http://byvoid.fedorapeople.org/opencc/opencc.spec
SRPM http://byvoid.fedorapeople.org/opencc/opencc-0.1.1-1.src.rpm

Comment 21 manuel wolfshant 2010-08-23 06:33:17 UTC
Package APPROVED

Do not forget that, as I am your sponsor, you can always contact me directly in case that you need help. If needed, I'll do my best to assist you.

Comment 22 Carbo Kuo 2010-08-23 09:33:12 UTC
New Package SCM Request
=======================
Package Name: opencc
Short Description: Libraries for Simplified-Traditional Chinese Conversion
Owners: byvoid
Branches: f12 f13 f14
InitialCC:

Comment 23 Kevin Fenzi 2010-08-23 21:08:26 UTC
Git done (by process-git-requests).

Comment 24 Fedora Update System 2010-08-24 08:51:27 UTC
opencc-0.1.1-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/opencc-0.1.1-1.fc13

Comment 25 Fedora Update System 2010-08-24 08:51:34 UTC
opencc-0.1.1-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/opencc-0.1.1-1.fc14

Comment 26 Fedora Update System 2010-08-24 08:51:40 UTC
opencc-0.1.1-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/opencc-0.1.1-1.fc12

Comment 27 Fedora Update System 2010-08-24 21:07:24 UTC
opencc-0.1.1-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update opencc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/opencc-0.1.1-1.fc13

Comment 28 Fedora Update System 2010-08-26 00:55:35 UTC
opencc-0.1.1-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 29 Fedora Update System 2010-08-26 00:58:00 UTC
opencc-0.1.1-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 30 Fedora Update System 2010-08-26 03:23:21 UTC
opencc-0.1.1-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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