]> git.pld-linux.org Git - packages/system-config-date.git/blob - system-config-date.spec
- up to 1.9.67
[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.67
5 Release:        0.2
6 License:        GPL
7 Group:          Base
8 Source0:        http://fedorahosted.org/released/system-config-date/%{name}-%{version}.tar.bz2
9 # Source0-md5:  5af4caafb46a9c63a5fcc6e0e6e4d2e4
10 Patch0:         %{name}-desktop.patch
11 URL:            http://fedoraproject.org/wiki/SystemConfig/date
12 BuildRequires:  desktop-file-utils
13 BuildRequires:  gettext-devel
14 BuildRequires:  intltool
15 BuildRequires:  python
16 Requires(post,postun):  gtk-update-icon-cache
17 Requires(post,postun):  hicolor-icon-theme
18 #Requires:      chkconfig
19 Requires:       hicolor-icon-theme
20 Requires:       ntpdate
21 Requires:       python-gnome-canvas
22 Requires:       python-pygtk-glade
23 Requires:       python-rhpl
24 Requires:       python-slip >= 0.2.11
25 Requires:       python-snack
26 Requires:       tzdata
27 Requires:       usermode-gtk >= 1.94
28 Conflicts:      firstboot <= 1.3.26
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
38 %description -l pl.UTF-8
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
43 %prep
44 %setup -q
45 %patch0 -p1
46
47 %build
48 %{__make}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 desktop-file-install --vendor system --delete-original \
56         --dir $RPM_BUILD_ROOT%{_desktopdir} \
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 %{__python} %{_datadir}/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 %attr(755,root,root) %{_bindir}/system-config-date
86 %attr(755,root,root) %{_bindir}/system-config-time
87 %attr(755,root,root) %{_bindir}/dateconfig
88 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/system-config-date
89 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/system-config-date
90 %dir %{_datadir}/system-config-date
91 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/system-config-date/ntp.conf.template
92 %{_datadir}/system-config-date/*.py[co]
93 %{_datadir}/system-config-date/*.glade
94 %dir %{_datadir}/system-config-date/pixmaps
95 %{_datadir}/system-config-date/pixmaps/map1440.png
96 %{_mandir}/man8/system-config-date*
97 %lang(fr) %{_mandir}/fr/man8/system-config-date*
98 %lang(ja) %{_mandir}/ja/man8/system-config-date*
99 %{_desktopdir}/system-config-date.desktop
100 %{_iconsdir}/hicolor/*/apps/system-config-date.png
101 %{_iconsdir}/hicolor/*/apps/system-config-date.svg
102
103 %dir %{py_sitescriptdir}/scdate
104 %{py_sitescriptdir}/scdate/*.py[co]
105 %dir %{py_sitescriptdir}/scdate/core
106 %{py_sitescriptdir}/scdate/core/*.py[co]
107 %{py_sitescriptdir}/scdate-%{version}-py*.egg-info
This page took 0.099463 seconds and 4 git commands to generate.