2019-09-30 11:18:29 -04:00
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
Name: timedatex
|
|
|
|
|
Version: 0.5
|
2020-03-16 15:04:07 +08:00
|
|
|
Release: 10
|
2019-09-30 11:18:29 -04:00
|
|
|
Summary: D-Bus service for system clock and RTC settings
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://github.com/mlichvar/timedatex
|
|
|
|
|
Source0: https://github.com/mlichvar/timedatex/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: glib2-devel libselinux-devel
|
|
|
|
|
Requires: polkit systemd util-linux
|
|
|
|
|
|
|
|
|
|
Patch1: timedatex-timeout.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
timedatex is a D-Bus service that implements the org.freedesktop.timedate1
|
|
|
|
|
interface. It can be used to read and set the system clock, the real-time clock
|
|
|
|
|
(RTC), the system timezone, get a list of valid timezones, and enable or
|
|
|
|
|
disable an NTP client installed on the system. It is a replacement for the
|
|
|
|
|
systemd-timedated service.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: help document for timedatex
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
help document for timedatex.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-01-22 12:18:28 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 11:18:29 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%make_build CFLAGS="$RPM_OPT_FLAGS" EXTRA_LDFLAGS="%{__global_ldflags}"
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%makeinstall unitdir=$RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system
|
2020-03-16 15:04:07 +08:00
|
|
|
ln -s /dev/null $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/timedatex.service
|
2019-09-30 11:18:29 -04:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun %{name}.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post %{name}.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc COPYING NEWS README
|
2020-03-16 15:04:07 +08:00
|
|
|
%{_sysconfdir}/systemd/system/timedatex.service
|
2019-09-30 11:18:29 -04:00
|
|
|
%{_sbindir}/%{name}
|
|
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/man8/%{name}.8*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-03-16 15:04:07 +08:00
|
|
|
* Mon Mar 16 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC:delete %postun systemd-timedated.service operation
|
|
|
|
|
|
2020-03-11 11:01:14 +08:00
|
|
|
* Wed Mar 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.9
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC:Solve the problem of service cannot restart when upgrading
|
|
|
|
|
|
2020-01-22 12:18:28 +08:00
|
|
|
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.8
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC:revise self-build problem
|
|
|
|
|
|
2019-09-30 11:18:29 -04:00
|
|
|
* Mon Sep 29 2019 Xiuning Fang<fangxiuning@huawei.com> - 0.5.7
|
|
|
|
|
- delete mask systemd-timedated.service, mask timedatex.service
|
|
|
|
|
|
|
|
|
|
* Wed Aug 28 2019 Huiming Xie<xiehuiming@huawei.com> - 0.5.6
|
|
|
|
|
- Package init
|