]> git.pld-linux.org Git - packages/system-config-date.git/blob - system-config-date.spec
- new
[packages/system-config-date.git] / system-config-date.spec
1 Summary:        A graphical interface for modifying system date and time
2 Name:           system-config-date
3 Version:        1.8.2
4 Release:        0.1
5 License:        GPL
6 Group:          Base
7 URL:            http://fedora.redhat.com/projects/config-tools/
8 Source0:        %{name}-%{version}.tar.bz2
9 # Source0-md5:  04b0e69d7d0c4d9fbffde77dfe62522b
10 BuildRequires:  desktop-file-utils
11 BuildRequires:  gettext-devel
12 BuildRequires:  intltool
13 BuildRequires:  python
14 #Requires(post):        hicolor-icon-theme
15 #Requires(postun):      hicolor-icon-theme
16 #Requires:      chkconfig
17 #Requires:      htmlview
18 #Requires:      newt
19 #Requires:      ntp
20 #Requires:      pygtk2-libglade
21 Requires:       python-gnome-canvas
22 #Requires:      python2
23 #Requires:      rhpl
24 #Requires:      usermode >= 1.36
25 Conflicts:      firstboot <= 1.3.26
26 ExclusiveOS:    Linux
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 system-config-date is a graphical interface for changing the system
32 date and time, configuring the system time zone, and setting up the
33 NTP daemon to synchronize the time of the system with a NTP time
34 server.
35
36 %prep
37 %setup -q
38
39 %build
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} DESTDIR=$RPM_BUILD_ROOT install
45 desktop-file-install --vendor system --delete-original       \
46   --dir $RPM_BUILD_ROOT%{_desktopdir}             \
47   --add-category X-Red-Hat-Base                             \
48   $RPM_BUILD_ROOT%{_desktopdir}/system-config-date.desktop
49
50 %find_lang %{name}
51
52 %py_comp $RPM_BUILD_ROOT%{_datadir}/system-config-date
53 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/system-config-date
54 %py_postclean %{_datadir}/system-config-date
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %if 0
60 %post
61 touch --no-create %{_datadir}/icons/hicolor
62 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
63         gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
64 fi
65
66 %postun
67 touch --no-create %{_datadir}/icons/hicolor
68 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
69         gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
70 fi
71 %endif
72
73 %files -f %{name}.lang
74 %defattr(644,root,root,755)
75 %doc doc/*
76 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/dateconfig
77 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/system-config-date
78 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/system-config-time
79 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/dateconfig
80 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/system-config-date
81 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/system-config-time
82 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ntp/ntpservers
83 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/system-config-date/ntp.template
84 %attr(755,root,root) %{_bindir}/system-config-date
85 %attr(755,root,root) %{_bindir}/system-config-time
86 %attr(755,root,root) %{_bindir}/dateconfig
87 %attr(755,root,root) %{_sbindir}/timeconfig
88 %dir %{_datadir}/system-config-date
89 %{_datadir}/system-config-date/*.py[co]
90 %{_datadir}/system-config-date/*.glade
91 %{_datadir}/system-config-date/regions
92 %dir %{_datadir}/system-config-date/pixmaps
93 %{_datadir}/system-config-date/pixmaps/system-config-date.png
94 %{_datadir}/system-config-date/pixmaps/map1440.png
95 %{_mandir}/man8/system-config-date*
96 %{_mandir}/fr/man8/system-config-date*
97 %{_mandir}/ja/man8/system-config-date*
98 %{_desktopdir}/system-config-date.desktop
99 %{_iconsdir}/hicolor/48x48/apps/system-config-date.png
This page took 0.051331 seconds and 3 git commands to generate.