Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 175844 - Review Request: wmx -- really simple and basic X window manager
Summary: Review Request: wmx -- really simple and basic X window manager
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ignacio Vazquez-Abrams
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: FE-ACCEPT
TreeView+ depends on / blocked
 
Reported: 2005-12-15 17:53 UTC by Gabriel Somlo
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-16 21:10:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gabriel Somlo 2005-12-15 17:53:37 UTC
Spec Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx.spec
SRPM Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx-6pl1-1.src.rpm
Description: wmx is a really simple and basic window manager for the X windowing system.

This is my first package submission, seeking sponsorship.

Comment 1 Peter Lemenkov 2005-12-15 21:50:57 UTC
Needs some work:

> Source0: %{name}-%{version}.tar.gz

Use only internet-names, like:

 Source0: http://www.all-day-breakfast.com/wmx/wmx-6.tar.gz

I can't find where can I download examples.

> BuildRoot: %{_tmppath}/%{name}-root

Use the following string:

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

> make

It's always a good idea to use the following expression instead of plain "make":

 %{__make} %{?_smp_mflags}

> rm -rf %{buildroot}

Instead, use:

 %{__rm} -rf %{buildroot}

and so on...

You'd better to look at the spec-files which conforms the fedora-extras rules.
You may find 'em  at the:

http://cvs.fedora.redhat.com/viewcvs/devel/?root=extras

Anyway, it's a good idea to include a lightweight wm info FE. 

Comment 2 Peter Lemenkov 2005-12-15 21:52:53 UTC
(In reply to comment #1)
> Needs some work:
> 
> > Source0: %{name}-%{version}.tar.gz
> 
> Use only internet-names, like:
> 
>  Source0: http://www.all-day-breakfast.com/wmx/wmx-6.tar.gz

Oops!

 Source0: http://www.all-day-breakfast.com/%{name}/%{name}-%{version}.tar.gz



Comment 3 Ignacio Vazquez-Abrams 2005-12-15 22:24:12 UTC
(In reply to comment #1)
> > rm -rf %{buildroot}
> 
> Instead, use:
> 
>  %{__rm} -rf %{buildroot}
> 
> and so on...

Strictly speaking, it's completely optional to use the macros instead of the
commands.

(In reply to comment #2)
> >  Source0: http://www.all-day-breakfast.com/wmx/wmx-6.tar.gz
> 
> Oops!
> 
>  Source0: http://www.all-day-breakfast.com/%{name}/%{name}-%{version}.tar.gz

Actually, macros should only be used in the tarball filename, not in the path.

Comment 4 Gabriel Somlo 2005-12-16 18:35:44 UTC
Fixed spec file, bumped release to 2:

Spec Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx.spec
SRPM Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx-6pl1-2.src.rpm

the examples aren't downloaded from anywhere -- I added them to give users a
template on how to build their menu. Anyway, I reworked that: now, menu examples
go into a default systemwide directory (/usr/share/wmx/menu) and the example
xinitrc file goes in %doc.

Thanks for the comments, and let me know what you think of the changes.

Comment 5 Peter Lemenkov 2005-12-16 20:08:17 UTC
(In reply to comment #4)

> Spec Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx.spec
> SRPM Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx-6pl1-2.src.rpm

 %{__install} -s -D -m 755 wmx %{buildroot}%{_prefix}/X11R6/bin/wmx

Devel-branch of FC doesn't have /usr/X11R6 and there isn't a particular reason
to use this path if it exists. Change it to:

 %{__install} -s -D -m 755 wmx %{buildroot}%{_bindir}/wmx

You should change %files section in the similar way:

%files
%defattr(-,root,root)
%doc README* UPDATES ANNOYING-BUGS wmx.xsession
%{_bindir}/wmx
%{_datadir}/%{name}

O/T:

Have you looked at the configure-log carefully?

...
checking whether you're still watching... probably not :-)
...



Comment 6 Gabriel Somlo 2005-12-16 21:45:51 UTC
Got rid of X11R6, using %{_bindir} instead:

Spec Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx.spec
SRPM Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx-6pl1-3.src.rpm

> checking whether you're still watching... probably not :-)

yeah, I always thought that was rather cute... :)

Comment 7 Jeff Carlson 2005-12-17 20:16:26 UTC
I don't think it's necessary to include the package name in either Summary or
%description.  For example,

Summary: a really simple window manager for X

And %description should begin with a capital:  A really simple...

Next, it would be nice to include the appropriate facilities for this window
manager to show up in the xdm list of available sessions.  This can be done by
adding text files to /etc/X11/[g]dm/Sessions.  If it's gdm, the file would
simply be wmx, but if it's dm, it's wmx.desktop.  I'm looking at WindowMaker as
an example:

$ cat /etc/X11/gdm/Sessions/WindowMaker
#!/bin/sh
exec /etc/X11/xdm/Xsession wmaker
$ cat /etc/X11/dm/Sessions/WindowMaker.desktop
[Desktop Entry]
Encoding=UTF-8
Name=WindowMaker
Comment=Start Window Maker
Exec=wmaker
Type=Application

[Window Manager]
SessionManaged=true

Finally, in %files, I prefer to use %{_bindir}/* instead of naming the binary. 
Since this is only one in this case, it's up to you.  If the package ever grows
to include more binaries, it might be nice just to have the wildcard so there is
less to change in the future.  It's just a suggestion.


Comment 8 Gabriel Somlo 2005-12-19 15:25:18 UTC
Spec Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx.spec
SRPM Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx-6pl1-4.src.rpm

Fixed 'Summary' and '%description'.

Also, added wmx.desktop. gdm has a defaul search path for .desktop files
(/etc/X11/sessions/:/etc/X11/dm/Sessions/:/usr/share/gdm/BuiltInSessions/:/usr/share/xsessions/)
Now, of these, only the latter two (both in /usr/share/) already existed on my
stock FC4 machine. So, I placed wmx.desktop in /usr/share/xsessions/ along with
the kde and gnome .desktop files which were already there. Why would I go put
them in /etc/X11/dm/Sessions/ instead ? Is the /usr/share/xsessions/ location
being deprecated?

Also, looking at WindowMaker's example, I don't get the purpose of the shell
script that goes in /etc/X11/gdm/Sessions/WindowMaker; where would that get
called from ? Is it supposed to be a wrapper for the wmaker binary called
by gdm via the .desktop file, or ???

Thanks,
Gabriel

Comment 9 Gabriel Somlo 2005-12-19 20:58:03 UTC
Spec Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx.spec
SRPM Name or Url: http://www.contrib.andrew.cmu.edu/~somlo/wmx-6pl1-5.src.rpm

If the script /etc/X11/xinit/Xclients.d/Xclients.wmx.sh exists, gdm will use it
to fire up wmx if wmx was selected by the user at the gdm greeting screen. This
latest version supplies such a file, which either finds and fires up a custom set
of apps in the user's home directory, or starts up a few defaults (xterm and
xscreensaver) before launching wmx. Tested it on a stock FC4 box and it looks
like it's working right

Let me know what you all think.

Comment 10 Ignacio Vazquez-Abrams 2005-12-27 06:48:25 UTC
- Patches shouldn't use macros in their naming
- The default for %setup -n already is %{name}-%{version}
- Use install -p for %{SOURCE2} instead of cp
- The summary's first letter should be capitalized
- The changelog version/release does not match the package version/release
(6pl1.5 vs. 6pl1-5)
- The package should not own /etc/X11

Comment 12 Ignacio Vazquez-Abrams 2005-12-30 09:16:31 UTC
- Missing the appropriate BuildRequires for X

Comment 14 Ignacio Vazquez-Abrams 2006-01-01 02:19:28 UTC
- Upstream source matches
- Builds clean on mock in FC4
- Runs on FC4
- Everything else looks good

APPROVED

Comment 15 Ignacio Vazquez-Abrams 2006-02-17 06:00:14 UTC
Built under FC4 and devel, but the sponsorship process isn't complete.

Comment 16 Gabriel Somlo 2006-03-16 21:10:24 UTC
sponsorship now complete, closing.


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