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