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