File ctwm.spec of Package ctwm
Summary: Ctwm is a window manager for the X Window System.
Name: ctwm
Version: 3.8a
%if 0%{?mandriva_version}
Release: %mkrel 1
%ifarch x86_64
BuildRequires: lib64xorg-x11-devel lib64jpeg-devel lib64xt-devel lib64xpm-devel lib64xext6-devel lib64xmu6-devel
%endif
%ifarch %{ix86}
BuildRequires: libxorg-x11-devel libjpeg-devel libxt-devel libxext6-devel libxpm-devel libxmu6-devel
%endif
BuildRequires: imake spec-helper
%endif
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
Release: 1%{?dist}
BuildRequires: libX11-devel libjpeg-devel libXt-devel libXext-devel libXmu-devel libXpm-devel imake
%endif
%if 0%{?suse_version}
Release: 1
BuildRequires: xorg-x11-devel
%if %suse_version > 1130
BuildRequires: libjpeg62-devel
%else
BuildRequires: libjpeg-devel
%endif
%endif
Source: http://ctwm.free.lp.se/preview/%{name}-%{version}.tar.gz
License: MIT
Packager: Agnelo de la Crotche <agnelo@unixversal.com>
Group: User Interface/X
Vendor: Claude Lecommandeur <Claude.Lecommandeur@Epfl.Ch>
URL: http://ctwm.free.lp.se/
BuildRequires: m4
Requires: m4
Patch0: %{name}-%{version}.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Ctwm is a window manager for the X Window System. It provides
titlebars, shaped windows, virtual screens (workspaces), several forms
of icon management, user-defined macro functions, click-to-type and
pointer-driven keyboard focus, and user-specified key and pointer
button bindings. It is actually twm (Tab Window Manager) from the MIT
X11 distribution slightly modified to accommodate the use of several
virtual screens (workspaces). It is heavily inspired from the
Hewlett-Packard vuewm window manager. In addition, ctwm can use
coloured, shaped icons and background root pixmaps in XPM and JPG format,
as well as any format understood by the imconv package [from the
San Diego Supercomputer Center] and xwd files. Ctwm can be compiled
to use both, either or none of the above icon/pixmap formats.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p0
%build
cp Imakefile.local-template Imakefile.local
xmkmf
make
%install
%{__mkdir_p} %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}%{_mandir}/man1
%{__mkdir_p} %{buildroot}/usr/lib/X11
%{__mkdir_p} %{buildroot}/etc/X11/ctwm
%{__mkdir_p} %{buildroot}/usr/include/X11/pixmaps
%{__install} -s -m 755 ctwm %{buildroot}%{_bindir}
%{__install} -c -m 0644 ctwm.man %{buildroot}%{_mandir}/man1/ctwm.1x
%{__install} -m 0644 xpm/* %{buildroot}/usr/include/X11/pixmaps
%{__install} -m 0644 system.ctwmrc %{buildroot}/etc/X11/ctwm
ln -s /etc/X11/ctwm %{buildroot}/usr/lib/X11/twm
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
rm %{buildroot}/usr/include/X11/pixmaps/xterm.xpm
%endif
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README CHANGES PROBLEMS README.gnome TODO.gnome
%doc *.ctwmrc
%doc sound.doc vms.txt vms2.txt
%dir /usr/include/X11/pixmaps
%attr(0755,root,root) %{_bindir}/ctwm
%attr(0755,root,root) /etc/X11/ctwm
%{_mandir}/man1/*
/usr/lib/X11/twm
/etc/X11/ctwm/system.ctwmrc
/usr/include/X11/pixmaps/*
%changelog
* Sat Apr 9 2011 Agnelo de la Crotche <agnelo@unixversal.com>
- package for openSUSE 11.3/11.4
* Fri Feb 16 2006 Richard Levitte <richard@levitte.org>
- Release ctwm 3.8a.
* Wed May 4 2005 Rudolph T Maceyko <rm55@pobox.com>
- Tweaks. Added all .ctwmrc files as well as sound and VMS docs.
* Wed May 4 2005 Richard Levitte <richard@levitte.org>
- Changed some directory specifications to RedHat-ish standards.
* Tue May 3 2005 Richard Levitte <richard@levitte.org>
- Received the original from Johan Vromans. Adjusted it to become
an official .spec file.