Bug 228969

Summary: Review Request: wxGlade - A wxWidgets/wxPython/wxPerl GUI designer
Product: [Fedora] Fedora Reporter: Miao ZhiCheng <hellwolf.misty>
Component: Package ReviewAssignee: Yijun Yuan <bbbush.yuan>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Package Reviews List <fedora-package-review>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideFlags: hellwolf.misty: fedora-review+
wtogami: fedora-cvs+
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-16 11:35:15 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:

Description Miao ZhiCheng 2007-02-16 10:04:18 UTC
Spec URL: ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxglade.spec
SRPM URL: ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxGlade-0.4.1-1.src.rpm
Description:
wxGlade is a GUI designer written in Python with the popular GUI
toolkit wxPython, that helps you create wxWidgets/wxPython user
interfaces. At the moment it can generate Python, C++, Perl and XRC
(wxWidgets' XML resources) code.

Comment 1 Yijun Yuan 2007-02-25 06:57:55 UTC
== Not an official review as I'm not yet sponsored ==

The blockers are listed below

      - MUST: The spec file name must match the base package %{name}, in the
format %{name}.spec unless your package has an exemption on Package Naming
Guidelines.

spec name should conform to package name: wxGlade

      - MUST: The package must meet the Packaging Guidelines.

The website says:
Starting from version 0.4, wxGlade requires wxPython >= 2.6 and Python >= 2.2.

should not Requires(pre) or Requires(post) desktop-file-utils, but should
BuildRequires it.

BuildRoot should be %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description has a blank comment?

install icons to hicolors directory instead of pixmaps, and adjust your desktop
file (Icon=wxGlade without file extension). This will make it better suit
desktop theme changes. Remember to update icon cache if you do this.

change your desktop file to remove "Application" category, leaving only
"Development"

      - MUST: The spec file for the package MUST be legible. If the reviewer is
unable to read the spec file, it will be impossible to perform a review. Fedora
is not the place for entries into the Obfuscated Code Contest
(http://www.ioccc.org/).

better remove the sed script, to source/patch file. Is there any guidelines for
desktop files versioning? I mean, both the file name and the file content should
contain a version number, then there would be a lot of maintaince work. But if
using sed, the code will be less clear.

      - MUST: The package must successfully compile and build into binary rpms
on at least one supported architecture.

builds fine here on i386

      - MUST: All build dependencies must be listed in BuildRequires, except for
any that are listed in the exceptions section of Packaging Guidelines; inclusion
of those as BuildRequires is optional. Apply common sense.

BuildRequires desktop-file-utils

      - MUST: If the package is designed to be relocatable, the packager must
state this fact in the request for review, along with the rationalization for
relocation of that specific package. Without this, use of Prefix: /usr is
considered a blocker.

please do this.

      - MUST: Permissions on files must be set properly. Executables should be
set with executable permissions, for example. Every %files section must include
a %defattr(...) line.

%defattr(-,root,root,-)

      - MUST: Each package must consistently use macros, as described in the
macros section of Packaging Guidelines.

I don't know if re-define %name and %version and %release is a good idea.


Why python source and compiled files are placed in /usr/share/ directory? I
think they should be in /usr/lib/python2.x/site-packages.

I have not install this package yet.

Comment 2 Mamoru TASAKA 2007-02-25 09:55:50 UTC
(In reply to comment #1)
> == Not an official review as I'm not yet sponsored ==

Well, then don't assign this bug to yourself for now...
Still you can do a pre-review for this review request.

Comment 3 Miao ZhiCheng 2007-02-25 12:16:43 UTC
updated :
spec : ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxglade.spec
SRPM : ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxglade-0.4.1-2.fc6.src.rpm

* Sun Feb 25 2007 ZC Miao <hellwolf.misty> - 0.4.1-2
- install icon to hicolor directory
- change name to wxglade
- BuildRequires desktop-file-utils
- remove Application category in desktop file
- remove some macro redefination

* Fri Feb 16 2007 ZC Miao <hellwolf.misty> - 0.4.1-2
- Add missing icons



Comment 4 Patrice Dumas 2007-02-26 22:18:44 UTC
(In reply to comment #1)
>
> 
> better remove the sed script, to source/patch file. Is there any guidelines for
> desktop files versioning? I mean, both the file name and the file content should
> contain a version number, then there would be a lot of maintaince work. But if
> using sed, the code will be less clear.

desktop files don't need to have a version.


> I don't know if re-define %name and %version and %release is a good idea.

It is definitely a bad idea.
 
> Why python source and compiled files are placed in /usr/share/ directory? I
> think they should be in /usr/lib/python2.x/site-packages.

Only modules to be used by other python applications. 
If the python files are only used internally by 
the application the best place is along %{_datadir}/%{name}.

Comment 5 Miao ZhiCheng 2007-02-27 06:11:40 UTC
updated:
SPEC : ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxglade.spec
SRPM : ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxglade-0.4.1-3.fc6.src.rpm

%changelog
* Tue Feb 27 2007 ZC Miao <hellwolf.misty> - 0.4.1-3
- Desktop entry do not need version number
- remove some comments

Comment 6 Yijun Yuan 2007-04-14 17:00:56 UTC
(In reply to comment #5)
> updated:
> SPEC : ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxglade.spec
> SRPM : ftp://ftp.fedora.cn/pub/fedora-cn/in-review/wxglade-0.4.1-3.fc6.src.rpm
> 

== formal review ==

The latest version is wxGlade-0.5.

The package name, as well as spec file name should be "wxGlade" instead of
"wxglade". Or, have you contacted the authors?

In the launcher script, \$@ should be quoted with double quote. 

Mixed tabs and spaces in spec file.

Why using "Prefix:".

desktop-file-install --vendor fedora instead of ""


Thanks.

Comment 8 Yijun Yuan 2007-04-15 09:32:22 UTC
"\$@" is not fixed.

in %prep, %setup should not use -n param

in %install, the "install" command should taken care about directory permission
and preserve file time stamp.

Thanks.

Comment 10 Yijun Yuan 2007-04-15 10:27:29 UTC
Approved. 

Well, the fedora-review flag has long been set to '+'. Who did that?

Please request to add a CVS module on your own. Thanks.

Comment 11 Nigel Jones 2007-04-15 10:31:06 UTC
Comment:

You did, https://bugzilla.redhat.com/bugzilla/show_activity.cgi?id=228969

Comment 12 Miao ZhiCheng 2007-04-15 11:08:35 UTC
http://fedoraproject.org/wiki/ seems down currently.
And I forget(but never remembered) the next step :(

Comment 13 Miao ZhiCheng 2007-04-15 11:33:16 UTC
New Package CVS Request
=======================
Package Name: wxGlade
Short Description: A wxWidgets/wxPython/wxPerl GUI designer
Owners: hellwolf.misty
Branches: FC-6
InitialCC: bbbush.yuan



Comment 14 Yijun Yuan 2007-04-15 11:43:43 UTC
(In reply to comment #11)
> Comment:
> 
> You did, https://bugzilla.redhat.com/bugzilla/show_activity.cgi?id=228969

Thanks. Maybe a mistake.

Confirmed, approved.

Hellwolf, please continue to set fedora-cvs flag and request for cvs modules.
Thanks.