File wdm.spec of Package wdm

#
# spec file for package wdm (Version 1.28)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           wdm
BuildRequires:  WindowMaker-devel freetype2-devel pam-devel xorg-x11
BuildRequires:  libselinux-devel
License:        GPL v2 or later
Group:          System/X11/Displaymanagers
AutoReqProv:    on
Version:        1.28
Release:        215
PreReq:         /etc/X11/xdm/xdm-config
Source:         %{name}-%{version}.tar.bz2
Source2:        SUSE.png
Source3:        SuSEconfig.wdm
Source4:        wdm-config.in
Source5:        wdmLogin
Patch2:         %{name}-%{version}-pam.patch
Patch3:         %{name}-%{version}-WINGs.patch
Patch4:         %{name}-%{version}-reserve.patch
Patch5:         %{name}-%{version}-composite.patch
Url:            http://voins.program.ru/wdm/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        WINGs Display Manager

%description
WDM is a modification and enhancement of X11's XDM that provides a more
flexible login panel while maintaining the basic XDM code to interface
with pam and other packages.



Authors:
--------
    Jerome Alet <alet@unice.fr>
    Gene Czarcinski <genec@mindspring.com>

%define wdmdir /etc/X11/wdm

%prep
%setup
%patch2
%patch3
%patch4
%patch5
%{suse_update_config}

%build
autoreconf
export CFLAGS="$RPM_OPT_FLAGS -DDEV_RANDOM=\\\"/dev/random\\\""
export CXXFLAGS="$CFLAGS"
%configure \
    --enable-pam \
    --enable-selinux \
    --with-gfxdir=/etc/X11/wdm/pixmaps \
    --with-wdmdir=%{wdmdir} \
    --with-nlsdir=%{_datadir}/locale

%install
mkdir -p $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/sbin/conf.d
install -m 755 %{S:3} $RPM_BUILD_ROOT/sbin/conf.d
install -m 644 %{S:4} $RPM_BUILD_ROOT/%{wdmdir}
mkdir -p $RPM_BUILD_ROOT/%{wdmdir}/Defaults
install -m 644 %{S:5} $RPM_BUILD_ROOT/%{wdmdir}/Defaults
install -m 644 %{S:2} $RPM_BUILD_ROOT/%{wdmdir}/pixmaps
rm $RPM_BUILD_ROOT/etc/pam.d/wdm
rm `find $RPM_BUILD_ROOT/%{wdmdir} -type f -maxdepth 1 -not -name wdm-config.in -print`
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_suseconfig -m wdm

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README README.pam TODO
%{_bindir}/wdm*
%{_mandir}/man1/*
%dir %{wdmdir}
%dir %{wdmdir}/pixmaps
%dir %{wdmdir}/Defaults
%config %{wdmdir}/pixmaps/*
%config %{wdmdir}/Defaults/*
%config(noreplace) %{wdmdir}/wdm-config.in
/sbin/conf.d/SuSEconfig.wdm

%changelog
* Fri Nov 21 2008 nadvornik@suse.cz
- fixed to work with composite extension,
  do not use /dev/mem [bnc#447331]
* Fri Aug 22 2008 prusnak@suse.cz
- enabled SELinux support [Fate#303662]
* Sun Apr 27 2008 ro@suse.de
- remove hermes-devel from buildreq
* Mon Aug 21 2006 nadvornik@suse.cz
- changed prefix to /usr
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 nadvornik@suse.cz
- put locale into /usr/share/locale
* Tue Jul 26 2005 nadvornik@suse.cz
- updated to 1.28
* Wed Feb 23 2005 nadvornik@suse.cz
- WINGs always use utf-8, use bind_textdomain_codeset("wdm", "UTF-8")
* Tue Feb 15 2005 nadvornik@suse.cz
- get list of windowmanagers from /usr/share/xsessions/*.desktop
* Mon Mar 15 2004 nadvornik@suse.cz
- ignore reserve lines in /etc/X11/xdm/Xservers
* Fri Feb 20 2004 nadvornik@suse.cz
- updated to 1.26
- build with -fno-strict-aliasing
- call run_suseconfig
* Fri Jan 16 2004 kukuk@suse.de
- Add pam-devel to neededforbuild
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Fri Jul 25 2003 nadvornik@suse.cz
- updated to 1.25
* Fri Jun 13 2003 kukuk@suse.de
- Install locale into correct directory
* Wed May 28 2003 nadvornik@suse.cz
- remove unpackaged files from buildroot
* Thu May 15 2003 nadvornik@suse.cz
- updated to 1.2.3
- use /etc/pam.d/xdm
* Fri Apr 18 2003 mfabian@suse.de
- fix it to work again after the WindowMaker update
- add "freetype2 freetype2-devel expat" to needeforbuild
  and link against Xft. Make Xft the default in
  /etc/X11/wdm/wdmLogin
- convert all .po files to UTF-8, fix German and Japanese
  translations
- wdm-rreleaseimage.patch: RDestroyImage() is obsolete, replace by
  RReleaseImage() (necessary because of WindowMaker upgrade)
- remove unused fontsettings for Japanese.
* Mon Mar 10 2003 nadvornik@suse.cz
- added pam_resmgr.so to wdm.pamd
* Fri Feb 07 2003 kukuk@suse.de
- Use pam_unix2.so instead of pam_unix.so
* Thu Nov 21 2002 ro@suse.de
- removed duplicate from configure.in
* Wed Oct 23 2002 nadvornik@suse.cz
- set background color
- fixed filelist
* Tue Oct 01 2002 nadvornik@suse.cz
- removed dependency on libPropList
* Mon Sep 02 2002 nadvornik@suse.cz
- fixed usage of pam modules, pam config file copied from xdm [#18668]
- do not read WINGs configuration from /root, use /etc/X11/wdm instead
- use RC_LANG
* Sat Jul 27 2002 kukuk@suse.de
- don't parse rc.config
* Sat Jul 27 2002 kukuk@suse.de
- remove libz from neededforbuild
* Mon Apr 29 2002 nadvornik@suse.cz
- fixed the patch for src/Makefile.am
* Wed Apr 03 2002 nadvornik@suse.cz
- used current gettext
* Tue Mar 12 2002 nadvornik@suse.cz
- added dir /etc/X11/wdm to filelist
* Thu Feb 14 2002 nadvornik@suse.cz
- sourced /etc/sysconfig/language in SuSEconfig.wdm
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Fri Nov 16 2001 nadvornik@suse.cz
- changed LC_MESSAGES to LC_ALL in setlocale [bug #12317]
* Thu Nov 08 2001 nadvornik@suse.cz
- fixed to compile with new automake
* Tue Sep 04 2001 nadvornik@suse.cz
- fixed typo in config file
* Fri Aug 24 2001 ro@suse.de
- removed /lib/security path from pam.d config file
* Fri Aug 10 2001 nadvornik@suse.cz
- created SuSEconfig script for list of available windowmanagers
- now uses the same scripts as xdm
* Mon Jun 11 2001 pblaha@suse.cz
- add lib  hermes  for compile wdm
* Thu May 03 2001 pblaha@suse.cz
- fix suffix for locale messages
* Wed May 02 2001 pblaha@suse.cz
- use DEFAULT_WM for first run
* Thu Apr 12 2001 pblaha@suse.cz
- fix compilation
* Thu Apr 05 2001 pblaha@suse.cz
- patch for long password from Egmont Koblinger
* Tue Mar 13 2001 ro@suse.de
- changed neededforbuild <WindowMaker> to <WindowMaker WindowMaker-devel>
* Mon Feb 26 2001 pblaha@suse.cz
- fix exit wdmLogin option
- fix setings default language for wdmLogin
* Fri Feb 09 2001 ro@suse.de
- fixed include
* Thu Jan 18 2001 pblaha@suse.cz
- use SHADOWFLAG=-DUSESHADOW  to allow login local users
* Thu Dec 21 2000 pblaha@suse.cz
- write licence GPL
* Tue Dec 19 2000 pblaha@suse.cz
- fix problem with default X server  in file Xservers and
- add  germany and japanese locales
- but japanese work only  with patched WINGs
- now is compiled with lib*.a from WindowMaker for
- running without WindowMaker
* Fri Dec 08 2000 pblaha@suse.cz
- remove Requiere tag and fix locales
* Fri Dec 01 2000 pblaha@suse.cz
- create this package with support locales and SuSE Logo Geeko.xpm
openSUSE Build Service is sponsored by