Blob Blame Raw
Name:           ldm
Version:        2.2.11
%define _datestamp .20130228.04
Release:        14%{_datestamp}%{?dist}
#Release:        1%{?dist}
Summary:        LTSP Display Manager

License:        GPLv2+
URL:            https://code.launchpad.net/~ltsp-upstream/ltsp/ldm-trunk
Source0:        ldm-%{version}.tar.bz2

BuildRequires:  gcc
BuildRequires:  gtk2-devel
BuildRequires:  gettext-devel
BuildRequires:  intltool
BuildRequires:  iso-codes
BuildRequires:  python2

Requires:       nc
Requires:       openssh-clients

%description
LTSP Display Manager handles network logins for remote desktop sessions.

%package -n ldminfod
Summary:        LTSP client
Requires:       openssh-server

%description -n ldminfod
Provides Linux Terminal Server capabilities to the LDM client.

%prep
%setup -q


%build
#export CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS -DCLOVER"
%configure --disable-dependency-tracking
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/ldm/ $RPM_BUILD_ROOT%{_datadir}/ldm/themes

%find_lang ldm --all-name

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/
install -m 0755 ldminfod/ldminfod $RPM_BUILD_ROOT%{_sbindir}/ldminfod
install -m 0755 gtkgreet/ldmgtkgreet $RPM_BUILD_ROOT%{_libexecdir}/ldm/
install -m 0755 wwm/wwm $RPM_BUILD_ROOT%{_libexecdir}/ldm/
install -m 0755 ltsp-cluster-info/ltsp-cluster-info $RPM_BUILD_ROOT%{_bindir}/ltsp-cluster-info
install -m 0644 ldminfod/xinetd.d/ldminfod $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/ldminfod
install -m 0755 share/ldm-script $RPM_BUILD_ROOT%{_datadir}/ldm/ldm-script
cp -av themes/clover $RPM_BUILD_ROOT%{_datadir}/ldm/themes/ltsp

#rm -rf $RPM_BUILD_ROOT%{_datadir}/ldm/themes/ltsp
ln -s clover default

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ltsp
cat > $RPM_BUILD_ROOT%{_sysconfdir}/ltsp/ldm-global-dmrc <<EOL
[Desktop]
#Session=gnome
#Session=kde
#Session=xfce4
#Session=sugar
#Language=ja_JP.utf8
#Language=en_US.utf8
EOL
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/ltsp/ldm-global-dmrc

%files -f ldm.lang
%doc COPYING README
%{_bindir}/ldm-dialog
%{_bindir}/ltsp-cluster-info
%{_sbindir}/ldm
%{_libexecdir}/ldm
%{_libexecdir}/ldm/ldmgtkgreet
%{_datadir}/ldm/themes
%{_datadir}/ldm/
%{_datadir}/ldm/ldm-script
%{_mandir}/man1/ldm.1.gz
%{_datadir}/ltsp/screen.d/ldm
%{_libdir}/ldm
%dir %{_localstatedir}/run/ldm/

%files -n ldminfod
%{_sbindir}/ldminfod
%config(noreplace) %{_sysconfdir}/xinetd.d/ldminfod
%config(noreplace) %{_sysconfdir}/ltsp/ldm-global-dmrc

%changelog
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-14.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-13.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.2.11-12.20130228.04
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-11.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-10.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-9.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-8.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-7.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.11-6.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.11-5.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.11-4.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.11-3.20130228.04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Jul 28 2011 Warren Togami <warren@togami.com> - 2.2.4
- Fix language and desktop selection

* Thu Jun 16 2011 Warren Togami <warren@togami.com> - 2.2.3
- Fix Fedora/RHEL nc version detection

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.46-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Sep 17 2009 Warren Togami <wtogami@redhat.com> - 2.0.46-1
- 2.0.46

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.33-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sun Apr 19 2009 Ville Skyttä <ville.skytta at iki.fi> - 2.0.33-3
- Build using $RPM_OPT_FLAGS.
- Build with dependency tracking disabled for possible speedup and cleaner logs.

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.33-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Jan 31 2009 Ryan Niebur <ryanryan52@gmail.com> - 2.0.33-1
- New upstream version:
  - add support for translation of rc.d scripts (only French
  translation atm)

* Sat Jan 31 2009 Ryan Niebur <ryanryan52@gmail.com> - 2.0.31-1
- show the languages in a user friendly way in the language chooser
- race condition fix

* Wed Jan 28 2009 Warren Togami <wtogami@redhat.com> - 2.0.30-2
- Fix nbd update checker

* Wed Jan 22 2009 Warren Togami <wtogami@redhat.com> - 2.0.30-1
- NBD update checker, reboots client automatically if needed

* Wed Dec 24 2008 Warren Togami <wtogami@redhat.com> - 2.0.27-1
- More bug fixes 

* Thu Dec 12 2008 Warren Togami <wtogami@redhat.com> - 2.0.25-1
- More bug fixes 

* Fri Dec 12 2008 Warren Togami <wtogami@redhat.com> - 2.0.24-1
- Minor bug fixes

* Fri Dec 12 2008 Warren Togami <wtogami@redhat.com> - 2.0.23-1
- LDM_DIRECTX=true was broken, now fixed

* Thu Dec 11 2008 Warren Togami <wtogami@redhat.com> - 2.0.22-1
- Show good names in Session menu
- Use and write to user .dmrc
  It is now possible to set a default session that is not GNOME.
  Set LDM_GLOBAL_DMRC=/etc/ltsp/ldm-global-dmrc in lts.conf
    and specify your choice in /etc/ltsp/ldm-global-dmrc on the server.

* Thu Nov 13 2008 Warren Togami <wtogami@redhat.com> - 2.0.18-1
- Fix race condition in a clean way without the ugly hack.
- Improve logging.
- Many little bug fixes and code cleanups.

* Fri Oct 31 2008 Warren Togami <wtogami@redhat.com> - 2.0.16-1
- UGLY HACK: Workaround race condition where keyboard layout setting would often fail
             because it was being set before X was done initializing.

* Fri Oct 31 2008 Warren Togami <wtogami@redhat.com> - 2.0.15-1
- ldminfod tells LDM client location of Xsession script
  fallback to client's known location if ldminfod failed to tell it
- ldminfod moved from ltsp-server to ldminfod package

* Sun Oct 12 2008 Warren Togami <wtogami@redhat.com> - 2.0.13-3
- 2.0.13
- K12Linux theme by Maureen Duffy
- Rearrange LDM layout, thanks to Ryan Niebur of Debian
- Fix login box focus

* Wed Sep 10 2008 Warren Togami <wtogami@redhat.com> - 2.0.12-2
- remove /var/cache/ldm from package, renamed and shipped in ltsp-server instead

* Sun Aug 24 2008 Warren Togami <wtogami@redhat.com> - 2.0.12-1
- Fix crash on x86_64
- Fix crash after X failure

* Wed Aug 13 2008 Warren Togami <wtogami@redhat.com> - 2.0.11-1
- move all localapp stuff to ltsp

* Thu Aug 07 2008 Warren Togami <wtogami@redhat.com> - 2.0.10-1
- New: LDM_DEBUG_TERMINAL default to off
- Move xauth file into /var/run/
- Working local apps support.

* Sun Jul 27 2008 Warren Togami <wtogami@redhat.com> - 2.0.9-1
* Fix ltspfs unmounting upon logout

* Sun Jul 27 2008 Warren Togami <wtogami@redhat.com> - 2.0.8-1
- Major code cleanup and simplification
      SSH message direct to UI.
      ldm_spawn simplification.
      Proper glib string handling.
- Preparation for local apps feature
      Export LDM_USERNAME
      /var/cache/ldm for local apps feature
      S01-localapps
- Bug Fix: Login input validation
- Automatic login after timeout in guest mode
- Optional LDM_LIMIT_ONE_SESSION feature

* Tue Jul 01 2008 Warren Togami <wtogami@redhat.com> - 2.0.7-1
- 2.0.7 adds keyboard layout setting within ldm

* Sun Apr 27 2008 Warren Togami <wtogami@redhat.com> - 2.0.4-1
- Translations: Polish, Portugese, French, Vietnamese, Russian

* Mon Apr 07 2008 Warren Togami <wtogami@redhat.com> - 2.0.2-2
- upstream tarball was broken (my fault)
- use %%find_lang

* Sun Apr 06 2008 Warren Togami <wtogami@redhat.com> - 2.0.2-1
- 2.0.2 with some translations

* Sat Mar 29 2008 Warren Togami <wtogami@redhat.com> - 2.0.0-1
- 2.0.0 handles very long lists of locales

* Mon Mar 24 2008 Warren Togami <wtogami@redhat.com> - 0.1-0.7.20080324.10
- screen-x-common to unify X configuration between different screen scripts

* Sun Mar 23 2008 Warren Togami <wtogami@redhat.com> - 0.1-0.6.20080323
- Use xauth properly so LDM_DIRECTX is less insecure (#436230)

* Mon Mar 10 2008 Warren Togami <wtogami@redhat.com> - 0.1-0.5.20080310
- new upstream snapshot

* Wed Jan 16 2008 Warren Togami <toshoi@fedoraproject.org> - 0.1-0.3.20080116
- Add rc.d directory, make ldm-script executable
- Move ldm-script and rc.d to libexecdir/ldm

* Mon Jan 14 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-0.2.20080114
- Fix spec file for reviewed items.

* Sun Jan 13 2008 Warren Togami <wtogami@redhat.com> - 0.1-0.20080113
- initial RPM