]>
Commit | Line | Data |
---|---|---|
f14ab4ba | 1 | Summary: A graphical interface for modifying system date and time |
30338e5f | 2 | Summary(pl.UTF-8): Graficzny interfejs do zmiany daty i czasu systemowego |
f14ab4ba | 3 | Name: system-config-date |
24861d01 PZ |
4 | Version: 1.9.17 |
5 | Release: 1 | |
f14ab4ba ER |
6 | License: GPL |
7 | Group: Base | |
f14ab4ba | 8 | Source0: %{name}-%{version}.tar.bz2 |
24861d01 PZ |
9 | # Source0-md5: 6551690e7362a7d912e3a6a70cba1915 |
10 | Patch0: %{name}-desktop.patch | |
82eb5a1a | 11 | URL: http://fedora.redhat.com/projects/config-tools/ |
f14ab4ba ER |
12 | BuildRequires: desktop-file-utils |
13 | BuildRequires: gettext-devel | |
14 | BuildRequires: intltool | |
15 | BuildRequires: python | |
16 | #Requires(post): hicolor-icon-theme | |
17 | #Requires(postun): hicolor-icon-theme | |
18 | #Requires: chkconfig | |
24861d01 PZ |
19 | Requires: python-newt |
20 | Requires: ntp-client | |
f14ab4ba ER |
21 | #Requires: pygtk2-libglade |
22 | Requires: python-gnome-canvas | |
24861d01 | 23 | Requires: python-rhpl |
f14ab4ba ER |
24 | #Requires: usermode >= 1.36 |
25 | Conflicts: firstboot <= 1.3.26 | |
f14ab4ba ER |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | system-config-date is a graphical interface for changing the system | |
31 | date and time, configuring the system time zone, and setting up the | |
32 | NTP daemon to synchronize the time of the system with a NTP time | |
33 | server. | |
34 | ||
55995b97 | 35 | %description -l pl.UTF-8 |
82eb5a1a JB |
36 | system-config-date to graficzny interfejs do zmiany daty i czasu |
37 | systemowego, konfiguracji strefy czasowej i ustawiania demona NTP do | |
38 | synchronizacji czasu systemowego z serwerem czasu NTP. | |
39 | ||
f14ab4ba ER |
40 | %prep |
41 | %setup -q | |
24861d01 | 42 | %patch0 -p1 |
f14ab4ba ER |
43 | |
44 | %build | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
82eb5a1a JB |
49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | desktop-file-install --vendor system --delete-original \ | |
53 | --dir $RPM_BUILD_ROOT%{_desktopdir} \ | |
54 | --add-category X-Red-Hat-Base \ | |
55 | $RPM_BUILD_ROOT%{_desktopdir}/system-config-date.desktop | |
f14ab4ba | 56 | |
24861d01 | 57 | %find_lang %{name} --with-gnome --with-omf |
f14ab4ba ER |
58 | |
59 | %py_comp $RPM_BUILD_ROOT%{_datadir}/system-config-date | |
60 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/system-config-date | |
61 | %py_postclean %{_datadir}/system-config-date | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %if 0 | |
67 | %post | |
68 | touch --no-create %{_datadir}/icons/hicolor | |
69 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then | |
70 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor | |
71 | fi | |
72 | ||
73 | %postun | |
74 | touch --no-create %{_datadir}/icons/hicolor | |
75 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then | |
76 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor | |
77 | fi | |
78 | %endif | |
79 | ||
80 | %files -f %{name}.lang | |
81 | %defattr(644,root,root,755) | |
82 | %doc doc/* | |
82eb5a1a JB |
83 | %attr(755,root,root) %{_bindir}/system-config-date |
84 | %attr(755,root,root) %{_bindir}/system-config-time | |
85 | %attr(755,root,root) %{_bindir}/dateconfig | |
86 | %attr(755,root,root) %{_sbindir}/timeconfig | |
f14ab4ba ER |
87 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/dateconfig |
88 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/system-config-date | |
89 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/system-config-time | |
90 | %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/dateconfig | |
91 | %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/system-config-date | |
92 | %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/system-config-time | |
93 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ntp/ntpservers | |
f14ab4ba | 94 | %dir %{_datadir}/system-config-date |
82eb5a1a | 95 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/system-config-date/ntp.template |
f14ab4ba ER |
96 | %{_datadir}/system-config-date/*.py[co] |
97 | %{_datadir}/system-config-date/*.glade | |
f14ab4ba ER |
98 | %dir %{_datadir}/system-config-date/pixmaps |
99 | %{_datadir}/system-config-date/pixmaps/system-config-date.png | |
100 | %{_datadir}/system-config-date/pixmaps/map1440.png | |
101 | %{_mandir}/man8/system-config-date* | |
82eb5a1a JB |
102 | %lang(fr) %{_mandir}/fr/man8/system-config-date* |
103 | %lang(ja) %{_mandir}/ja/man8/system-config-date* | |
f14ab4ba ER |
104 | %{_desktopdir}/system-config-date.desktop |
105 | %{_iconsdir}/hicolor/48x48/apps/system-config-date.png |