Package alterator-datetime: Specfile

# -*- mode: RPM-SPEC; tab-width: 8; fill-column: 70; -*- 

%define _altdata_dir %_datadir/alterator

Name: alterator-datetime
Version: 4.0
Release: alt0.M80P.6

%add_findreq_skiplist %_datadir/install2/postinstall.d/*


BuildArch:	noarch

Source:%name-%version.tar

Summary: alterator module for date/time setup
License: GPL
Group: System/Configuration/Other
Requires: alterator >= 4.25-alt1.M80P.3 alterator-sh-functions >= 0.6-alt5
Requires: alterator-service-functions >= 2.0.0-alt1
Requires: alterator-l10n >= 1.5-alt5
Requires: ntp-server glibc-timezones
Conflicts: alterator-browser-qt < 2.9.93
Conflicts: alterator-fbi < 5.17-alt3
Conflicts: alterator-lookout < 1.6-alt3
Conflicts: alterator-dhcp < 0.4-alt1

Provides: alterator-openntpd = %version
Obsoletes: alterator-openntpd

Provides: alterator-tzone = %version
Obsoletes: alterator-tzone

BuildPreReq: alterator >= 4.7-alt1

# Automatically added by buildreq on Mon Jul 11 2005 (-bi)
BuildRequires: alterator

%description
alterator module for date/time setup

%prep
%setup -q

%build
%make_build

%check
%make_build check

%install
%makeinstall

%files
%_bindir/*
%_sysconfdir/alterator/*
%_datadir/alterator/applications/*
%_datadir/alterator/ui/*
%_datadir/alterator/type/*
%_alterator_backend3dir/*
%_datadir/install2/postinstall.d/*

%changelog
* Thu Aug 22 2019 Paul Wolneykien <manowar@altlinux.org> 4.0-alt0.M80P.6
- Run tests when building (backported from v4.3.1-alt1).
- Fix/improve: Protect the installer UI from runtime errors on
  country change (backported from v4.3.1-alt1).
- Added unit-test to check the "timezone" type (backported from
  v4.3.1-alt1).
- Fixed (type timezone): allow [_-] symbols and more than one "/"
  (backported from v4.3.1-alt1).

* Thu Jul 11 2019 Andrey Cherepanov <cas@altlinux.org> 4.0-alt0.M80P.5
- Use hostname-or-ip field type for NTP pool address (ALT #37012).

* Wed Mar 06 2019 Ivan Razzhivin <underwit@altlinux.org> 4.0-alt0.M80P.4
- Add chrony support to the postinstall script.

* Tue Feb 12 2019 Andrey Cherepanov <cas@altlinux.org> 4.0-alt0.M80P.3
- Show localized date and time in installer (ALT #35985).

* Thu Aug 23 2018 Paul Wolneykien <manowar@altlinux.org> 4.0-alt0.M80P.2
- Use strict data type for the "zone" parameter.

* Thu May 18 2017 Mikhail Efremov <sem@altlinux.org> 4.0-alt0.M80P.1
- Revert "Update spec for guile22".
- Build for p8.

* Fri May 05 2017 Mikhail Efremov <sem@altlinux.org> 4.0-alt1
- Update spec for guile22.
- functions: Ensure that guessed timezone is valid.
- functions: Don't use TLS  if ca-certificates not installed.
- functions: Wait 2 sec for geoip server.
- installer: Guess timezone only once.
- system: Use init_timezone().
- functions: Use shell_config_get() in read_zone().
- Add init_timezone() and use it.
- functions: Add get_timezone* functions.
- functions: Use argument in read_zone()/write_zone().
- functions: Use tzupdate.

* Fri Dec 23 2016 Denis Medvedev <nbr@altlinux.org> 3.0-alt1
- chrony support

* Tue Apr 21 2015 Mikhail Efremov <sem@altlinux.org> 2.6-alt1
- installer: Always set UTC/LOCAL in the /etc/adjtime.
- postinstall: Copy /etc/adjtime from installer too.
- functions: Add set_adjtime_utc() and is_adjtime_utc().

* Fri Mar 22 2013 Mikhail Efremov <sem@altlinux.org> 2.5-alt1
- Use alterator-service-functions (closes: #28688).

* Thu Feb 28 2013 Mikhail Efremov <sem@altlinux.org> 2.4-alt1
- Read real timezone from config file (closes: #28610).
- Drop unused variables.
- Remove all dynamically added entries from ntpd configs.

* Tue Dec 18 2012 Anton V. Boyarshinov <boyarsh@altlinux.ru> 2.3-alt1
- hackaround service clock sync (closes #28168)

* Tue Aug 23 2011 Mikhail Efremov <sem@altlinux.org> 2.2-alt5
- installer: Try to load rtc module.

* Wed Aug 10 2011 Mikhail Efremov <sem@altlinux.org> 2.2-alt4
- installer: Fix datetime output (closes: #25957).

* Wed Sep 08 2010 Vitaly Kuznetsov <vitty@altlinux.ru> 2.2-alt3
- small aufs hackaround: remove /etc/localtime before overwriting

* Wed Aug 05 2009 Stanislav Ievlev <inger@altlinux.org> 2.2-alt2
- backend: fix confict between manual time setup and ntp

* Mon Aug 03 2009 Stanislav Ievlev <inger@altlinux.org> 2.2-alt1
- use workflow 'none'

* Wed Jun 10 2009 Stanislav Ievlev <inger@altlinux.org> 2.1-alt3
- datetime-system backend: add 'date string' parameter

* Mon Apr 06 2009 Stanislav Ievlev <inger@altlinux.org> 2.1-alt2
- support ntp in postinstall.d script too

* Mon Apr 06 2009 Stanislav Ievlev <inger@altlinux.org> 2.1-alt1
- support both ntp and openntpd

* Tue Mar 31 2009 Stanislav Ievlev <inger@altlinux.org> 2.0-alt4
- more timezone defaults

* Thu Feb 12 2009 Stanislav Ievlev <inger@altlinux.org> 2.0-alt3
- fix installer interface

* Thu Feb 05 2009 Stanislav Ievlev <inger@altlinux.org> 2.0-alt2
- system version: fix popup size

* Mon Feb 02 2009 Stanislav Ievlev <inger@altlinux.org> 2.0-alt1
- full replacement of alterator-tzone

* Fri Jan 30 2009 Stanislav Ievlev <inger@altlinux.org> 1.0-alt3
- add support of alterator-dhcp

* Fri Jan 30 2009 Stanislav Ievlev <inger@altlinux.org> 1.0-alt2
- add special version (datetime + timezone) for control center

* Fri Jan 30 2009 Stanislav Ievlev <inger@altlinux.org> 1.0-alt1
- use help and translations directly from alterator-l10n
- use new form API

* Wed Nov 05 2008 Stanislav Ievlev <inger@altlinux.org> 0.9-alt1
- use form library

* Fri Oct 31 2008 Stanislav Ievlev <inger@altlinux.org> 0.8-alt4
- fix help file

* Thu Oct 16 2008 Stanislav Ievlev <inger@altlinux.org> 0.8-alt3
- backend: alterator_api_version=1
- remove /std/functions and with-translation
- little ui improvements
- use "value" attribute for datedit and timeedit.

* Mon Sep 15 2008 Stanislav Ievlev <inger@altlinux.org> 0.8-alt2
- improve type error messages

* Fri Sep 12 2008 Stanislav Ievlev <inger@altlinux.org> 0.8-alt1
- replace constraints with types

* Fri Aug 22 2008 Stanislav Ievlev <inger@altlinux.org> 0.7-alt1
- update help (cas@)
- remove <h1> and <title>

* Fri Jun 27 2008 Stanislav Ievlev <inger@altlinux.org> 0.6-alt2
- html: use dateedit widget
- remove hardcoded design

* Fri Jun 27 2008 Stanislav Ievlev <inger@altlinux.org> 0.6-alt1
- html: use timeedit widget

* Mon Jun 23 2008 Stanislav Ievlev <inger@altlinux.org> 0.5-alt5
- rename effect-init to init-effect

* Fri Jun 20 2008 Stanislav Ievlev <inger@altlinux.org> 0.5-alt4
- fix requires
- invert disable logic in scm version

* Thu Jun 19 2008 Stanislav Ievlev <inger@altlinux.org> 0.5-alt3
- use effect-disable

* Wed Jun 18 2008 Stanislav Ievlev <inger@altlinux.org> 0.5-alt2.1
- hotfix

* Wed Jun 18 2008 Stanislav Ievlev <inger@altlinux.org> 0.5-alt2
- remove pot-file
- use module.mak
- preliminary support for 'disable' effect

* Tue May 13 2008 Stanislav Ievlev <inger@altlinux.org> 0.5-alt1
- remove html-messages.mak
- join to common translation database
- use write_string_param

* Mon Apr 07 2008 Stanislav Ievlev <inger@altlinux.org> 0.4-alt4
- fix obsoletes (#15245)

* Fri Apr 04 2008 Stanislav Ievlev <inger@altlinux.org> 0.4-alt3
- update help

* Thu Apr 03 2008 Stanislav Ievlev <inger@altlinux.org> 0.4-alt2
- replace alterator-openntpd

* Tue Mar 18 2008 Stanislav Ievlev <inger@altlinux.org> 0.4-alt1
- remove template-*

* Sat Jan 19 2008 Stanislav Ievlev <inger@altlinux.org> 0.3-alt1
- update to new help system

* Thu Oct 25 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt8
- fix preinstall script (was error exit code when ntpd is not installed on target system)

* Fri Oct 05 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt7
- Add Ukrainian translation to desktop file

* Thu Sep 20 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt6
- Add installer hooks

* Mon Sep 17 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt5
- overwrite both servers and pools

* Wed Aug 01 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt4.1
- hotfix: reset qt clock value after save

* Wed Aug 01 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt4
- move utc checkbox to tzone module

* Tue Jul 17 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt3
- a separate step in installer now

* Fri Jun 15 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt2
- fix menu translation

* Wed Jun 13 2007 Stanislav Ievlev <inger@altlinux.org> 0.2-alt1
- add desktop file
- use std woo-list/name+label function

* Fri Jun 08 2007 Stanislav Ievlev <inger@altlinux.org> 0.1-alt2.2
- another code from installer (ntp light)
- add ui
- add help

* Thu Jun 07 2007 Stanislav Ievlev <inger@altlinux.org> 0.1-alt2.1
- more translations

* Thu May 31 2007 Alexey Gladkov <legion@altlinux.ru> 0.1-alt2
- Fix: move scripts to the subdirectory.

* Fri May 25 2007 Alexey Gladkov <legion@altlinux.ru> 0.1-alt1
- Initial release