1 Summary: A graphical interface for modifying system date and time
2 Summary(pl.UTF-8): Graficzny interfejs do zmiany daty i czasu systemowego
3 Name: system-config-date
8 Source0: http://fedorahosted.org/released/system-config-date/%{name}-%{version}.tar.bz2
9 # Source0-md5: 5af4caafb46a9c63a5fcc6e0e6e4d2e4
10 Patch0: %{name}-desktop.patch
11 Patch1: tzconfig.patch
12 URL: http://fedoraproject.org/wiki/SystemConfig/date
13 BuildRequires: desktop-file-utils
14 BuildRequires: gettext-devel
15 BuildRequires: intltool
17 Requires(post,postun): gtk-update-icon-cache
18 Requires(post,postun): hicolor-icon-theme
20 Requires: hicolor-icon-theme
22 Requires: python-gnome-canvas
23 Requires: python-pygtk-glade
25 Requires: python-slip >= 0.2.11
26 Requires: python-snack
28 Requires: usermode-gtk >= 1.94
29 Conflicts: firstboot <= 1.3.26
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 system-config-date is a graphical interface for changing the system
35 date and time, configuring the system time zone, and setting up the
36 NTP daemon to synchronize the time of the system with a NTP time
39 %description -l pl.UTF-8
40 system-config-date to graficzny interfejs do zmiany daty i czasu
41 systemowego, konfiguracji strefy czasowej i ustawiania demona NTP do
42 synchronizacji czasu systemowego z serwerem czasu NTP.
53 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
57 desktop-file-install --vendor system --delete-original \
58 --dir $RPM_BUILD_ROOT%{_desktopdir} \
59 $RPM_BUILD_ROOT%{_desktopdir}/system-config-date.desktop
61 %find_lang %{name} --with-gnome --with-omf
63 rm $RPM_BUILD_ROOT%{_bindir}/system-config-date
64 cat > $RPM_BUILD_ROOT%{_bindir}/system-config-date << EOF
66 %{__python} %{_datadir}/system-config-date/system-config-date.pyc
69 ln -sf system-config-date $RPM_BUILD_ROOT%{_bindir}/dateconfig
70 ln -sf system-config-date $RPM_BUILD_ROOT%{_bindir}/system-config-time
72 %py_comp $RPM_BUILD_ROOT%{_datadir}/system-config-date
73 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/system-config-date
74 %py_postclean %{_datadir}/system-config-date
77 rm -rf $RPM_BUILD_ROOT
80 %update_icon_cache hicolor
83 %update_icon_cache hicolor
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
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 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/system-config-date
91 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/system-config-date
92 %dir %{_datadir}/system-config-date
93 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/system-config-date/ntp.conf.template
94 %{_datadir}/system-config-date/*.py[co]
95 %{_datadir}/system-config-date/*.glade
96 %dir %{_datadir}/system-config-date/pixmaps
97 %{_datadir}/system-config-date/pixmaps/map1440.png
98 %{_mandir}/man8/system-config-date*
99 %lang(fr) %{_mandir}/fr/man8/system-config-date*
100 %lang(ja) %{_mandir}/ja/man8/system-config-date*
101 %{_desktopdir}/system-config-date.desktop
102 %{_iconsdir}/hicolor/*/apps/system-config-date.png
103 %{_iconsdir}/hicolor/*/apps/system-config-date.svg
105 %dir %{py_sitescriptdir}/scdate
106 %{py_sitescriptdir}/scdate/*.py[co]
107 %dir %{py_sitescriptdir}/scdate/core
108 %{py_sitescriptdir}/scdate/core/*.py[co]
109 %{py_sitescriptdir}/scdate-%{version}-py*.egg-info